feat: 更新内容相关接口,使用统一的分页响应结构

This commit is contained in:
2025-12-29 10:14:47 +08:00
parent 62262bbac2
commit d482905157
3 changed files with 13 additions and 21 deletions

View File

@@ -51,21 +51,11 @@ type Comment struct {
ReplyTo string `json:"replyTo"`
}
type CommentListResponse struct {
Data []Comment `json:"data"`
Pagination requests.Pagination `json:"pagination"`
}
type CommentCreateForm struct {
Content string `json:"content"`
ReplyTo string `json:"replyTo"`
}
type ContentListResponse struct {
Data []ContentItem `json:"data"`
Pagination requests.Pagination `json:"pagination"`
}
type Topic struct {
ID string `json:"id"`
Title string `json:"title"`
@@ -81,4 +71,4 @@ type ContentPrice struct {
DiscountValue float64 `json:"discountValue"`
DiscountStartAt string `json:"discountStartAt"`
DiscountEndAt string `json:"discountEndAt"`
}
}