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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blink struct {
	Has int `json:"has"`
}

Blink blink return value

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

func (d *Dao) AddUpInfoCache(c context.Context, mid int64, st *accmdl.UpInfo) (err error)

AddUpInfoCache add stat cache.

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

Blink get BLink up info.

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, ip string) (cards map[int64]*accapi.Card, err error)

Cards get cards from rpc

func (*Dao) CheckIdentify

func (d *Dao) CheckIdentify(identify int) (err error)

CheckIdentify fn

func (*Dao) Followers

func (d *Dao) Followers(c context.Context, owner int64, mids []int64, ip string) (relations map[int64]int, err error)

Followers get users only follower relation which attr eq 2 with errgroup

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, mid int64, phoneOnly int8, ip string) (ret int, err error)

IdentifyInfo 获取用户实名认证状态 tel_status int 0未绑定,1已绑定有效手机号 2绑定虚拟号段170/171 identification int 身份证绑定状态,0:未绑定 1:已绑定

func (*Dao) Infos

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

Infos get user info by mids.

func (*Dao) MidByName

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

MidByName 获取mid

func (*Dao) PhoneEmail

func (d *Dao) PhoneEmail(c context.Context, ck, ip string) (ct *appeal.Contact, err error)

PhoneEmail get user email & phone

func (*Dao) Pic

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

Pic get pic up info.

func (*Dao) Profile

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

Profile get account.

func (*Dao) ProfileWithStat

func (d *Dao) ProfileWithStat(c context.Context, mid int64) (res *accapi.ProfileStatReply, err error)

ProfileWithStat get account.

func (*Dao) RelationFollowers

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

RelationFollowers get all relation state.

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

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

Relations2

func (*Dao) RichRelation

func (d *Dao) RichRelation(c context.Context, owner int64, mids []int64, ip string) (richRel map[int64]int32, err error)

RichRelation get multi user relations

func (*Dao) ShouldFollow

func (d *Dao) ShouldFollow(c context.Context, mid int64, fids []int64, ip string) (shouldMids []int64, err error)

ShouldFollow fn

func (*Dao) UpInfoCache

func (d *Dao) UpInfoCache(c context.Context, mid int64) (st *accmdl.UpInfo, err error)

UpInfoCache get stat cache.

type Pic

type Pic struct {
	Has int `json:"has_doc"`
}

Pic pic return value

Jump to

Keyboard shortcuts

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