|
@@ -6,17 +6,22 @@ type RespCommentList struct {
|
|
|
List []*RespCommentItem `json:"list"`
|
|
|
Paging *PagingItem `json:"paging"`
|
|
|
}
|
|
|
+type RespMyCommentList struct {
|
|
|
+ List []*RespCommentItem `json:"list"`
|
|
|
+ IsShowName int8 `description:"是否匿名 0-匿名,1-不匿名" json:"is_show_name"`
|
|
|
+}
|
|
|
type RespCommentItem struct {
|
|
|
- CommentId uint64 `description:"留言ID" json:"comment_id"`
|
|
|
- UserId uint64 `description:"用户id" json:"user_id"`
|
|
|
- Content string `description:"留言内容" json:"content"`
|
|
|
- IsTop int8 `description:"是否置顶(0-未置顶,1-置顶)json:"is_top""`
|
|
|
- IsHot int8 `description:"是否设置精选(0-未设置,1-已设置)json:"is_hot""`
|
|
|
- HotTopTime time.Time `description:"设置精选或者设置置顶的时间" json:"hot_top_time"`
|
|
|
- UserName string `description:"用户昵称" json:"user_name"`
|
|
|
- UserImgUrl string `description:"用户头像" json:"user_img_url"`
|
|
|
- CreateTime time.Time `description:"留言创建时间" json:"create_time"`
|
|
|
- ReplyList []*ReplyItem
|
|
|
+ CommentId uint64 `description:"留言ID" json:"comment_id"`
|
|
|
+ UserId uint64 `description:"用户id" json:"user_id"`
|
|
|
+ Content string `description:"留言内容" json:"content"`
|
|
|
+ IsTop int8 `description:"是否置顶(0-未置顶,1-置顶)json:"is_top""`
|
|
|
+ IsHot int8 `description:"是否设置精选(0-未设置,1-已设置)json:"is_hot""`
|
|
|
+ HotTopTime time.Time `description:"设置精选或者设置置顶的时间" json:"hot_top_time"`
|
|
|
+ IsShowName int8 `description:"是否匿名 0-匿名,1-不匿名" json:"is_show_name"`
|
|
|
+ UserName string `description:"用户昵称" json:"user_name"`
|
|
|
+ UserImgUrl string `description:"用户头像" json:"user_img_url"`
|
|
|
+ CreateTime time.Time `description:"留言创建时间" json:"create_time"`
|
|
|
+ ReplyList []*ReplyItem
|
|
|
}
|
|
|
|
|
|
type ReplyItem struct {
|