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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

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

Dao dao is account dao.

func New

func New(c *conf.Config) (d *Dao)

New new a account dao.

func (*Dao) AddFollowing

func (d *Dao) AddFollowing(c context.Context, mid, fid int64, src int, ip string) (err error)

AddFollowing 添加关注

func (*Dao) AddHalfMin

func (d *Dao) AddHalfMin(c context.Context, mid int64) (err error)

AddHalfMin fn

func (*Dao) AddSubmitCache

func (d *Dao) AddSubmitCache(c context.Context, mid int64, title string) (err error)

AddSubmitCache add submit cache into mc.

func (*Dao) Cards

func (d *Dao) Cards(c context.Context, mids []int64, ip string) (cards map[int64]*accapi.Card, err error)

Cards get cards from rpc

func (*Dao) Close

func (d *Dao) Close()

Close close resource.

func (*Dao) DelHalfMin

func (d *Dao) DelHalfMin(c context.Context, mid int64) (err error)

DelHalfMin func

func (*Dao) DelSubmitCache

func (d *Dao) DelSubmitCache(c context.Context, mid int64, title string) (err error)

DelSubmitCache func

func (*Dao) HalfMin

func (d *Dao) HalfMin(c context.Context, mid int64) (exist bool, ts uint64, err error)

HalfMin fn

func (*Dao) IdentifyInfo

func (d *Dao) IdentifyInfo(c context.Context, ip string, mid int64) (err error)

IdentifyInfo 获取用户实名认证状态

func (*Dao) Infos

func (d *Dao) Infos(c context.Context, mids []int64, ip string) (infos map[int64]*accapi.Info, err error)

Infos get infos from rpc

func (*Dao) Ping

func (d *Dao) Ping(c context.Context) (err error)

Ping ping success.

func (*Dao) Profile

func (d *Dao) Profile(c context.Context, mid int64, ip string) (p *accapi.Profile, err error)

Profile get profile from rpc

func (*Dao) Relations

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

Relations get all relation state.

func (*Dao) SubmitCache

func (d *Dao) SubmitCache(c context.Context, mid int64, title string) (exist int8, err error)

SubmitCache get user submit cache.

Jump to

Keyboard shortcuts

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