Documentation ¶
Index ¶
- type ProxyIndexMap
- func (i *ProxyIndexMap) GetUserRelation(userId int64, followId int64) bool
- func (i *ProxyIndexMap) GetVideoFavorState(userId int64, videoId int64) bool
- func (i *ProxyIndexMap) UpdateUserRelation(userId int64, followId int64, state bool)
- func (i *ProxyIndexMap) UpdateVideoFavorState(userId int64, videoId int64, state bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProxyIndexMap ¶
type ProxyIndexMap struct { }
func NewProxyIndexMap ¶
func NewProxyIndexMap() *ProxyIndexMap
func (*ProxyIndexMap) GetUserRelation ¶
func (i *ProxyIndexMap) GetUserRelation(userId int64, followId int64) bool
GetUserRelation 得到关注状态
func (*ProxyIndexMap) GetVideoFavorState ¶
func (i *ProxyIndexMap) GetVideoFavorState(userId int64, videoId int64) bool
GetVideoFavorState 得到点赞状态
func (*ProxyIndexMap) UpdateUserRelation ¶
func (i *ProxyIndexMap) UpdateUserRelation(userId int64, followId int64, state bool)
UpdateUserRelation 更新点赞状态,state:true为点关注,false为取消关注
func (*ProxyIndexMap) UpdateVideoFavorState ¶
func (i *ProxyIndexMap) UpdateVideoFavorState(userId int64, videoId int64, state bool)
UpdateVideoFavorState 更新点赞状态,state:true为点赞,false为取消点赞
Click to show internal directories.
Click to hide internal directories.