Documentation ¶
Index ¶
Constants ¶
View Source
const ( IsNotPinned = 0 IsPinned = 1 )
评论是否置顶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReplyReq ¶
type ReplyReq struct { Type ReplyType `json:"type"` // 评论类型 (0-文本; 1-图文) Oid uint64 `json:"nid"` // 对象id Content string `json:"content"` // 评论内容 RootId uint64 `json:"pid"` // 根评论id ParentId uint64 `json:"rid"` // 被回复的评论id ReplyUid uint64 `json:"ruid"` // 被回复的用户id }
发表评论参数
type ReplyState ¶
type ReplyState int8
评论状态
const ( // TODO define more reply state ReplyStateNormal ReplyState = 0 )
评论状态
Click to show internal directories.
Click to hide internal directories.