Documentation
¶
Index ¶
- func PopupKey(mid int64) string
- func RedPointKey(mid int64) string
- type Dao
- func (d *Dao) AddIgnoreInvite(c context.Context, inv *model.Invite) (affected int64, err error)
- func (d *Dao) AddMedal(c context.Context, m *model.Medal) (affected int64, err error)
- func (d *Dao) AddMedalOperLog(c context.Context, oid int64, mid int64, medalID int64, action string) (affected int64, err error)
- func (d *Dao) AddPendantEquip(c context.Context, pkg *model.PendantPKG) (affected int64, err error)
- func (d *Dao) AddPendantGroup(c context.Context, pg *model.PendantGroup) (gid int64, err error)
- func (d *Dao) AddPendantOperLog(c context.Context, oid int64, uids []int64, pid int64, action string) (affected int64, err error)
- func (d *Dao) AddPendantPKG(c context.Context, pkg *model.PendantPKG) (affected int64, err error)
- func (d *Dao) BeginTran(c context.Context) (tx *sql.Tx, err error)
- func (d *Dao) BuildOrderInfoSQL(c context.Context, arg *model.ArgPendantOrder, tp string) (sql string, values []interface{})
- func (d *Dao) Close()
- func (d *Dao) CountOrderHistory(c context.Context, arg *model.ArgPendantOrder) (total int64, err error)
- func (d *Dao) CountOwnerBYNidMid(c context.Context, mid, nid int64) (count int64, err error)
- func (d *Dao) DelEquipsCache(c context.Context, uids []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) DelPKGCache(c context.Context, uids []int64) (err error)
- func (d *Dao) DelPendantPointCache(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) Manager(c context.Context, pn, ps int64) (mi []*model.MangerInfo, err error)
- func (d *Dao) ManagerTotal(c context.Context) (count int64, err error)
- func (d *Dao) Managers(c context.Context) (manMap map[int64]string, err error)
- func (d *Dao) MaxOrderHistory(c context.Context) (max int64, err error)
- func (d *Dao) Medal(c context.Context) (ms []*model.Medal, err error)
- func (d *Dao) MedalActivatedCache(c context.Context, mid int64) (nid int64, err error)
- func (d *Dao) MedalAddList(c context.Context, mid int64) (ms []*model.MedalMemberAddList, err error)
- func (d *Dao) MedalByID(c context.Context, id int64) (m *model.Medal, err error)
- func (d *Dao) MedalGroup(c context.Context) (res map[int64]*model.MedalGroup, err error)
- func (d *Dao) MedalGroupAdd(c context.Context, mg *model.MedalGroup) (affected int64, err error)
- func (d *Dao) MedalGroupByID(c context.Context, id int64) (mg *model.MedalGroup, err error)
- func (d *Dao) MedalGroupInfo(c context.Context) (res []*model.MedalGroup, err error)
- func (d *Dao) MedalGroupParent(c context.Context) (res []*model.MedalGroup, err error)
- func (d *Dao) MedalGroupUp(c context.Context, id int64, mg *model.MedalGroup) (affected int64, err error)
- func (d *Dao) MedalOperLog(c context.Context, mid int64, pn, ps int) (opers []*model.MedalOperLog, uids []int64, err error)
- func (d *Dao) MedalOperationLogTotal(c context.Context, mid int64) (count int64, err error)
- func (d *Dao) MedalOwner(c context.Context, mid int64) (res []*model.MedalMemberMID, err error)
- func (d *Dao) MedalOwnerAdd(c context.Context, mid, nid int64) (affected int64, err error)
- func (d *Dao) MedalOwnerDel(c context.Context, mid, nid int64, isDel int8) (affected int64, err error)
- func (d *Dao) MedalOwnerUpActivated(c context.Context, mid, nid int64) (affected int64, err error)
- func (d *Dao) MedalOwnerUpNotActivated(c context.Context, mid, nid int64) (affected int64, err error)
- func (d *Dao) MedalOwnersCache(c context.Context, mid int64) (res []*model.MedalOwner, err error)
- func (d *Dao) MutliSendSysMsg(c context.Context, allUids []int64, title string, context string, ip string) (err error)
- func (d *Dao) OrderHistorys(c context.Context, arg *model.ArgPendantOrder) (pos []*model.PendantOrder, pids []int64, err error)
- func (d *Dao) PendantEquipUID(c context.Context, uid int64) (pkg *model.PendantPKG, err error)
- func (d *Dao) PendantGroupAll(c context.Context) (pgs []*model.PendantGroup, err error)
- func (d *Dao) PendantGroupID(c context.Context, id int64) (pg *model.PendantGroup, err error)
- func (d *Dao) PendantGroupIDs(c context.Context, ids []int64) (pgs []*model.PendantGroup, err error)
- func (d *Dao) PendantGroupInfoTotal(c context.Context) (count int64, err error)
- func (d *Dao) PendantGroupPIDs(c context.Context, gid int64, pn, ps int) (pids []int64, err error)
- func (d *Dao) PendantGroupRefRanks(c context.Context, pn, ps int) (prs []*model.PendantGroupRef, err error)
- func (d *Dao) PendantGroupRefsGidTotal(c context.Context, gid int64) (count int64, err error)
- func (d *Dao) PendantGroupRefsTotal(c context.Context) (count int64, err error)
- func (d *Dao) PendantGroups(c context.Context, pn, ps int) (pgs []*model.PendantGroup, err error)
- func (d *Dao) PendantGroupsTotal(c context.Context) (count int64, err error)
- func (d *Dao) PendantInfoAll(c context.Context, pn, ps int) (pis []*model.PendantInfo, pids []int64, err error)
- func (d *Dao) PendantInfoAllNoPage(c context.Context) (pis []*model.PendantInfo, err error)
- func (d *Dao) PendantInfoID(c context.Context, id int64) (pi *model.PendantInfo, err error)
- func (d *Dao) PendantInfoIDs(c context.Context, ids []int64) (pis []*model.PendantInfo, pim map[int64]*model.PendantInfo, err error)
- func (d *Dao) PendantOperLog(c context.Context, pn, ps int) (opers []*model.PendantOperLog, uids []int64, err error)
- func (d *Dao) PendantOperationLogTotal(c context.Context) (count int64, err error)
- func (d *Dao) PendantPKG(c context.Context, uid, pid int64) (pkg *model.PendantPKG, err error)
- func (d *Dao) PendantPKGUIDs(c context.Context, uids []int64, pid int64) (pkgs []*model.PendantPKG, err error)
- func (d *Dao) PendantPKGs(c context.Context, uid int64) (pkgs []*model.PendantPKG, err error)
- func (d *Dao) PendantPointCache(c context.Context, mid int64) (pid int64, err error)
- func (d *Dao) PendantPriceIDs(c context.Context, ids []int64) (ppm map[int64][]*model.PendantPrice, 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) RangeInvites(c context.Context, mid int64, start, end time.Time) (res []*model.Invite, err error)
- func (d *Dao) RedPointCache(c context.Context, mid int64) (nid int64, err error)
- func (d *Dao) SendSysMsg(c context.Context, uids []int64, title string, context string, ip 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) SetPendantPointCache(c context.Context, mid, pid int64) (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) TxAddPendantGroupRef(tx *xsql.Tx, pr *model.PendantGroupRef) (affected int64, err error)
- func (d *Dao) TxAddPendantInfo(tx *xsql.Tx, pi *model.PendantInfo) (pid int64, err error)
- func (d *Dao) TxAddPendantPKGs(tx *xsql.Tx, pkgs []*model.PendantPKG) (affected int64, err error)
- func (d *Dao) TxAddPendantPrices(tx *xsql.Tx, pp *model.PendantPrice) (affected int64, err error)
- func (d *Dao) TxUpPendantGroupRef(tx *xsql.Tx, gid, pid int64) (affected int64, err error)
- func (d *Dao) TxUpPendantInfo(tx *xsql.Tx, pi *model.PendantInfo) (affected int64, err error)
- func (d *Dao) TxUpPendantPKGs(tx *xsql.Tx, pkgs []*model.PendantPKG) (affected int64, err error)
- func (d *Dao) UpMedal(c context.Context, id int64, m *model.Medal) (affected int64, err error)
- func (d *Dao) UpPendantGroup(c context.Context, pg *model.PendantGroup) (affected int64, err error)
- func (d *Dao) UpPendantGroupStatus(c context.Context, gid int64, status int8) (affected int64, err error)
- func (d *Dao) UpPendantInfoStatus(c context.Context, pid int64, status int8) (affected int64, err error)
- func (d *Dao) Upload(c context.Context, fileName, fileType string, expire int64, body io.Reader) (location string, 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 answer history of Dao
func (*Dao) AddIgnoreInvite ¶
AddIgnoreInvite add ignore invite code.
func (*Dao) AddMedalOperLog ¶
func (d *Dao) AddMedalOperLog(c context.Context, oid int64, mid int64, medalID int64, action string) (affected int64, err error)
AddMedalOperLog insert medal operation log.
func (*Dao) AddPendantEquip ¶
AddPendantEquip insert pendant equip.
func (*Dao) AddPendantGroup ¶
AddPendantGroup insert pendant group .
func (*Dao) AddPendantOperLog ¶
func (d *Dao) AddPendantOperLog(c context.Context, oid int64, uids []int64, pid int64, action string) (affected int64, err error)
AddPendantOperLog insert pendant operation log.
func (*Dao) AddPendantPKG ¶
AddPendantPKG insert pendant pkg.
func (*Dao) BuildOrderInfoSQL ¶
func (d *Dao) BuildOrderInfoSQL(c context.Context, arg *model.ArgPendantOrder, tp string) (sql string, values []interface{})
BuildOrderInfoSQL build a order sql string.
func (*Dao) CountOrderHistory ¶
func (d *Dao) CountOrderHistory(c context.Context, arg *model.ArgPendantOrder) (total int64, err error)
CountOrderHistory count order history.
func (*Dao) CountOwnerBYNidMid ¶
CountOwnerBYNidMid retun number of medal_owner by mid and nid.
func (*Dao) DelEquipsCache ¶
DelEquipsCache del batch equip cache .
func (*Dao) DelMedalActivatedCache ¶
DelMedalActivatedCache delete activated medal cache.
func (*Dao) DelMedalOwnersCache ¶
DelMedalOwnersCache delete medal_owner cache.
func (*Dao) DelPKGCache ¶
DelPKGCache del package cache
func (*Dao) DelPendantPointCache ¶
DelPendantPointCache delete new pendant info red point cache.
func (*Dao) DelPopupCache ¶
DelPopupCache delete new medal info popup cache.
func (*Dao) DelRedPointCache ¶
DelRedPointCache delete new medal info red point cache.
func (*Dao) ManagerTotal ¶
ManagerTotal get manager user total.
func (*Dao) MaxOrderHistory ¶
MaxOrderHistory max order history.
func (*Dao) MedalActivatedCache ¶
MedalActivatedCache get user activated medal nid.
func (*Dao) MedalAddList ¶
func (d *Dao) MedalAddList(c context.Context, mid int64) (ms []*model.MedalMemberAddList, err error)
MedalAddList .
func (*Dao) MedalGroup ¶
MedalGroup return medal group all .
func (*Dao) MedalGroupAdd ¶
MedalGroupAdd add medal group .
func (*Dao) MedalGroupByID ¶
MedalGroupByID medal group by gid .
func (*Dao) MedalGroupInfo ¶
MedalGroupInfo return medal group all info include parent group name .
func (*Dao) MedalGroupParent ¶
MedalGroupParent return medal group parent info .
func (*Dao) MedalGroupUp ¶
func (d *Dao) MedalGroupUp(c context.Context, id int64, mg *model.MedalGroup) (affected int64, err error)
MedalGroupUp update name group .
func (*Dao) MedalOperLog ¶
func (d *Dao) MedalOperLog(c context.Context, mid int64, pn, ps int) (opers []*model.MedalOperLog, uids []int64, err error)
MedalOperLog get medal operation log.
func (*Dao) MedalOperationLogTotal ¶
MedalOperationLogTotal medal operation log total.
func (*Dao) MedalOwner ¶
MedalOwner medal owner .
func (*Dao) MedalOwnerAdd ¶
MedalOwnerAdd add medal owner .
func (*Dao) MedalOwnerDel ¶
func (d *Dao) MedalOwnerDel(c context.Context, mid, nid int64, isDel int8) (affected int64, err error)
MedalOwnerDel update medal owner is_del=1.
func (*Dao) MedalOwnerUpActivated ¶
MedalOwnerUpActivated update medal owner is_activated=1.
func (*Dao) MedalOwnerUpNotActivated ¶
func (d *Dao) MedalOwnerUpNotActivated(c context.Context, mid, nid int64) (affected int64, err error)
MedalOwnerUpNotActivated update medal owner is_activated=0.
func (*Dao) MedalOwnersCache ¶
MedalOwnersCache get medal_owner cache.
func (*Dao) MutliSendSysMsg ¶
func (d *Dao) MutliSendSysMsg(c context.Context, allUids []int64, title string, context string, ip string) (err error)
MutliSendSysMsg Mutli send sys msg.
func (*Dao) OrderHistorys ¶
func (d *Dao) OrderHistorys(c context.Context, arg *model.ArgPendantOrder) (pos []*model.PendantOrder, pids []int64, err error)
OrderHistorys get order historys.
func (*Dao) PendantEquipUID ¶
PendantEquipUID pendant equip by uid.
func (*Dao) PendantGroupAll ¶
PendantGroupAll pendant all group .
func (*Dao) PendantGroupID ¶
PendantGroupID pendant group by id.
func (*Dao) PendantGroupIDs ¶
func (d *Dao) PendantGroupIDs(c context.Context, ids []int64) (pgs []*model.PendantGroup, err error)
PendantGroupIDs pendant group in ids.
func (*Dao) PendantGroupInfoTotal ¶
PendantGroupInfoTotal pendant group info total.
func (*Dao) PendantGroupPIDs ¶
PendantGroupPIDs pendant group ref pagesize.
func (*Dao) PendantGroupRefRanks ¶
func (d *Dao) PendantGroupRefRanks(c context.Context, pn, ps int) (prs []*model.PendantGroupRef, err error)
PendantGroupRefRanks pendant group ref pagesize by rank.
func (*Dao) PendantGroupRefsGidTotal ¶
PendantGroupRefsGidTotal pendant group refs total by gid.
func (*Dao) PendantGroupRefsTotal ¶
PendantGroupRefsTotal pendant group refs total.
func (*Dao) PendantGroups ¶
PendantGroups pendant group pagesize.
func (*Dao) PendantGroupsTotal ¶
PendantGroupsTotal pendant group total.
func (*Dao) PendantInfoAll ¶
func (d *Dao) PendantInfoAll(c context.Context, pn, ps int) (pis []*model.PendantInfo, pids []int64, err error)
PendantInfoAll pendant info all.
func (*Dao) PendantInfoAllNoPage ¶
PendantInfoAllNoPage pendant info no page.
func (*Dao) PendantInfoID ¶
PendantInfoID pendant info.
func (*Dao) PendantInfoIDs ¶
func (d *Dao) PendantInfoIDs(c context.Context, ids []int64) (pis []*model.PendantInfo, pim map[int64]*model.PendantInfo, err error)
PendantInfoIDs pendant info in ids.
func (*Dao) PendantOperLog ¶
func (d *Dao) PendantOperLog(c context.Context, pn, ps int) (opers []*model.PendantOperLog, uids []int64, err error)
PendantOperLog get pendant operation log.
func (*Dao) PendantOperationLogTotal ¶
PendantOperationLogTotal pendant operation log total.
func (*Dao) PendantPKG ¶
PendantPKG get pendant in pkg.
func (*Dao) PendantPKGUIDs ¶
func (d *Dao) PendantPKGUIDs(c context.Context, uids []int64, pid int64) (pkgs []*model.PendantPKG, err error)
PendantPKGUIDs get pendant pkgs by muilti uid.
func (*Dao) PendantPKGs ¶
PendantPKGs get pendant pkgs.
func (*Dao) PendantPointCache ¶
PendantPointCache get new pendant info red point cache.
func (*Dao) PendantPriceIDs ¶
func (d *Dao) PendantPriceIDs(c context.Context, ids []int64) (ppm map[int64][]*model.PendantPrice, err error)
PendantPriceIDs pendant price in ids.
func (*Dao) PopupCache ¶
PopupCache get new medal info popup cache.
func (*Dao) RangeInvites ¶
func (d *Dao) RangeInvites(c context.Context, mid int64, start, end time.Time) (res []*model.Invite, err error)
RangeInvites range invites.
func (*Dao) RedPointCache ¶
RedPointCache get new medal info red point cache.
func (*Dao) SendSysMsg ¶
func (d *Dao) SendSysMsg(c context.Context, uids []int64, title string, context string, ip string) (err error)
SendSysMsg send sys msg.
func (*Dao) SetMedalActivatedCache ¶
SetMedalActivatedCache set activated medal cache.
func (*Dao) SetMedalOwnersache ¶
SetMedalOwnersache set medal_owner cache.
func (*Dao) SetPendantPointCache ¶
SetPendantPointCache set red point cache.
func (*Dao) SetPopupCache ¶
SetPopupCache set popup cache.
func (*Dao) SetRedPointCache ¶
SetRedPointCache set red point cache.
func (*Dao) TxAddPendantGroupRef ¶
func (d *Dao) TxAddPendantGroupRef(tx *xsql.Tx, pr *model.PendantGroupRef) (affected int64, err error)
TxAddPendantGroupRef tx insert pendant group ref.
func (*Dao) TxAddPendantInfo ¶
TxAddPendantInfo insert pendant info.
func (*Dao) TxAddPendantPKGs ¶
TxAddPendantPKGs multi insert pendant pkg.
func (*Dao) TxAddPendantPrices ¶
TxAddPendantPrices insert pendant prices.
func (*Dao) TxUpPendantGroupRef ¶
TxUpPendantGroupRef update pendant group ref.
func (*Dao) TxUpPendantInfo ¶
TxUpPendantInfo update pendant info.
func (*Dao) TxUpPendantPKGs ¶
TxUpPendantPKGs multi update pendant pkg.
func (*Dao) UpPendantGroup ¶
UpPendantGroup update pendant group.
func (*Dao) UpPendantGroupStatus ¶
func (d *Dao) UpPendantGroupStatus(c context.Context, gid int64, status int8) (affected int64, err error)
UpPendantGroupStatus update pendant group status.