Documentation
¶
Index ¶
Constants ¶
View Source
const ActionFavorite = "favorite"
View Source
const ActionFollow = "follow"
View Source
const ActionLike = "like"
Variables ¶
This section is empty.
Functions ¶
func ToggleAction ¶
func ToggleAction(userId int64, action string, relation RelationModel) (int64, error)
relation 被关注/收藏/点赞的对象 userId 谁发起了这个动作
Types ¶
type Action ¶
type RelationModel ¶
Click to show internal directories.
Click to hide internal directories.