Documentation ¶
Index ¶
- type Service
- func (s *Service) Cards(c context.Context, mids []int64, ip string) (cards map[int64]*account.Card, err error)
- func (s *Service) FRelations(c context.Context, mid int64, fids []int64, ip string) (res map[int64]int, err error)
- func (s *Service) Infos(c context.Context, mids []int64, ip string) (res map[int64]*account.Info, err error)
- func (s *Service) MyInfo(c context.Context, mid int64, ip string, now time.Time) (m *accmdl.MyInfo, err error)
- func (s *Service) RecFollows(c context.Context, mid int64) (fs []*accmdl.Friend, err error)
- func (s *Service) Relations(c context.Context, mid int64, fids []int64, ip string) (res map[int64]int, err error)
- func (s *Service) UpInfo(c context.Context, mid int64, ip string) (v *accmdl.UpInfo, 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.
func (*Service) Cards ¶
func (s *Service) Cards(c context.Context, mids []int64, ip string) (cards map[int64]*account.Card, err error)
Cards 批量获取用户的Card
func (*Service) FRelations ¶
func (s *Service) FRelations(c context.Context, mid int64, fids []int64, ip string) (res map[int64]int, err error)
FRelations 获取用户与mid的关系(Relations的反向)
func (*Service) Infos ¶
func (s *Service) Infos(c context.Context, mids []int64, ip string) (res map[int64]*account.Info, err error)
Infos 获取多个UP主的信息
func (*Service) MyInfo ¶
func (s *Service) MyInfo(c context.Context, mid int64, ip string, now time.Time) (m *accmdl.MyInfo, err error)
MyInfo get use level.
func (*Service) RecFollows ¶
RecFollows 推荐关注
Click to show internal directories.
Click to hide internal directories.