feat(server/notices): GET /v1/notices(合并+unread_count)+ POST /read + openapi 扩展

This commit is contained in:
wangjia
2026-07-13 13:43:50 +08:00
parent ed1f805cbc
commit 0325603470
4 changed files with 170 additions and 5 deletions
+1
View File
@@ -218,6 +218,7 @@ func (a *AccountAPI) ListPlans(w http.ResponseWriter, r *http.Request) {
// ─── GET /v1/notices ─────────────────────────────────────────────────────────
// ListNotices handles GET /v1/notices. Returns an empty list for the MVP.
// TODO(Task7): 由 notices.Handler 替换后删除(main.go 路由挂载在 Task 7 统一装配)。
func (a *AccountAPI) ListNotices(w http.ResponseWriter, _ *http.Request) {
w.Header().Set("Content-Type", "application/json; charset=utf-8")
_ = json.NewEncoder(w).Encode(map[string]any{"notices": []any{}})