评论内容
| 50 | |
| 51 | //评论内容 |
| 52 | type BookCommentsResult struct { |
| 53 | Id int `json:"id"` |
| 54 | Pid int `json:"pid"` |
| 55 | Uid int `json:"uid"` |
| 56 | DocId int `json:"doc_id"` |
| 57 | Score int `json:"score"` |
| 58 | Avatar string `json:"avatar"` |
| 59 | Account string `json:"account"` |
| 60 | Nickname string `json:"nickname"` |
| 61 | BookId int `json:"book_id"` |
| 62 | BookName string `json:"book_name"` |
| 63 | Identify string `json:"identify"` |
| 64 | Content string `json:"content"` |
| 65 | Status int8 `json:"status"` |
| 66 | TimeCreate time.Time `json:"created_at"` //评论时间 |
| 67 | ReplyToUser string `json:"reply_to_user"` |
| 68 | ReplyToContent string `json:"reply_to_content"` |
| 69 | } |
| 70 | |
| 71 | func NewComments() *Comments { |
| 72 | return &Comments{} |
nothing calls this directly
no outgoing calls
no test coverage detected