account

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 Service

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

Service struct.

func New

func New(c *conf.Config, rpcdaos *service.RPCDaos) *Service

New get service.

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

func (s *Service) RecFollows(c context.Context, mid int64) (fs []*accmdl.Friend, err error)

RecFollows 推荐关注

func (*Service) Relations

func (s *Service) Relations(c context.Context, mid int64, fids []int64, ip string) (res map[int64]int, err error)

Relations 批量获取mid与其它用户的关系

func (*Service) UpInfo

func (s *Service) UpInfo(c context.Context, mid int64, ip string) (v *accmdl.UpInfo, err error)

UpInfo get video article pic blink up infos.

Jump to

Keyboard shortcuts

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