MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / CreateCommentReq

Struct CreateCommentReq

internal/api/req/comment_req.go:3–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package req
2
3type 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
10type ListCommentsReq struct {
11 PostId int64 `json:"postId"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected