Documentation
¶
Index ¶
- type Dao
- func (d *Dao) AddEquip(c context.Context, arg *model.PendantEquip) (n int64, err error)
- func (d *Dao) AddEquipCache(c context.Context, mid int64, info *model.PendantEquip) (err error)
- func (d *Dao) AddEquipsCache(c context.Context, equips map[int64]*model.PendantEquip) (err error)
- func (d *Dao) AddOrderInfo(c context.Context, arg *model.PendantOrderInfo) (id int64, err error)
- func (d *Dao) AddPKGCache(c context.Context, mid int64, info []*model.PendantPackage) (err error)
- func (d *Dao) BeginTran(c context.Context) (res *xsql.Tx, err error)
- func (d *Dao) CheckPackageExpire(c context.Context, mid, expires int64) (rows int64, err error)
- func (d *Dao) Close()
- func (d *Dao) DelEquipCache(c context.Context, mid int64) (err error)
- func (d *Dao) DelEquipsCache(c context.Context, mids []int64) (err error)
- func (d *Dao) DelPKGCache(c context.Context, mid int64) (err error)
- func (d *Dao) DelRedPointCache(c context.Context, mid int64) (err error)
- func (d *Dao) EquipByMid(c context.Context, mid, t int64) (res *model.PendantEquip, noRow bool, err error)
- func (d *Dao) EquipByMids(c context.Context, mids []int64, t int64) (res map[int64]*model.PendantEquip, err error)
- func (d *Dao) EquipCache(c context.Context, mid int64) (*model.PendantEquip, error)
- func (d *Dao) EquipsCache(c context.Context, mids []int64) (map[int64]*model.PendantEquip, []int64, error)
- func (d *Dao) GIDRefPID(c context.Context) (gidMap map[int64][]int64, pidMap map[int64]int64, err error)
- func (d *Dao) GroupByID(c context.Context, gid int64) (res *model.PendantGroupInfo, err error)
- func (d *Dao) OrderInfo(c context.Context, arg *model.ArgOrderHistory) (res []*model.PendantOrderInfo, count int64, err error)
- func (d *Dao) OrderInfoByID(c context.Context, orderID string) (res *model.PendantOrderInfo, err error)
- func (d *Dao) PKGCache(c context.Context, mid int64) (info []*model.PendantPackage, err error)
- func (d *Dao) PackageByID(c context.Context, mid, pid int64) (res *model.PendantPackage, err error)
- func (d *Dao) PackageByMid(c context.Context, mid int64) (res []*model.PendantPackage, err error)
- func (d *Dao) PayBcoin(c context.Context, params url.Values, ip string) (orderNo, casherURL string, err error)
- func (d *Dao) PendantGroupInfo(c context.Context) (res []*model.PendantGroupInfo, err error)
- func (d *Dao) PendantInfo(c context.Context, pid int64) (res *model.Pendant, err error)
- func (d *Dao) PendantList(c context.Context) (res []*model.Pendant, err error)
- func (d *Dao) PendantPrice(c context.Context, pid int64) (res map[int64]*model.PendantPrice, err error)
- func (d *Dao) Pendants(c context.Context, pids []int64) (res []*model.Pendant, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) RedPointCache(c context.Context, mid int64) (pid int64, err error)
- func (d *Dao) SetRedPointCache(c context.Context, mid, pid int64) (err error)
- func (d *Dao) TxAddHistory(c context.Context, arg *model.PendantHistory, tx *xsql.Tx) (id int64, err error)
- func (d *Dao) TxAddOrderInfo(c context.Context, arg *model.PendantOrderInfo, tx *xsql.Tx) (id int64, err error)
- func (d *Dao) TxAddPackage(c context.Context, arg *model.PendantPackage, tx *xsql.Tx) (id int64, err error)
- func (d *Dao) TxUpdateOrderInfo(c context.Context, arg *model.PendantOrderInfo, tx *xsql.Tx) (id int64, err error)
- func (d *Dao) TxUpdatePackageInfo(c context.Context, arg *model.PendantPackage, tx *xsql.Tx) (n int64, err error)
- func (d *Dao) UpEquipMID(c context.Context, mid int64) (n int64, err error)
- func (d *Dao) UpdateOrderInfo(c context.Context, arg *model.PendantOrderInfo) (id int64, err error)
- func (d *Dao) VipInfo(c context.Context, mid int64, ip string) (idt *model.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 struct info of Dao.
func (*Dao) AddEquipCache ¶
AddEquipCache set pendant info cache
func (*Dao) AddEquipsCache ¶
AddEquipsCache mset equips info to caache .
func (*Dao) AddOrderInfo ¶
AddOrderInfo add order log
func (*Dao) AddPKGCache ¶
AddPKGCache set package cache.
func (*Dao) CheckPackageExpire ¶
CheckPackageExpire check expire items and update
func (*Dao) DelEquipCache ¶
DelEquipCache set pendant info cache
func (*Dao) DelEquipsCache ¶
DelEquipsCache del batch equip cache .
func (*Dao) DelPKGCache ¶
DelPKGCache del package cache
func (*Dao) DelRedPointCache ¶
DelRedPointCache delete new pendant info red point cache.
func (*Dao) EquipByMid ¶
func (d *Dao) EquipByMid(c context.Context, mid, t int64) (res *model.PendantEquip, noRow bool, err error)
EquipByMid obtain pendant equiped
func (*Dao) EquipByMids ¶
func (d *Dao) EquipByMids(c context.Context, mids []int64, t int64) (res map[int64]*model.PendantEquip, err error)
EquipByMids obtain equipss by mids .
func (*Dao) EquipCache ¶
EquipCache get equip cache.
func (*Dao) EquipsCache ¶
func (d *Dao) EquipsCache(c context.Context, mids []int64) (map[int64]*model.PendantEquip, []int64, error)
EquipsCache get multi equip cache.
func (*Dao) GIDRefPID ¶
func (d *Dao) GIDRefPID(c context.Context) (gidMap map[int64][]int64, pidMap map[int64]int64, err error)
GIDRefPID gid relation of pid .
func (*Dao) OrderInfo ¶
func (d *Dao) OrderInfo(c context.Context, arg *model.ArgOrderHistory) (res []*model.PendantOrderInfo, count int64, err error)
OrderInfo return order info
func (*Dao) OrderInfoByID ¶
func (d *Dao) OrderInfoByID(c context.Context, orderID string) (res *model.PendantOrderInfo, err error)
OrderInfoByID return order info by order id
func (*Dao) PackageByID ¶
PackageByID get pendant in user's package
func (*Dao) PackageByMid ¶
PackageByMid get pendant in user's package
func (*Dao) PayBcoin ¶
func (d *Dao) PayBcoin(c context.Context, params url.Values, ip string) (orderNo, casherURL string, err error)
PayBcoin pay coin
func (*Dao) PendantGroupInfo ¶
PendantGroupInfo return all group info
func (*Dao) PendantInfo ¶
PendantInfo return pendant info by id
func (*Dao) PendantList ¶
PendantList return pendant info
func (*Dao) PendantPrice ¶
func (d *Dao) PendantPrice(c context.Context, pid int64) (res map[int64]*model.PendantPrice, err error)
PendantPrice return pendant price
func (*Dao) RedPointCache ¶
RedPointCache get new pendant info red point cache.
func (*Dao) SetRedPointCache ¶
SetRedPointCache set red point cache.
func (*Dao) TxAddHistory ¶
func (d *Dao) TxAddHistory(c context.Context, arg *model.PendantHistory, tx *xsql.Tx) (id int64, err error)
TxAddHistory add a history of operation
func (*Dao) TxAddOrderInfo ¶
func (d *Dao) TxAddOrderInfo(c context.Context, arg *model.PendantOrderInfo, tx *xsql.Tx) (id int64, err error)
TxAddOrderInfo add order log
func (*Dao) TxAddPackage ¶
func (d *Dao) TxAddPackage(c context.Context, arg *model.PendantPackage, tx *xsql.Tx) (id int64, err error)
TxAddPackage add a pendant in package
func (*Dao) TxUpdateOrderInfo ¶
func (d *Dao) TxUpdateOrderInfo(c context.Context, arg *model.PendantOrderInfo, tx *xsql.Tx) (id int64, err error)
TxUpdateOrderInfo update order info
func (*Dao) TxUpdatePackageInfo ¶
func (d *Dao) TxUpdatePackageInfo(c context.Context, arg *model.PendantPackage, tx *xsql.Tx) (n int64, err error)
TxUpdatePackageInfo update package info
func (*Dao) UpEquipMID ¶
UpEquipMID uninstall user pid by mid.
func (*Dao) UpdateOrderInfo ¶
UpdateOrderInfo update order info