Documentation
¶
Index ¶
- type Blink
- type Dao
- func (d *Dao) AddUpInfoCache(c context.Context, mid int64, st *accmdl.UpInfo) (err error)
- func (d *Dao) Blink(c context.Context, mid int64, ip string) (has int, err error)
- func (d *Dao) Card(c context.Context, mid int64, ip string) (res *accapi.Card, err error)
- func (d *Dao) Cards(c context.Context, mids []int64, ip string) (cards map[int64]*accapi.Card, err error)
- func (d *Dao) CheckIdentify(identify int) (err error)
- func (d *Dao) Followers(c context.Context, owner int64, mids []int64, ip string) (relations map[int64]int, err error)
- func (d *Dao) HalfMin(c context.Context, mid int64) (exist bool, ts uint64, err error)
- func (d *Dao) IdentifyInfo(c context.Context, mid int64, phoneOnly int8, ip string) (ret int, err error)
- func (d *Dao) Infos(c context.Context, mids []int64, ip string) (res map[int64]*accapi.Info, err error)
- func (d *Dao) MidByName(c context.Context, name string) (mid int64, err error)
- func (d *Dao) PhoneEmail(c context.Context, ck, ip string) (ct *appeal.Contact, err error)
- func (d *Dao) Pic(c context.Context, mid int64, ip string) (has int, err error)
- func (d *Dao) Profile(c context.Context, mid int64, ip string) (res *accapi.Profile, err error)
- func (d *Dao) ProfileWithStat(c context.Context, mid int64) (res *accapi.ProfileStatReply, err error)
- func (d *Dao) RelationFollowers(c context.Context, mid int64, ip string) (res map[int64]int32, err error)
- func (d *Dao) Relations(c context.Context, mid int64, fids []int64, ip string) (res map[int64]int, err error)
- func (d *Dao) Relations2(c context.Context, mid int64, fids []int64, ip string) (res map[int64]int, err error)
- func (d *Dao) RichRelation(c context.Context, owner int64, mids []int64, ip string) (richRel map[int64]int32, err error)
- func (d *Dao) ShouldFollow(c context.Context, mid int64, fids []int64, ip string) (shouldMids []int64, err error)
- func (d *Dao) UpInfoCache(c context.Context, mid int64) (st *accmdl.UpInfo, err error)
- type Pic
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 (*Dao) AddUpInfoCache ¶
AddUpInfoCache add stat cache.
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) 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) 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) PhoneEmail ¶
PhoneEmail get user email & phone
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
Click to show internal directories.
Click to hide internal directories.