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

func (*Dao) BlockTime

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

BlockTime get user blocktime

func (*Dao) Card

func (d *Dao) Card(c context.Context, mid int64) (card *account.Card, err error)

Card get card

func (*Dao) Cards3

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

Cards3 is

func (*Dao) Infos3

func (d *Dao) Infos3(c context.Context, mids []int64) (res map[int64]*account.Info, err error)

Infos3 rpc info get by mids .

func (*Dao) Profile3

func (d *Dao) Profile3(c context.Context, mid int64) (card *account.ProfileStat, err error)

Profile3 get profile

func (*Dao) ProfileByName3

func (d *Dao) ProfileByName3(c context.Context, name string) (card *account.ProfileStat, err error)

ProfileByName3 rpc card get by name

func (*Dao) RedDot

func (d *Dao) RedDot(c context.Context, mid int64, redDotURL string) (ok bool, err error)

RedDot 我的页小红点逻辑

func (*Dao) Relations3

func (d *Dao) Relations3(c context.Context, owners []int64, mid int64) (follows map[int64]bool)

Relations3 relations.

func (*Dao) RichRelations3

func (d *Dao) RichRelations3(c context.Context, owner, mid int64) (rel int, err error)

RichRelations3 rich relations.

func (*Dao) UserCheck

func (d *Dao) UserCheck(c context.Context, mid int64, checkURL string) (ok bool, err error)

UserCheck 各种入口白名单 https://www.tapd.cn/20055921/prong/stories/view/1120055921001066980 动态互推TAPD在此!!

Jump to

Keyboard shortcuts

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