Documentation ¶
Index ¶
- func PopupKey(mid int64) string
- func RedPointKey(mid int64) string
- type Dao
- func (d *Dao) ActivatedOwnerByMid(c context.Context, mid int64) (nid int64, err error)
- func (d *Dao) AddMedalOwner(c context.Context, mid, nid int64) (err error)
- func (d *Dao) Close()
- func (d *Dao) CountOwnerBYNidMid(c context.Context, mid, nid int64) (count int64, err error)
- func (d *Dao) DelMedalActivatedCache(c context.Context, mid int64) (err error)
- func (d *Dao) DelMedalOwnersCache(c context.Context, mid int64) (err error)
- func (d *Dao) DelPopupCache(c context.Context, mid int64) (err error)
- func (d *Dao) DelRedPointCache(c context.Context, mid int64) (err error)
- func (d *Dao) GetWearedfansMedal(c context.Context, mid int64, source int8) (isLove bool, err error)
- func (d *Dao) InstallMedalOwner(c context.Context, mid, nid int64) (err error)
- func (d *Dao) MedalActivatedCache(c context.Context, mid int64) (int64, bool, error)
- func (d *Dao) MedalGroupAll(c context.Context) (res []*model.MedalGroup, err error)
- func (d *Dao) MedalInfoAll(c context.Context) (res map[int64]*model.MedalInfo, err error)
- func (d *Dao) MedalInfoByNid(c context.Context, nid int64) (res *model.MedalInfo, err error)
- func (d *Dao) MedalOwnerByMid(c context.Context, mid int64) (res []*model.MedalOwner, err error)
- func (d *Dao) MedalOwnersCache(c context.Context, mid int64) (res []*model.MedalOwner, notFound bool, err error)
- func (d *Dao) MedalsActivatedCache(c context.Context, mids []int64) (map[int64]int64, []int64, error)
- func (d *Dao) OwnerBYNidMid(c context.Context, mid, nid int64) (res *model.MedalOwner, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) PopupCache(c context.Context, mid int64) (nid int64, err error)
- func (d *Dao) RedPointCache(c context.Context, mid int64) (nid int64, err error)
- func (d *Dao) SendMsg(c context.Context, mid int64, title string, context string) (err error)
- func (d *Dao) SetMedalActivatedCache(c context.Context, mid, nid int64) (err error)
- func (d *Dao) SetMedalOwnersache(c context.Context, mid int64, nos []*model.MedalOwner) (err error)
- func (d *Dao) SetPopupCache(c context.Context, mid, nid int64) (err error)
- func (d *Dao) SetRedPointCache(c context.Context, mid, nid int64) (err error)
- func (d *Dao) UninstallAllMedalOwner(c context.Context, mid, nid int64) (err error)
- func (d *Dao) UninstallMedalOwner(c context.Context, mid, nid int64) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao struct info of Dao.
func (*Dao) ActivatedOwnerByMid ¶
ActivatedOwnerByMid retun nid of medal_owner by mid where is_activated=1.
func (*Dao) AddMedalOwner ¶
AddMedalOwner insert into medal_owner.
func (*Dao) CountOwnerBYNidMid ¶
CountOwnerBYNidMid retun number of medal_owner by mid and nid.
func (*Dao) DelMedalActivatedCache ¶
DelMedalActivatedCache delete activated medal cache.
func (*Dao) DelMedalOwnersCache ¶
DelMedalOwnersCache delete medal_owner cache.
func (*Dao) DelPopupCache ¶
DelPopupCache delete new medal info popup cache.
func (*Dao) DelRedPointCache ¶
DelRedPointCache delete new medal info red point cache.
func (*Dao) GetWearedfansMedal ¶
func (d *Dao) GetWearedfansMedal(c context.Context, mid int64, source int8) (isLove bool, err error)
GetWearedfansMedal get weared fans medals from live.
func (*Dao) InstallMedalOwner ¶
InstallMedalOwner update medal_owner set is_activated=1.
func (*Dao) MedalActivatedCache ¶
MedalActivatedCache get medal cache.
func (*Dao) MedalGroupAll ¶
MedalGroupAll retun all medal_group where is_online=1.
func (*Dao) MedalInfoAll ¶
MedalInfoAll retun all medal_info where is_online=1.
func (*Dao) MedalInfoByNid ¶
MedalInfoByNid return medal_info by nid.
func (*Dao) MedalOwnerByMid ¶
MedalOwnerByMid return medal_owner by mid.
func (*Dao) MedalOwnersCache ¶
func (d *Dao) MedalOwnersCache(c context.Context, mid int64) (res []*model.MedalOwner, notFound bool, err error)
MedalOwnersCache get medal_owner cache.
func (*Dao) MedalsActivatedCache ¶
func (d *Dao) MedalsActivatedCache(c context.Context, mids []int64) (map[int64]int64, []int64, error)
MedalsActivatedCache get multi medals cache.
func (*Dao) OwnerBYNidMid ¶
OwnerBYNidMid retun medal_owner by mid and nid.
func (*Dao) PopupCache ¶
PopupCache get new medal info popup cache.
func (*Dao) RedPointCache ¶
RedPointCache get new medal info red point cache.
func (*Dao) SetMedalActivatedCache ¶
SetMedalActivatedCache set activated medal cache.
func (*Dao) SetMedalOwnersache ¶
SetMedalOwnersache set medal_owner cache.
func (*Dao) SetPopupCache ¶
SetPopupCache set popup cache.
func (*Dao) SetRedPointCache ¶
SetRedPointCache set red point cache.
func (*Dao) UninstallAllMedalOwner ¶
UninstallAllMedalOwner uninst all medal_owner set is_activated=0.