| 1 | package req |
| 2 | |
| 3 | type CreateCommentReq struct { |
| 4 | PostId int64 `json:"postId" binding:"required"` |
| 5 | Content string `json:"content" binding:"required"` |
| 6 | RootId *int64 `json:"rootId,omitempty"` // 根评论ID,顶层评论时为空 |
| 7 | PID *int64 `json:"pid,omitempty"` // 父评论ID,顶层评论时为空 |
| 8 | } |
| 9 | |
| 10 | type ListCommentsReq struct { |
| 11 | PostId int64 `json:"postId"` |
nothing calls this directly
no outgoing calls
no test coverage detected