feat: swagger format

This commit is contained in:
Blizzard
2026-02-11 16:22:17 +08:00
parent 112a1f439c
commit 69e59b0e36
14 changed files with 54 additions and 44 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ type UpdatePost struct {
type PostPage struct {
common.PageInfo
Title string `json:"title"` // 标题
HasReviewed int `json:"hasReviewed"` //是否审核通过
HasReviewed *int `json:"hasReviewed"` //是否审核通过
}
// CreateComment 创建评论
+4 -4
View File
@@ -2,15 +2,15 @@ package request
type CreateTopic struct {
Title string `json:"title"`
StartTime string `json:"start_time"`
EndTime string `json:"end_time"`
StartTime string `json:"startTime"`
EndTime string `json:"endTime"`
Remark string `json:"remark"`
}
type UpdateTopic struct {
Id int `json:"id" binding:"required"`
Title string `json:"title"`
StartTime string `json:"start_time"`
EndTime string `json:"end_time"`
StartTime string `json:"startTime"`
EndTime string `json:"endTime"`
Remark string `json:"remark"`
}