Documentation ¶
Index ¶
- type ByMTime
- type Service
- func (s *Service) Achieve(c context.Context, arg *model.ArgAchieve) (*model.AchieveReply, error)
- func (s *Service) AchieveGet(c context.Context, arg *model.ArgAchieveGet) (*mrl.AchieveGetReply, error)
- func (s *Service) AddSpecial(c context.Context, arg *mrl.ArgFollowing) (err error)
- func (s *Service) BatchModify(c context.Context, mid int64, fids []int64, act int8, src uint8, ...) (result *model.BatchModifyResult, err error)
- func (s *Service) Blacks(c context.Context, mid int64, version uint64, pn, ps int64) (f []*model.Following, crc32v uint32, total int, err error)
- func (s *Service) ClosePrompt(c context.Context, arg *mrl.ArgPrompt) (err error)
- func (s *Service) CreateTag(c context.Context, mid int64, tag string) (tagInfo int64, err error)
- func (s *Service) DelSpecial(c context.Context, arg *mrl.ArgFollowing) (err error)
- func (s *Service) DelTag(c context.Context, mid int64, tagID int64) (err error)
- func (s *Service) DisableFollowerNotify(c context.Context, mid int64) (err error)
- func (s *Service) EnableFollowerNotify(c context.Context, mid int64) (err error)
- func (s *Service) FollowerNotifySetting(c context.Context, mid int64) (followerNotify *mrl.FollowerNotifySetting, err error)
- func (s *Service) Followers(c context.Context, vmid, mid, pn, ps int64, version uint64) (f []*model.Following, crc32v uint32, total int, err error)
- func (s *Service) Followings(c context.Context, vmid, mid, pn, ps int64, version uint64, order string) (f []*model.Following, crc32v uint32, total int, err error)
- func (s *Service) Friends(c context.Context, mid int64, version uint64) (f []*model.Following, crc32v uint32, err error)
- func (s *Service) MobileTags(c context.Context, mid int64) (tagsCount map[string][]*mrl.TagCount, err error)
- func (s *Service) Modify(c context.Context, mid, fid int64, act int8, src uint8, ric map[string]string) (err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) Prompt(c context.Context, arg *mrl.ArgPrompt) (b bool, err error)
- func (s *Service) RecommendAnswerOK(c context.Context, arg *model.ArgRecommend) ([]*model.RecommendInfo, error)
- func (s *Service) RecommendFollowlistEmpty(c context.Context, arg *model.ArgRecommend) ([]*model.RecommendInfo, error)
- func (s *Service) RecommendTagSuggest(c context.Context, arg *model.ArgTagSuggestRecommend) ([]*model.TagSuggestRecommendInfo, error)
- func (s *Service) RecommendTagSuggestDetail(c context.Context, arg *model.ArgTagSuggestRecommend) (*model.TagSuggestRecommendInfo, error)
- func (s *Service) Relation(c context.Context, mid, fid int64) (f *mrl.Following, err error)
- func (s *Service) Relations(c context.Context, mid int64, fids []int64) (f map[int64]*mrl.Following, err error)
- func (s *Service) ResetUnread(c context.Context, mid int64) (err error)
- func (s *Service) ResetUnreadCount(c context.Context, mid int64) (err error)
- func (s *Service) SameFollowings(c context.Context, arg *model.ArgSameFollowing) (f []*model.Following, crc32v uint32, total int, err error)
- func (s *Service) Special(c context.Context, mid int64) (l []int64, err error)
- func (s *Service) Stat(c context.Context, mid int64, self bool) (st *mrl.Stat, err error)
- func (s *Service) Stats(c context.Context, mids []int64) (st map[int64]*mrl.Stat, err error)
- func (s *Service) Tag(c context.Context, mid int64, tagid int64, pn int64, ps int64) (tagInfo []*model.Tag, err error)
- func (s *Service) Tags(c context.Context, mid int64) (tagsCount []*mrl.TagCount, err error)
- func (s *Service) TagsAddUsers(c context.Context, mid int64, tagIds string, fids string) (err error)
- func (s *Service) TagsCopyUsers(c context.Context, mid int64, tagIds string, fids string) (err error)
- func (s *Service) TagsMoveUsers(c context.Context, mid, beforeid int64, afterTagIdsStr, fidsStr string) (err error)
- func (s *Service) Unread(c context.Context, mid int64, disableAutoReset bool) (show bool, err error)
- func (s *Service) UnreadCount(c context.Context, mid int64, disableAutoReset bool) (count int64, err error)
- func (s *Service) UpdateTag(c context.Context, mid int64, tagID int64, new string) (err error)
- func (s *Service) UserTag(c context.Context, mid int64, fid int64) (tags map[int64]string, err error)
- func (s *Service) Whispers(c context.Context, mid int64, pn, ps int64, version uint64) (f []*model.Following, crc32v uint32, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service struct of service.
func (*Service) Achieve ¶
func (s *Service) Achieve(c context.Context, arg *model.ArgAchieve) (*model.AchieveReply, error)
Achieve is
func (*Service) AchieveGet ¶
func (s *Service) AchieveGet(c context.Context, arg *model.ArgAchieveGet) (*mrl.AchieveGetReply, error)
AchieveGet is
func (*Service) AddSpecial ¶
AddSpecial add fid into special.
func (*Service) BatchModify ¶
func (s *Service) BatchModify(c context.Context, mid int64, fids []int64, act int8, src uint8, ric map[string]string) (result *model.BatchModifyResult, err error)
BatchModify batch modify user relation.
func (*Service) Blacks ¶
func (s *Service) Blacks(c context.Context, mid int64, version uint64, pn, ps int64) (f []*model.Following, crc32v uint32, total int, err error)
Blacks get user black list.
func (*Service) ClosePrompt ¶
ClosePrompt close prompt.
func (*Service) DelSpecial ¶
DelSpecial del fid from sepcial.
func (*Service) DisableFollowerNotify ¶
DisableFollowerNotify enable new-follower-notification
func (*Service) EnableFollowerNotify ¶
EnableFollowerNotify enable new-follower-notification
func (*Service) FollowerNotifySetting ¶
func (s *Service) FollowerNotifySetting(c context.Context, mid int64) (followerNotify *mrl.FollowerNotifySetting, err error)
FollowerNotifySetting get new-follower-notification setting
func (*Service) Followers ¶
func (s *Service) Followers(c context.Context, vmid, mid, pn, ps int64, version uint64) (f []*model.Following, crc32v uint32, total int, err error)
Followers get user followings.
func (*Service) Followings ¶
func (s *Service) Followings(c context.Context, vmid, mid, pn, ps int64, version uint64, order string) (f []*model.Following, crc32v uint32, total int, err error)
Followings get user followings list.
func (*Service) Friends ¶
func (s *Service) Friends(c context.Context, mid int64, version uint64) (f []*model.Following, crc32v uint32, err error)
Friends get user friends list: follow eachother.
func (*Service) MobileTags ¶
func (s *Service) MobileTags(c context.Context, mid int64) (tagsCount map[string][]*mrl.TagCount, err error)
MobileTags is.
func (*Service) Modify ¶
func (s *Service) Modify(c context.Context, mid, fid int64, act int8, src uint8, ric map[string]string) (err error)
Modify modify user relation.
func (*Service) RecommendAnswerOK ¶
func (s *Service) RecommendAnswerOK(c context.Context, arg *model.ArgRecommend) ([]*model.RecommendInfo, error)
RecommendAnswerOK is
func (*Service) RecommendFollowlistEmpty ¶
func (s *Service) RecommendFollowlistEmpty(c context.Context, arg *model.ArgRecommend) ([]*model.RecommendInfo, error)
RecommendFollowlistEmpty is
func (*Service) RecommendTagSuggest ¶
func (s *Service) RecommendTagSuggest(c context.Context, arg *model.ArgTagSuggestRecommend) ([]*model.TagSuggestRecommendInfo, error)
RecommendTagSuggest is
func (*Service) RecommendTagSuggestDetail ¶
func (s *Service) RecommendTagSuggestDetail(c context.Context, arg *model.ArgTagSuggestRecommend) (*model.TagSuggestRecommendInfo, error)
RecommendTagSuggestDetail is
func (*Service) Relations ¶
func (s *Service) Relations(c context.Context, mid int64, fids []int64) (f map[int64]*mrl.Following, err error)
Relations get relations between users.
func (*Service) ResetUnread ¶
ResetUnread is
func (*Service) ResetUnreadCount ¶
ResetUnreadCount is
func (*Service) SameFollowings ¶
func (s *Service) SameFollowings(c context.Context, arg *model.ArgSameFollowing) (f []*model.Following, crc32v uint32, total int, err error)
SameFollowings is
func (*Service) Tag ¶
func (s *Service) Tag(c context.Context, mid int64, tagid int64, pn int64, ps int64) (tagInfo []*model.Tag, err error)
Tag get tag info by tag.
func (*Service) TagsAddUsers ¶
func (s *Service) TagsAddUsers(c context.Context, mid int64, tagIds string, fids string) (err error)
TagsAddUsers is.
func (*Service) TagsCopyUsers ¶
func (s *Service) TagsCopyUsers(c context.Context, mid int64, tagIds string, fids string) (err error)
TagsCopyUsers is.
func (*Service) TagsMoveUsers ¶
func (s *Service) TagsMoveUsers(c context.Context, mid, beforeid int64, afterTagIdsStr, fidsStr string) (err error)
TagsMoveUsers is.
func (*Service) Unread ¶
func (s *Service) Unread(c context.Context, mid int64, disableAutoReset bool) (show bool, err error)
Unread check unread status, for the 'show red point' function.
func (*Service) UnreadCount ¶
func (s *Service) UnreadCount(c context.Context, mid int64, disableAutoReset bool) (count int64, err error)
UnreadCount unread count.