Documentation ¶
Index ¶
- type Dao
- func (d *Dao) AddBcoinSalary(c context.Context, arg *model.VipBcoinSalaryMsg) (err error)
- func (d *Dao) AddChangeHistoryBatch(res []*model.VipChangeHistory) (err error)
- func (d *Dao) AddLogginIP(c context.Context, mid int64, ip uint32) (err error)
- func (d *Dao) AddPayOrder(c context.Context, r *model.VipPayOrder) (a int64, err error)
- func (d *Dao) AddPayOrderLog(c context.Context, r *model.VipPayOrderLog) (a int64, err error)
- func (d *Dao) AddSalaryLog(c context.Context, l *model.VideoCouponSalaryLog, dv string) (err error)
- func (d *Dao) AddTransferLock(c context.Context, key string) (succeed bool)
- func (d *Dao) AddUserInfo(tx *sql.Tx, r *model.VipUserInfo) (eff int64, err error)
- func (d *Dao) AutoRenewPay(c context.Context, mid int64) (res *model.CommonResq, err error)
- func (d *Dao) BatchAddBcoinSalary(bcoins []*model.VipBcoinSalary) (err error)
- func (d *Dao) BatchAddPayOrder(c context.Context, res []*model.VipPayOrder) (err error)
- func (d *Dao) Close()
- func (d *Dao) DelBcoinSalary(c context.Context, payday string, mid int64) (err error)
- func (d *Dao) DelCache(c context.Context, mid int64) (err error)
- func (d *Dao) DelInfoCache(c context.Context, mid int64) (err error)
- func (d *Dao) DelVipFrozen(c context.Context, mid int64) (err error)
- func (d *Dao) DelVipInfoCache(c context.Context, mid int64) (err error)
- func (d *Dao) Dequeue(c context.Context) (mid []int64, err error)
- func (d *Dao) DupUserDiscountHistory(tx *sql.Tx, r *model.VipUserDiscountHistory) (a int64, err error)
- func (d *Dao) Enqueue(c context.Context, mid, score int64) (err error)
- func (d *Dao) GetAbleCode(tx *sql.Tx, batchCodeID int64) (code string, err error)
- func (d *Dao) GetVipBuyCache(c context.Context, mid int64) (val int64, err error)
- func (d *Dao) GetVipMadelCache(c context.Context, mid int64) (val int64, err error)
- func (d *Dao) LoginCount(c context.Context, mid int64) (count int64, err error)
- func (d *Dao) NotGrantActOrders(c context.Context, panelType string, limit int) (res []*model.VipOrderActivityRecord, err error)
- func (d *Dao) OldFrozenChange(mid, status int64) (err error)
- func (d *Dao) OldVipInfo(c context.Context, mid int64) (r *model.VipUserInfoOld, err error)
- func (d *Dao) PayOrder(c context.Context, paramsMap map[string]interface{}) (err error)
- func (d *Dao) PaySign(params map[string]string, token string) (sign string)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) PushData(c context.Context, mids []int64, pushData *model.VipPushData, curtime string) (rel *model.VipPushResq, err error)
- func (d *Dao) PushDatas(c context.Context, curtime string) (res []*model.VipPushData, err error)
- func (d *Dao) RemQueue(c context.Context, mid int64) (err error)
- func (d *Dao) SalaryCoupon(c context.Context, mid int64, couponType int8, count int64, token string) (err error)
- func (d *Dao) SalaryLogMaxID(c context.Context, dv string) (maxID int, err error)
- func (d *Dao) SalaryVideoCouponList(c context.Context, mid int64, dv string) (res []*model.VideoCouponSalaryLog, err error)
- func (d *Dao) SelAppInfo(c context.Context) (res []*model.VipAppInfo, err error)
- func (d *Dao) SelBatchCodeByID(tx *sql.Tx, batchCodeID int64) (r *model.VipResourceBatchCode, err error)
- func (d *Dao) SelBcoinMaxID(c context.Context) (maxID int64, err error)
- func (d *Dao) SelBcoinSalary(c context.Context, arg *model.QueryBcoinSalary) (res []*model.VipBcoinSalary, err error)
- func (d *Dao) SelBcoinSalaryData(c context.Context, startID int64, endID int64) (res []*model.VipBcoinSalary, err error)
- func (d *Dao) SelBcoinSalaryDataMaps(c context.Context, mids []int64) (res map[int64][]*model.VipBcoinSalary, err error)
- func (d *Dao) SelChangeHistory(c context.Context, startID, endID int64) (res []*model.VipChangeHistory, err error)
- func (d *Dao) SelChangeHistoryMaps(c context.Context, mids []int64) (res map[int64][]*model.VipChangeHistory, err error)
- func (d *Dao) SelChangeHistoryMaxID(c context.Context) (id int64, err error)
- func (d *Dao) SelEffectiveScopeVipList(c context.Context, id, endID int) (res []*model.VipInfoDB, err error)
- func (d *Dao) SelEffectiveVipList(c context.Context, id, endID int) (res []*model.VipUserInfo, err error)
- func (d *Dao) SelMaxID(c context.Context) (mID int, err error)
- func (d *Dao) SelOldBcoinMaxID(c context.Context) (maxID int64, err error)
- func (d *Dao) SelOldBcoinSalary(c context.Context, startID, endID int64) (res []*model.VipBcoinSalary, err error)
- func (d *Dao) SelOldBcoinSalaryDataMaps(c context.Context, mids []int64) (res map[int64][]*model.VipBcoinSalary, err error)
- func (d *Dao) SelOldChangeHistory(c context.Context, startID, endID int64) (res []*model.VipChangeHistory, err error)
- func (d *Dao) SelOldChangeHistoryMaps(c context.Context, mids []int64) (res map[int64][]*model.VipChangeHistory, err error)
- func (d *Dao) SelOldChangeHistoryMaxID(c context.Context) (id int64, err error)
- func (d *Dao) SelOldOrderMaxID(c context.Context) (maxID int, err error)
- func (d *Dao) SelOldPayOrder(c context.Context, sID, eID int) (res []*model.VipPayOrderOld, err error)
- func (d *Dao) SelOldRechargeOrder(c context.Context, orderNos []string) (res []*model.VipRechargeOrder, err error)
- func (d *Dao) SelOldSalaryList(c context.Context, id, endID int, dv string) (res []*model.OldSalaryLog, err error)
- func (d *Dao) SelOldUserInfoMaps(c context.Context, sID, eID int) (res map[int64]*model.VipUserInfoOld, err error)
- func (d *Dao) SelOldUserInfoMaxID(c context.Context) (maxID int, err error)
- func (d *Dao) SelOrderByOrderNo(c context.Context, orderNo string) (r *model.VipPayOrder, err error)
- func (d *Dao) SelOrderMaxID(c context.Context) (maxID int, err error)
- func (d *Dao) SelPayOrder(c context.Context, sID, eID int) (res []*model.VipPayOrder, err error)
- func (d *Dao) SelPayOrderByMid(c context.Context, mid int64, orderType, status int8) (r *model.VipPayOrder, err error)
- func (d *Dao) SelPayOrderLog(c context.Context, mid int64, status int8) (r *model.VipPayOrderLog, err error)
- func (d *Dao) SelUserDiscountHistorys(c context.Context, sID, eID, discountID int) (res []*model.VipUserDiscountHistory, err error)
- func (d *Dao) SelUserDiscountMaxID(c context.Context) (maxID int, err error)
- func (d *Dao) SelUserInfoMaxID(c context.Context) (maxID int, err error)
- func (d *Dao) SelUserInfos(c context.Context, sID, eID int) (res []*model.VipUserInfo, err error)
- func (d *Dao) SelVipByIds(c context.Context, ids []int64) (res map[int64]*model.VipUserInfo, err error)
- func (d *Dao) SelVipList(c context.Context, id, endID int, ot string) (res []*model.VipUserInfo, err error)
- func (d *Dao) SelVipUserInfo(c context.Context, mid int64) (r *model.VipUserInfo, err error)
- func (d *Dao) SelVipUserInfos(c context.Context, id, endID int, startTime, endTime time.Time, status int) (res []int64, err error)
- func (d *Dao) SelVipUsers(c context.Context, id, endID int, startTime, endTime time.Time) (res []*model.VipUserInfo, err error)
- func (d *Dao) SendAppCleanCache(c context.Context, hv *model.HandlerVip, app *model.VipAppInfo) (err error)
- func (d *Dao) SendBcoin(c context.Context, mids []int64, money int32, dueTime time.Time, ip string) (err error)
- func (d *Dao) SendCleanCache(c context.Context, hv *model.HandlerVip) (err error)
- func (d *Dao) SendMedal(c context.Context, mid, medalID int64) (status int64)
- func (d *Dao) SendMultipMsg(c context.Context, mids, content, title, mc string, dataType int) (err error)
- func (d *Dao) SendVipBuyTicket(c context.Context, mid int64, couponID string) (status int64)
- func (d *Dao) SetVipBuyCache(c context.Context, mid int64, val int64) (err error)
- func (d *Dao) SetVipFrozen(c context.Context, mid int64) (err error)
- func (d *Dao) SetVipInfoCache(c context.Context, mid int64, v *model.VipInfo) (err error)
- func (d *Dao) SetVipMadelCache(c context.Context, mid int64, val int64) (err error)
- func (d *Dao) StartTx(c context.Context) (tx *sql.Tx, err error)
- func (d *Dao) SyncAddUser(c context.Context, r *model.VipUserInfo) (err error)
- func (d *Dao) SyncUpdateUser(c context.Context, r *model.VipUserInfo, ver int64) (eff int64, err error)
- func (d *Dao) UpdateBcoinSalary(c context.Context, payday string, mid int64, status int8) (err error)
- func (d *Dao) UpdateBcoinSalaryBatch(c context.Context, ids []int64, status int8) (err error)
- func (d *Dao) UpdateCodeRelationID(tx *sql.Tx, code, relationID string, bmid int64) (err error)
- func (d *Dao) UpdatePayOrderStatus(c context.Context, r *model.VipPayOrder) (a int64, err error)
- func (d *Dao) UpdatePushData(c context.Context, status, progressStatus int8, pushedCount int32, ...) (err error)
- func (d *Dao) UpdateRechargeOrder(c context.Context, r *model.VipPayOrder) (a int64, err error)
- func (d *Dao) UpdateUserInfo(tx *sql.Tx, r *model.VipUserInfo) (eff int64, err error)
- func (d *Dao) UpdateVipStatus(c context.Context, mid int64, status int) (eff int64, err error)
- func (d *Dao) UpdateVipUser(c context.Context, mid int64, status, vipType int8, payType int8) (eff int64, err error)
- func (d *Dao) UpdateVipUserInfo(tx *sql.Tx, r *model.VipUserInfo) (a int64, err error)
- func (d *Dao) VipStatus(c context.Context, mid int64) (res *model.VipUserInfo, 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) AddBcoinSalary ¶
AddBcoinSalary add bcoin salary
func (*Dao) AddChangeHistoryBatch ¶
func (d *Dao) AddChangeHistoryBatch(res []*model.VipChangeHistory) (err error)
AddChangeHistoryBatch batch add change history
func (*Dao) AddLogginIP ¶
AddLogginIP save user loggin info to sortset
func (*Dao) AddPayOrder ¶
AddPayOrder add payorder
func (*Dao) AddPayOrderLog ¶
AddPayOrderLog add payorderlog
func (*Dao) AddSalaryLog ¶
AddSalaryLog add salary log.
func (*Dao) AddTransferLock ¶
AddTransferLock add lock.
func (*Dao) AddUserInfo ¶
AddUserInfo add user info.
func (*Dao) AutoRenewPay ¶
AutoRenewPay auto renew pay.
func (*Dao) BatchAddBcoinSalary ¶
func (d *Dao) BatchAddBcoinSalary(bcoins []*model.VipBcoinSalary) (err error)
BatchAddBcoinSalary batch add bcoin salary data
func (*Dao) BatchAddPayOrder ¶
BatchAddPayOrder batch add pay order
func (*Dao) DelBcoinSalary ¶
DelBcoinSalary del bcoin salary
func (*Dao) DelInfoCache ¶
DelInfoCache del vip info cache.
func (*Dao) DelVipFrozen ¶
DelVipFrozen .
func (*Dao) DelVipInfoCache ¶
DelVipInfoCache del vip info cache.
func (*Dao) DupUserDiscountHistory ¶
func (d *Dao) DupUserDiscountHistory(tx *sql.Tx, r *model.VipUserDiscountHistory) (a int64, err error)
DupUserDiscountHistory add user discount history.
func (*Dao) GetAbleCode ¶
GetAbleCode get able code
func (*Dao) GetVipBuyCache ¶
GetVipBuyCache get vipbuy cache by key
func (*Dao) GetVipMadelCache ¶
GetVipMadelCache get madel info by mid
func (*Dao) LoginCount ¶
LoginCount get user recent loggin count
func (*Dao) NotGrantActOrders ¶
func (d *Dao) NotGrantActOrders(c context.Context, panelType string, limit int) (res []*model.VipOrderActivityRecord, err error)
NotGrantActOrders not grant activity order.
func (*Dao) OldFrozenChange ¶
OldFrozenChange .
func (*Dao) OldVipInfo ¶
OldVipInfo get old user by mid.
func (*Dao) PushData ¶
func (d *Dao) PushData(c context.Context, mids []int64, pushData *model.VipPushData, curtime string) (rel *model.VipPushResq, err error)
PushData http push data
func (*Dao) SalaryCoupon ¶
func (d *Dao) SalaryCoupon(c context.Context, mid int64, couponType int8, count int64, token string) (err error)
SalaryCoupon salary coupon.
func (*Dao) SalaryLogMaxID ¶
SalaryLogMaxID select salary log max id.
func (*Dao) SalaryVideoCouponList ¶
func (d *Dao) SalaryVideoCouponList(c context.Context, mid int64, dv string) (res []*model.VideoCouponSalaryLog, err error)
SalaryVideoCouponList select salary video coupon list.
func (*Dao) SelAppInfo ¶
SelAppInfo sel vip_app_info data
func (*Dao) SelBatchCodeByID ¶
func (d *Dao) SelBatchCodeByID(tx *sql.Tx, batchCodeID int64) (r *model.VipResourceBatchCode, err error)
SelBatchCodeByID .
func (*Dao) SelBcoinMaxID ¶
SelBcoinMaxID sel bcoin maxID
func (*Dao) SelBcoinSalary ¶
func (d *Dao) SelBcoinSalary(c context.Context, arg *model.QueryBcoinSalary) (res []*model.VipBcoinSalary, err error)
SelBcoinSalary sel bcoin salary data by query
func (*Dao) SelBcoinSalaryData ¶
func (d *Dao) SelBcoinSalaryData(c context.Context, startID int64, endID int64) (res []*model.VipBcoinSalary, err error)
SelBcoinSalaryData sel bcoinSalary data
func (*Dao) SelBcoinSalaryDataMaps ¶
func (d *Dao) SelBcoinSalaryDataMaps(c context.Context, mids []int64) (res map[int64][]*model.VipBcoinSalary, err error)
SelBcoinSalaryDataMaps sel bcoin salary data convert map
func (*Dao) SelChangeHistory ¶
func (d *Dao) SelChangeHistory(c context.Context, startID, endID int64) (res []*model.VipChangeHistory, err error)
SelChangeHistory .
func (*Dao) SelChangeHistoryMaps ¶
func (d *Dao) SelChangeHistoryMaps(c context.Context, mids []int64) (res map[int64][]*model.VipChangeHistory, err error)
SelChangeHistoryMaps .
func (*Dao) SelChangeHistoryMaxID ¶
SelChangeHistoryMaxID .
func (*Dao) SelEffectiveScopeVipList ¶
func (d *Dao) SelEffectiveScopeVipList(c context.Context, id, endID int) (res []*model.VipInfoDB, err error)
SelEffectiveScopeVipList get vip list by id scope.
func (*Dao) SelEffectiveVipList ¶
func (d *Dao) SelEffectiveVipList(c context.Context, id, endID int) (res []*model.VipUserInfo, err error)
SelEffectiveVipList sel effective vip data
func (*Dao) SelOldBcoinMaxID ¶
SelOldBcoinMaxID sel oldbcoin maxID
func (*Dao) SelOldBcoinSalary ¶
func (d *Dao) SelOldBcoinSalary(c context.Context, startID, endID int64) (res []*model.VipBcoinSalary, err error)
SelOldBcoinSalary sel old bcoin salary
func (*Dao) SelOldBcoinSalaryDataMaps ¶
func (d *Dao) SelOldBcoinSalaryDataMaps(c context.Context, mids []int64) (res map[int64][]*model.VipBcoinSalary, err error)
SelOldBcoinSalaryDataMaps sel old bcoin salary data convert map
func (*Dao) SelOldChangeHistory ¶
func (d *Dao) SelOldChangeHistory(c context.Context, startID, endID int64) (res []*model.VipChangeHistory, err error)
SelOldChangeHistory .
func (*Dao) SelOldChangeHistoryMaps ¶
func (d *Dao) SelOldChangeHistoryMaps(c context.Context, mids []int64) (res map[int64][]*model.VipChangeHistory, err error)
SelOldChangeHistoryMaps .
func (*Dao) SelOldChangeHistoryMaxID ¶
SelOldChangeHistoryMaxID .
func (*Dao) SelOldOrderMaxID ¶
SelOldOrderMaxID sel old order maxID
func (*Dao) SelOldPayOrder ¶
func (d *Dao) SelOldPayOrder(c context.Context, sID, eID int) (res []*model.VipPayOrderOld, err error)
SelOldPayOrder sel old payorder
func (*Dao) SelOldRechargeOrder ¶
func (d *Dao) SelOldRechargeOrder(c context.Context, orderNos []string) (res []*model.VipRechargeOrder, err error)
SelOldRechargeOrder sel old rechargeOrder
func (*Dao) SelOldSalaryList ¶
func (d *Dao) SelOldSalaryList(c context.Context, id, endID int, dv string) (res []*model.OldSalaryLog, err error)
SelOldSalaryList sel old salary list
func (*Dao) SelOldUserInfoMaps ¶
func (d *Dao) SelOldUserInfoMaps(c context.Context, sID, eID int) (res map[int64]*model.VipUserInfoOld, err error)
SelOldUserInfoMaps sel old user info map.
func (*Dao) SelOldUserInfoMaxID ¶
SelOldUserInfoMaxID sel old userinfo maxID
func (*Dao) SelOrderByOrderNo ¶
func (d *Dao) SelOrderByOrderNo(c context.Context, orderNo string) (r *model.VipPayOrder, err error)
SelOrderByOrderNo sel payorder by orderNo
func (*Dao) SelOrderMaxID ¶
SelOrderMaxID sel order maxID
func (*Dao) SelPayOrder ¶
SelPayOrder sel payorder
func (*Dao) SelPayOrderByMid ¶
func (d *Dao) SelPayOrderByMid(c context.Context, mid int64, orderType, status int8) (r *model.VipPayOrder, err error)
SelPayOrderByMid sel payorder by mid
func (*Dao) SelPayOrderLog ¶
func (d *Dao) SelPayOrderLog(c context.Context, mid int64, status int8) (r *model.VipPayOrderLog, err error)
SelPayOrderLog sel pay order log.
func (*Dao) SelUserDiscountHistorys ¶
func (d *Dao) SelUserDiscountHistorys(c context.Context, sID, eID, discountID int) (res []*model.VipUserDiscountHistory, err error)
SelUserDiscountHistorys sel user discount hsitorys
func (*Dao) SelUserDiscountMaxID ¶
SelUserDiscountMaxID sel discount maxID
func (*Dao) SelUserInfoMaxID ¶
SelUserInfoMaxID select userinfo maxID.
func (*Dao) SelUserInfos ¶
SelUserInfos sel user infos
func (*Dao) SelVipByIds ¶
func (d *Dao) SelVipByIds(c context.Context, ids []int64) (res map[int64]*model.VipUserInfo, err error)
SelVipByIds select vip by ids .
func (*Dao) SelVipList ¶
func (d *Dao) SelVipList(c context.Context, id, endID int, ot string) (res []*model.VipUserInfo, err error)
SelVipList sel vipuserinfo list
func (*Dao) SelVipUserInfo ¶
SelVipUserInfo sel vipuser info
func (*Dao) SelVipUserInfos ¶
func (d *Dao) SelVipUserInfos(c context.Context, id, endID int, startTime, endTime time.Time, status int) (res []int64, err error)
SelVipUserInfos sel vipuser info datas
func (*Dao) SelVipUsers ¶
func (d *Dao) SelVipUsers(c context.Context, id, endID int, startTime, endTime time.Time) (res []*model.VipUserInfo, err error)
SelVipUsers .
func (*Dao) SendAppCleanCache ¶
func (d *Dao) SendAppCleanCache(c context.Context, hv *model.HandlerVip, app *model.VipAppInfo) (err error)
SendAppCleanCache notice app clean cache
func (*Dao) SendBcoin ¶
func (d *Dao) SendBcoin(c context.Context, mids []int64, money int32, dueTime time.Time, ip string) (err error)
SendBcoin send bcoin http
func (*Dao) SendCleanCache ¶
SendCleanCache clean cache
func (*Dao) SendMultipMsg ¶
func (d *Dao) SendMultipMsg(c context.Context, mids, content, title, mc string, dataType int) (err error)
SendMultipMsg send multip msg
func (*Dao) SendVipBuyTicket ¶
SendVipBuyTicket send vipbuy ticket
func (*Dao) SetVipBuyCache ¶
SetVipBuyCache set vipbuy cache
func (*Dao) SetVipFrozen ¶
SetVipFrozen .
func (*Dao) SetVipInfoCache ¶
SetVipInfoCache set vip info cache.
func (*Dao) SetVipMadelCache ¶
SetVipMadelCache set vip madel cache
func (*Dao) SyncAddUser ¶
SyncAddUser insert vipUserInfo
func (*Dao) SyncUpdateUser ¶
func (d *Dao) SyncUpdateUser(c context.Context, r *model.VipUserInfo, ver int64) (eff int64, err error)
SyncUpdateUser insert vipUserInfo
func (*Dao) UpdateBcoinSalary ¶
func (d *Dao) UpdateBcoinSalary(c context.Context, payday string, mid int64, status int8) (err error)
UpdateBcoinSalary update bcoin salary
func (*Dao) UpdateBcoinSalaryBatch ¶
UpdateBcoinSalaryBatch update bcoin salary batch
func (*Dao) UpdateCodeRelationID ¶
UpdateCodeRelationID update code relationID
func (*Dao) UpdatePayOrderStatus ¶
UpdatePayOrderStatus update payorder status
func (*Dao) UpdatePushData ¶
func (d *Dao) UpdatePushData(c context.Context, status, progressStatus int8, pushedCount int32, errcode, data, id int64) (err error)
UpdatePushData update push data
func (*Dao) UpdateRechargeOrder ¶
UpdateRechargeOrder update recharge order info
func (*Dao) UpdateUserInfo ¶
UpdateUserInfo add user info
func (*Dao) UpdateVipStatus ¶
UpdateVipStatus update vip status info by mid
func (*Dao) UpdateVipUser ¶
func (d *Dao) UpdateVipUser(c context.Context, mid int64, status, vipType int8, payType int8) (eff int64, err error)
UpdateVipUser update vip user info
func (*Dao) UpdateVipUserInfo ¶
UpdateVipUserInfo update vip user info by id