fix(api): harden response contracts

This commit is contained in:
2026-07-21 16:44:16 +08:00
parent c56ada3708
commit 2275d388a7
11 changed files with 191 additions and 26 deletions

View File

@@ -81,8 +81,8 @@ type WorkspaceChannelDTO struct {
Type string `json:"type"`
Title string `json:"title"`
Icon string `json:"icon"`
Count *int64 `json:"count,omitempty"`
URL string `json:"url,omitempty"`
Count int64 `json:"count"`
URL string `json:"url"`
SortOrder int `json:"sortOrder"`
}