feat: 更新内容相关接口,使用统一的分页响应结构
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user