Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
models.BaseModel
UserID int64 // 个人或者团体
Action int8 // 点赞, 评论, 转发, 收藏, 喜欢, 打赏, 标记, 订阅, 举报, 分享,浏览,停留,打标签,编辑, 纠错, 阅读
// ...
Payload string // 动作数据
ResType string `json:"res_type"` // 资源类型
ResID int64 `json:"res_id"` // 资源ID
}
用户对某一资源进行动作,以及所带有的数据 点赞, 评论, 转发, 收藏, 喜欢, 打赏, 标记, 订阅, 举报, 分享, ... 登陆 所有的动作都会被记录下来 (user_id,res_type,res_id,action) 某人对某类型的资源产生了某个动作 可以得到,用用户动作数,资源本操作数
Click to show internal directories.
Click to hide internal directories.