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: 5 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 is account dao.

func New

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

New new a dao.

func (*Dao) Card

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

Card get account.

func (*Dao) Cards

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

Cards get infos for space

func (*Dao) IdentifyInfo

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

IdentifyInfo 获取用户实名认证状态

func (*Dao) IsFollow

func (d *Dao) IsFollow(c context.Context, mid, assistMid int64) (follow bool, err error)

IsFollow check assist follow up.

func (*Dao) UserBanned

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

UserBanned 获取用户封禁状态, disabled when spacesta == 2

Jump to

Keyboard shortcuts

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