Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comment ¶ added in v0.1.25
type Comment struct {
models.BaseModel
CommentID string `json:"comment_id"` // 评论编号
InUid string `json:"in_uid"` // 用户内部编号(内部流转)
ToUid string `json:"to_uid"` //回复对象
ArticleID string `json:"article_id"` // 文章编号
GroupID string `json:"group_id"` // 圈子编号
MarkID string `json:"mark_id"` // mark id
CommentContent string `json:"comment_content"` // 用户发布评论
ContentHash string `json:"content_hash"` // 用户发布评论的hash值,可以重复
SourceParentID string `json:"source_parent_id"` // 父评论编号
Signature string `json:"signature"` // 数据签名
CommentType int `json:"comment_type"` // 评论类型 1=正常评论 2=boost
Mentions string `json:"-"` // 通知
MentionsInfo []string `json:"mentions"`
}
type Link ¶
type Link struct {
models.BaseModel
SourceName string `json:"source"`
SourceUrl string `json:"source"`
Category string
GeoPoint []string
Title string `json:"title"` // 文章标题
Url string `json:"url"` // 文章外链url
Type string
Tags []string
LinkID string `json:"link_id"` // 文章编号
Abstract string `json:"abstract"` // 文章摘要
Content string `json:"content"` // 文章的内容
PublishTime int `json:"publish_time"` // 文章的发布时间
Publisher string `json:"publisher"` // 文章作者
PublisherUrl string `json:"publisher"` // 文章作者
SourceGroup string
ContentHash string `json:"content_hash"` // 文章的hash值
HeadImageUrl string `json:"head_image_url"` // 文章缩略图
}
type Permission ¶ added in v0.1.25
type Permission struct {
models.BaseModel
ArticleID string
// 用户操作判断判断
IsManager int `json:"is_manager"`
IsDonate int `json:"is_donate"`
NeedAuth string `json:"need_auth,omitempty"`
IsManage int `json:"is_manage"` //
IsRead int `json:"is_read"` //
IsCollect int `json:"is_collect"` //
// 支付
PayStatus int `json:"pay_status"` //1:已支付 2:通过企业支付 3:企业订阅 4:个人支付 5 是否是
}
权限, 职责
Click to show internal directories.
Click to hide internal directories.