Documentation ¶
Index ¶
- type Dao
- func (d *Dao) AddCacheCard(c context.Context, mid int64, v *v1.Card) (err error)
- func (d *Dao) AddCacheCards(c context.Context, cm map[int64]*v1.Card) (err error)
- func (d *Dao) AddCacheInfo(c context.Context, mid int64, v *v1.Info) (err error)
- func (d *Dao) AddCacheInfos(c context.Context, im map[int64]*v1.Info) (err error)
- func (d *Dao) AddCacheProfile(c context.Context, mid int64, v *v1.Profile) (err error)
- func (d *Dao) AddCacheVip(c context.Context, mid int64, v *v1.VipInfo) (err error)
- func (d *Dao) AddCacheVips(c context.Context, vm map[int64]*v1.VipInfo) (err error)
- func (d *Dao) AddMoral(c context.Context, arg *mmodel.ArgUpdateMoral) (err error)
- func (d *Dao) CacheCard(c context.Context, mid int64) (v *v1.Card, err error)
- func (d *Dao) CacheCards(c context.Context, mids []int64) (res map[int64]*v1.Card, err error)
- func (d *Dao) CacheInfo(c context.Context, mid int64) (v *v1.Info, err error)
- func (d *Dao) CacheInfos(c context.Context, mids []int64) (res map[int64]*v1.Info, err error)
- func (d *Dao) CacheProfile(c context.Context, mid int64) (v *v1.Profile, err error)
- func (d *Dao) CacheVip(c context.Context, mid int64) (v *v1.VipInfo, err error)
- func (d *Dao) CacheVips(c context.Context, mids []int64) (res map[int64]*v1.VipInfo, err error)
- func (d *Dao) Card(c context.Context, id int64) (res *v1.Card, err error)
- func (d *Dao) Cards(c context.Context, keys []int64) (res map[int64]*v1.Card, err error)
- func (d *Dao) Close()
- func (d *Dao) DelCache(c context.Context, mid int64) []error
- func (d *Dao) Info(c context.Context, id int64) (res *v1.Info, err error)
- func (d *Dao) Infos(c context.Context, keys []int64) (res map[int64]*v1.Info, err error)
- func (d *Dao) LevelExp(c context.Context, mid int64) (lexp *mmodel.LevelInfo, err error)
- func (d *Dao) MidsByName(ctx context.Context, names []string) ([]int64, error)
- func (d *Dao) PassportDetail(c context.Context, mid int64) (res *model.PassportDetail, err error)
- func (d *Dao) PassportProfile(c context.Context, mid int64, ip string) (res *model.PassportProfile, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) Profile(c context.Context, id int64) (res *v1.Profile, err error)
- func (d *Dao) RawCard(c context.Context, mid int64) (res *v1.Card, err error)
- func (d *Dao) RawCards(c context.Context, mids []int64) (res map[int64]*v1.Card, err error)
- func (d *Dao) RawInfo(c context.Context, mid int64) (res *v1.Info, err error)
- func (d *Dao) RawInfos(c context.Context, mids []int64) (res map[int64]*v1.Info, err error)
- func (d *Dao) RawProfile(c context.Context, mid int64) (res *v1.Profile, err error)
- func (d *Dao) RawVip(c context.Context, mid int64) (vip *v1.VipInfo, err error)
- func (d *Dao) RawVips(c context.Context, mids []int64) (res map[int64]*v1.VipInfo, err error)
- func (d *Dao) RealnameDetail(c context.Context, mid int64) (detail *member.RealnameDetail, err error)
- func (d *Dao) UpdateExp(c context.Context, arg *mmodel.ArgAddExp) error
- func (d *Dao) Vip(c context.Context, id int64) (res *v1.VipInfo, err error)
- func (d *Dao) Vips(c context.Context, keys []int64) (res map[int64]*v1.VipInfo, err error)
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.
func (*Dao) AddCacheCard ¶
AddCacheCard set account card into cache.
func (*Dao) AddCacheCards ¶
AddCacheCards set account cards cache.
func (*Dao) AddCacheInfo ¶
AddCacheInfo set account info into cache.
func (*Dao) AddCacheInfos ¶
AddCacheInfos set account infos cache.
func (*Dao) AddCacheProfile ¶
AddCacheProfile set profile cache.
func (*Dao) AddCacheVip ¶
AddCacheVip set vip cache.
func (*Dao) AddCacheVips ¶
AddCacheVips set account vips cache.
func (*Dao) CacheCards ¶
CacheCards multi get account cards from cache.
func (*Dao) CacheInfos ¶
CacheInfos multi get account info from cache.
func (*Dao) CacheProfile ¶
CacheProfile get profile cache.
func (*Dao) MidsByName ¶
MidsByName is.
func (*Dao) PassportDetail ¶
PassportDetail get detail.
func (*Dao) PassportProfile ¶
func (d *Dao) PassportProfile(c context.Context, mid int64, ip string) (res *model.PassportProfile, err error)
PassportProfile is.
func (*Dao) RawProfile ¶
RawProfile get profile by mid.
func (*Dao) RealnameDetail ¶
func (d *Dao) RealnameDetail(c context.Context, mid int64) (detail *member.RealnameDetail, err error)
RealnameDetail is.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.