relation

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByMTime

type ByMTime []*mrl.Following

ByMTime implements sort.Interface for []model.Following based on the MTime field.

func (ByMTime) Len

func (mt ByMTime) Len() int

func (ByMTime) Less

func (mt ByMTime) Less(i, j int) bool

func (ByMTime) Swap

func (mt ByMTime) Swap(i, j int)

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service struct of service.

func New

func New(c *conf.Config) (s *Service)

New create service instance and return.

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

func (s *Service) AddSpecial(c context.Context, arg *mrl.ArgFollowing) (err error)

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

func (s *Service) ClosePrompt(c context.Context, arg *mrl.ArgPrompt) (err error)

ClosePrompt close prompt.

func (*Service) CreateTag

func (s *Service) CreateTag(c context.Context, mid int64, tag string) (tagInfo int64, err error)

CreateTag is.

func (*Service) DelSpecial

func (s *Service) DelSpecial(c context.Context, arg *mrl.ArgFollowing) (err error)

DelSpecial del fid from sepcial.

func (*Service) DelTag

func (s *Service) DelTag(c context.Context, mid int64, tagID int64) (err error)

DelTag is.

func (*Service) DisableFollowerNotify

func (s *Service) DisableFollowerNotify(c context.Context, mid int64) (err error)

DisableFollowerNotify enable new-follower-notification

func (*Service) EnableFollowerNotify

func (s *Service) EnableFollowerNotify(c context.Context, mid int64) (err error)

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) Ping

func (s *Service) Ping(c context.Context) (err error)

Ping check server ok.

func (*Service) Prompt

func (s *Service) Prompt(c context.Context, arg *mrl.ArgPrompt) (b bool, err error)

Prompt report and get prompt status.

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) Relation

func (s *Service) Relation(c context.Context, mid, fid int64) (f *mrl.Following, err error)

Relation get user relation.

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

func (s *Service) ResetUnread(c context.Context, mid int64) (err error)

ResetUnread is

func (*Service) ResetUnreadCount

func (s *Service) ResetUnreadCount(c context.Context, mid int64) (err error)

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) Special

func (s *Service) Special(c context.Context, mid int64) (l []int64, err error)

Special get user special list.

func (*Service) Stat

func (s *Service) Stat(c context.Context, mid int64, self bool) (st *mrl.Stat, err error)

Stat get user relation stat.

func (*Service) Stats

func (s *Service) Stats(c context.Context, mids []int64) (st map[int64]*mrl.Stat, err error)

Stats get users relation stat.

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) Tags

func (s *Service) Tags(c context.Context, mid int64) (tagsCount []*mrl.TagCount, err error)

Tags is.

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.

func (*Service) UpdateTag

func (s *Service) UpdateTag(c context.Context, mid int64, tagID int64, new string) (err error)

UpdateTag is.

func (*Service) UserTag

func (s *Service) UserTag(c context.Context, mid int64, fid int64) (tags map[int64]string, err error)

UserTag is.

func (*Service) Whispers

func (s *Service) Whispers(c context.Context, mid int64, pn, ps int64, version uint64) (f []*model.Following, crc32v uint32, err error)

Whispers get user Whispers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL