Documentation
¶
Index ¶
- type Dao
- func (d *Dao) AddBatch(c context.Context, r *model.ResouceBatchBo) (a int64, err error)
- func (d *Dao) AddBusiness(c context.Context, r *model.VipBusinessInfo) (a int64, err error)
- func (d *Dao) AddJointly(c context.Context, j *model.Jointly) (a int64, err error)
- func (d *Dao) AddPayOrderLog(c context.Context, arg *model.PayOrderLog) (err error)
- func (d *Dao) AddPool(c context.Context, r *model.ResoucePoolBo) (a int64, err error)
- func (d *Dao) AddPrivilege(tx *gorm.DB, ps *model.Privilege) (id int64, err error)
- func (d *Dao) AddPrivilegeResources(tx *gorm.DB, p *model.PrivilegeResources) (a int64, err error)
- func (d *Dao) AddPushData(c context.Context, r *model.VipPushData) (id int64, err error)
- func (d *Dao) AddTip(c context.Context, t *model.Tips) (lid int64, err error)
- func (d *Dao) AddVipDPriceConfig(c context.Context, v *model.VipDPriceConfig) (err error)
- func (d *Dao) AddVipPriceConfig(c context.Context, v *model.VipPriceConfig) (err error)
- func (d *Dao) AllVersion(c context.Context) (res []*model.VipAppVersion, err error)
- func (d *Dao) BatchAddCode(tx *sql.Tx, codes []*model.ResourceCode) (err error)
- func (d *Dao) BeginGormTran(c context.Context) (tx *gorm.DB)
- func (d *Dao) BeginTran(c context.Context) (tx *xsql.Tx, err error)
- func (d *Dao) BussinessCount(c context.Context, status int) (count int64, err error)
- func (d *Dao) BussinessList(c context.Context, pn, ps, status int) (res []*model.VipBusinessInfo, err error)
- func (d *Dao) Close() (err error)
- func (d *Dao) CountDialogByPlatID(c context.Context, plat int64) (count int64, err error)
- func (d *Dao) CountVipPriceConfigByPlat(c context.Context, plat int64) (count int64, err error)
- func (d *Dao) DelBcoinSalary(tx *sql.Tx, mid int64, month time.Time) (err error)
- func (d *Dao) DelPushData(c context.Context, id int64) (err error)
- func (d *Dao) DelSelCode(c context.Context, username string) (err error)
- func (d *Dao) DelVipDPriceConfig(c context.Context, arg *model.ArgVipDPriceID) (err error)
- func (d *Dao) DelVipInfoCache(c context.Context, mid int64) (err error)
- func (d *Dao) DelVipPriceConfig(c context.Context, arg *model.ArgVipPriceID) (err error)
- func (d *Dao) DeleteJointly(c context.Context, id int64) (a int64, err error)
- func (d *Dao) DeletePrivilege(c context.Context, id int64) (a int64, err error)
- func (d *Dao) DeleteTip(c context.Context, id int64, deleted int8, operator string) (eff int64, err error)
- func (d *Dao) DialogAll(c context.Context, appID, platform int64, status string) (res []*model.ConfDialog, err error)
- func (d *Dao) DialogBy(c context.Context, appID, platform int64, id int64) (res []*model.ConfDialog, err error)
- func (d *Dao) DialogByID(c context.Context, id int64) (dlg *model.ConfDialog, err error)
- func (d *Dao) DialogDel(c context.Context, id int64) (eff int64, err error)
- func (d *Dao) DialogEnable(c context.Context, arg *model.ConfDialog) (eff int64, err error)
- func (d *Dao) DialogSave(c context.Context, arg *model.ConfDialog) (eff int64, err error)
- func (d *Dao) DisablePushData(c context.Context, res *model.VipPushData) (err error)
- func (d *Dao) ExpireTip(c context.Context, id int64, operator string, t int64) (eff int64, err error)
- func (d *Dao) GetMonth(c context.Context, id int64) (m *model.VipMonth, err error)
- func (d *Dao) GetPrice(c context.Context, id int64) (r *model.VipMonthPrice, err error)
- func (d *Dao) GetPushData(c context.Context, id int64) (r *model.VipPushData, err error)
- func (d *Dao) GetSelCode(c context.Context, username string) (linkmap map[int64]int64, err error)
- func (d *Dao) HistoryCount(c context.Context, u *model.UserChangeHistoryReq) (count int, err error)
- func (d *Dao) HistoryList(c context.Context, u *model.UserChangeHistoryReq) (res []*model.VipChangeHistory, err error)
- func (d *Dao) InsertVipChangeHistory(tx *sql.Tx, r *model.VipChangeHistory) (id int64, err error)
- func (d *Dao) JointlysByState(c context.Context, state int8, now int64) (res []*model.Jointly, err error)
- func (d *Dao) MaxOrder(c context.Context) (order int64, err error)
- func (d *Dao) MonthEdit(c context.Context, id int64, status int8, op string) (eff int64, err error)
- func (d *Dao) MonthList(c context.Context) (res []*model.VipMonth, err error)
- func (d *Dao) OrderCount(c context.Context, arg *model.ArgPayOrder) (count int64, err error)
- func (d *Dao) OrderList(c context.Context, arg *model.ArgPayOrder) (res []*model.PayOrder, err error)
- func (d *Dao) PayRefund(c context.Context, arg *model.PayOrder, refundAmount float64, refundID string) (err error)
- func (d *Dao) Ping(c context.Context) error
- func (d *Dao) PingMC(c context.Context) (err error)
- func (d *Dao) PlatformAll(c context.Context, order string) (res []*model.ConfPlatform, err error)
- func (d *Dao) PlatformByID(c context.Context, id int64) (re *model.ConfPlatform, err error)
- func (d *Dao) PlatformDel(c context.Context, id int64, operator string) (eff int64, err error)
- func (d *Dao) PlatformSave(c context.Context, arg *model.ConfPlatform) (eff int64, err error)
- func (d *Dao) PlatformTypes(c context.Context) (res []*model.TypePlatform, err error)
- func (d *Dao) PriceAdd(c context.Context, mp *model.VipMonthPrice) (eff int64, err error)
- func (d *Dao) PriceEdit(c context.Context, mp *model.VipMonthPrice) (eff int64, err error)
- func (d *Dao) PriceList(c context.Context, mID int64) (res []*model.VipMonthPrice, err error)
- func (d *Dao) PrivilegeList(c context.Context, langType int8) (res []*model.Privilege, err error)
- func (d *Dao) PrivilegeResourcesList(c context.Context) (res []*model.PrivilegeResources, err error)
- func (d *Dao) PushDataCount(c context.Context, arg *model.ArgPushData) (count int64, err error)
- func (d *Dao) PushDatas(c context.Context, arg *model.ArgPushData) (res []*model.VipPushData, err error)
- func (d *Dao) ResetWelfareTid(tx *gorm.DB, tid int) (err error)
- func (d *Dao) SelBatchCode(c context.Context, arg *model.ArgBatchCode, pn, ps int) (res []*model.BatchCode, err error)
- func (d *Dao) SelBatchCodeCount(c context.Context, arg *model.ArgBatchCode) (n int64, err error)
- func (d *Dao) SelBatchCodeID(c context.Context, batchCodeID int64) (r *model.BatchCode, err error)
- func (d *Dao) SelBatchCodeName(c context.Context, name string) (r *model.BatchCode, err error)
- func (d *Dao) SelBatchCodes(c context.Context, batchIds []int64) (res []*model.BatchCode, err error)
- func (d *Dao) SelBatchRow(c context.Context, id int) (r *model.VipResourceBatch, err error)
- func (d *Dao) SelBatchRows(c context.Context, poolID int) (res []*model.VipResourceBatch, err error)
- func (d *Dao) SelBusiness(c context.Context, id int) (r *model.VipBusinessInfo, err error)
- func (d *Dao) SelBusinessByQuery(c context.Context, arg *model.QueryBusinessInfo) (r *model.VipBusinessInfo, err error)
- func (d *Dao) SelCode(c context.Context, arg *model.ArgCode, cursor int64, ps int) (res []*model.ResourceCode, err error)
- func (d *Dao) SelCodeID(c context.Context, codeID int64) (r *model.ResourceCode, err error)
- func (d *Dao) SelCountPool(c context.Context, r *model.ResoucePoolBo) (count int, err error)
- func (d *Dao) SelOrder(c context.Context, orderNo string) (r *model.PayOrder, err error)
- func (d *Dao) SelPool(c context.Context, r *model.ResoucePoolBo, pn, ps int) (res []*model.VipResourcePool, err error)
- func (d *Dao) SelPoolByName(c context.Context, name string) (r *model.VipResourcePool, err error)
- func (d *Dao) SelPoolRow(c context.Context, id int) (r *model.VipResourcePool, err error)
- func (d *Dao) SelVipUserInfo(c context.Context, mid int64) (r *model.VipUserInfo, err error)
- func (d *Dao) SendMultipMsg(c context.Context, mids, content, title, mc, ip string, dataType int) (err error)
- func (d *Dao) SetSelCode(c context.Context, username string, linkmap map[int64]int64) (err error)
- func (d *Dao) TipByID(c context.Context, id int64) (r *model.Tips, err error)
- func (d *Dao) TipList(c context.Context, platform int8, state int8, now int64, position int8) (rs []*model.Tips, err error)
- func (d *Dao) TipUpdate(c context.Context, t *model.Tips) (eff int64, err error)
- func (d *Dao) TxAddBatchCode(tx *sql.Tx, bc *model.BatchCode) (ID int64, err error)
- func (d *Dao) UpVipDPriceConfig(c context.Context, v *model.VipDPriceConfig) (err error)
- func (d *Dao) UpVipPriceConfig(c context.Context, v *model.VipPriceConfig) (err error)
- func (d *Dao) UpdateBatch(c context.Context, r *model.VipResourceBatch, ver int) (a int64, err error)
- func (d *Dao) UpdateBatchCode(c context.Context, bc *model.BatchCode) (eff int64, err error)
- func (d *Dao) UpdateBusiness(c context.Context, r *model.VipBusinessInfo) (a int64, err error)
- func (d *Dao) UpdateCode(c context.Context, codeID int64, status int8) (eff int64, err error)
- func (d *Dao) UpdateJointly(c context.Context, j *model.Jointly) (a int64, err error)
- func (d *Dao) UpdateOrder(c context.Context, aid, bid int64) (a int64, err error)
- func (d *Dao) UpdatePool(c context.Context, r *model.ResoucePoolBo) (a int64, err error)
- func (d *Dao) UpdatePrivilege(tx *gorm.DB, ps *model.Privilege) (a int64, err error)
- func (d *Dao) UpdatePrivilegeResources(tx *gorm.DB, ps *model.PrivilegeResources) (aff int64, err error)
- func (d *Dao) UpdatePushData(c context.Context, r *model.VipPushData) (eff int64, err error)
- func (d *Dao) UpdateStatePrivilege(c context.Context, p *model.Privilege) (a int64, err error)
- func (d *Dao) UpdateVersion(c context.Context, v *model.VipAppVersion) (ret int64, err error)
- func (d *Dao) UpdateVipUserInfo(tx *sql.Tx, r *model.VipUserInfo) (a int64, err error)
- func (d *Dao) Upload(c context.Context, fileName string, fileType string, data []byte, ...) (location string, err error)
- func (d *Dao) UseBatch(tx *sql.Tx, r *model.VipResourceBatch, ver int) (a int64, err error)
- func (d *Dao) VipDPriceConfigID(c context.Context, arg *model.ArgVipDPriceID) (res *model.VipDPriceConfig, err error)
- func (d *Dao) VipDPriceConfigUQTime(c context.Context, arg *model.ArgAddOrUpVipDPrice) (mvd map[int64]*model.VipDPriceConfig, err error)
- func (d *Dao) VipDPriceConfigs(c context.Context, arg *model.ArgVipPriceID) (res []*model.VipDPriceConfig, err error)
- func (d *Dao) VipMaxPriceDiscount(c context.Context, arg *model.ArgAddOrUpVipPrice) (res float64, err error)
- func (d *Dao) VipPriceConfigID(c context.Context, arg *model.ArgVipPriceID) (vpc *model.VipPriceConfig, err error)
- func (d *Dao) VipPriceConfigUQCheck(c context.Context, arg *model.ArgAddOrUpVipPrice) (count int64, err error)
- func (d *Dao) VipPriceConfigs(c context.Context) (vpcs []*model.VipPriceConfig, err error)
- func (d *Dao) VipPriceDiscountConfigs(c context.Context) (mvd map[int64]*model.VipDPriceConfig, err error)
- func (d *Dao) WelfareAdd(wt *model.Welfare) (err error)
- func (d *Dao) WelfareBatchList(wid int) (wbs []*model.WelfareBatchRes, err error)
- func (d *Dao) WelfareBatchSave(wcb *model.WelfareCodeBatch) (err error)
- func (d *Dao) WelfareBatchState(tx *gorm.DB, id, state, operId int, operName string) (err error)
- func (d *Dao) WelfareCodeBatchInsert(wcs []*model.WelfareCode) (err error)
- func (d *Dao) WelfareCodeStatus(tx *gorm.DB, bid, state int) (err error)
- func (d *Dao) WelfareList(tid int) (ws []*model.WelfareRes, err error)
- func (d *Dao) WelfareState(id, state, operId int, operName string) (err error)
- func (d *Dao) WelfareTypeAdd(wt *model.WelfareType) (err error)
- func (d *Dao) WelfareTypeList() (wts []*model.WelfareTypeRes, err error)
- func (d *Dao) WelfareTypeState(tx *gorm.DB, id, state, operId int, operName string) (err error)
- func (d *Dao) WelfareTypeUpd(wt *model.WelfareType) (err error)
- func (d *Dao) WelfareUpd(wt *model.WelfareReq) (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 conf
func (*Dao) AddBusiness ¶
AddBusiness add business info.
func (*Dao) AddJointly ¶
AddJointly add jointly.
func (*Dao) AddPayOrderLog ¶
AddPayOrderLog add order log.
func (*Dao) AddPrivilege ¶
AddPrivilege add privilege.
func (*Dao) AddPrivilegeResources ¶
AddPrivilegeResources add privilege resources.
func (*Dao) AddPushData ¶
AddPushData add push data
func (*Dao) AddVipDPriceConfig ¶
AddVipDPriceConfig insert vip discount price config .
func (*Dao) AddVipPriceConfig ¶
AddVipPriceConfig insert vip price config .
func (*Dao) AllVersion ¶
AllVersion all version.
func (*Dao) BatchAddCode ¶
BatchAddCode .
func (*Dao) BeginGormTran ¶
BeginGormTran start gorm tx .
func (*Dao) BussinessCount ¶
BussinessCount bussiness info count.
func (*Dao) BussinessList ¶
func (d *Dao) BussinessList(c context.Context, pn, ps, status int) (res []*model.VipBusinessInfo, err error)
BussinessList business infos.
func (*Dao) CountDialogByPlatID ¶
CountDialogByPlatID count dialog by platform id .
func (*Dao) CountVipPriceConfigByPlat ¶
CountVipPriceConfigByPlat count vip price config by platform id.
func (*Dao) DelBcoinSalary ¶
DelBcoinSalary del bacoin salary
func (*Dao) DelPushData ¶
DelPushData .
func (*Dao) DelSelCode ¶
DelSelCode .
func (*Dao) DelVipDPriceConfig ¶
DelVipDPriceConfig delete vip discount price config .
func (*Dao) DelVipInfoCache ¶
DelVipInfoCache delete vipinfo cache.
func (*Dao) DelVipPriceConfig ¶
DelVipPriceConfig delete vip price config .
func (*Dao) DeleteJointly ¶
DeleteJointly delete jointly.
func (*Dao) DeletePrivilege ¶
DeletePrivilege dekete privilege.
func (*Dao) DeleteTip ¶
func (d *Dao) DeleteTip(c context.Context, id int64, deleted int8, operator string) (eff int64, err error)
DeleteTip tip delete.
func (*Dao) DialogAll ¶
func (d *Dao) DialogAll(c context.Context, appID, platform int64, status string) (res []*model.ConfDialog, err error)
DialogAll .
func (*Dao) DialogBy ¶
func (d *Dao) DialogBy(c context.Context, appID, platform int64, id int64) (res []*model.ConfDialog, err error)
DialogBy vip price config by .
func (*Dao) DialogByID ¶
DialogByID vip price config by id.
func (*Dao) DialogEnable ¶
DialogEnable .
func (*Dao) DialogSave ¶
DialogSave .
func (*Dao) DisablePushData ¶
DisablePushData .
func (*Dao) ExpireTip ¶
func (d *Dao) ExpireTip(c context.Context, id int64, operator string, t int64) (eff int64, err error)
ExpireTip tip expire.
func (*Dao) GetPushData ¶
GetPushData get push data by id
func (*Dao) GetSelCode ¶
GetSelCode .
func (*Dao) HistoryCount ¶
HistoryCount user change history.
func (*Dao) HistoryList ¶
func (d *Dao) HistoryList(c context.Context, u *model.UserChangeHistoryReq) (res []*model.VipChangeHistory, err error)
HistoryList history list.
func (*Dao) InsertVipChangeHistory ¶
InsertVipChangeHistory insert vipChangeHistory
func (*Dao) JointlysByState ¶
func (d *Dao) JointlysByState(c context.Context, state int8, now int64) (res []*model.Jointly, err error)
JointlysByState jointly by state.
func (*Dao) OrderCount ¶
OrderCount order count.
func (*Dao) OrderList ¶
func (d *Dao) OrderList(c context.Context, arg *model.ArgPayOrder) (res []*model.PayOrder, err error)
OrderList order list.
func (*Dao) PayRefund ¶
func (d *Dao) PayRefund(c context.Context, arg *model.PayOrder, refundAmount float64, refundID string) (err error)
PayRefund .
func (*Dao) PlatformAll ¶
PlatformAll .
func (*Dao) PlatformByID ¶
PlatformByID vip platform config by id.
func (*Dao) PlatformDel ¶
PlatformDel delete vip platform config by id.
func (*Dao) PlatformSave ¶
PlatformSave .
func (*Dao) PlatformTypes ¶
PlatformTypes .
func (*Dao) PrivilegeList ¶
PrivilegeList query .
func (*Dao) PrivilegeResourcesList ¶
func (d *Dao) PrivilegeResourcesList(c context.Context) (res []*model.PrivilegeResources, err error)
PrivilegeResourcesList query privilege resources .
func (*Dao) PushDataCount ¶
PushDataCount sel push data count
func (*Dao) PushDatas ¶
func (d *Dao) PushDatas(c context.Context, arg *model.ArgPushData) (res []*model.VipPushData, err error)
PushDatas sel push datas
func (*Dao) ResetWelfareTid ¶
ResetWelfareTid reset welfare tid to 0
func (*Dao) SelBatchCode ¶
func (d *Dao) SelBatchCode(c context.Context, arg *model.ArgBatchCode, pn, ps int) (res []*model.BatchCode, err error)
SelBatchCode .
func (*Dao) SelBatchCodeCount ¶
SelBatchCodeCount .
func (*Dao) SelBatchCodeID ¶
SelBatchCodeID .
func (*Dao) SelBatchCodeName ¶
SelBatchCodeName .
func (*Dao) SelBatchCodes ¶
func (d *Dao) SelBatchCodes(c context.Context, batchIds []int64) (res []*model.BatchCode, err error)
SelBatchCodes .
func (*Dao) SelBatchRow ¶
SelBatchRow sel batch by id
func (*Dao) SelBatchRows ¶
func (d *Dao) SelBatchRows(c context.Context, poolID int) (res []*model.VipResourceBatch, err error)
SelBatchRows sel batch by poolID
func (*Dao) SelBusiness ¶
SelBusiness select businessInfo by id
func (*Dao) SelBusinessByQuery ¶
func (d *Dao) SelBusinessByQuery(c context.Context, arg *model.QueryBusinessInfo) (r *model.VipBusinessInfo, err error)
SelBusinessByQuery .
func (*Dao) SelCode ¶
func (d *Dao) SelCode(c context.Context, arg *model.ArgCode, cursor int64, ps int) (res []*model.ResourceCode, err error)
SelCode .
func (*Dao) SelCountPool ¶
SelCountPool sel count Pool
func (*Dao) SelPool ¶
func (d *Dao) SelPool(c context.Context, r *model.ResoucePoolBo, pn, ps int) (res []*model.VipResourcePool, err error)
SelPool sel pool by query condition
func (*Dao) SelPoolByName ¶
SelPoolByName sel pool by name
func (*Dao) SelPoolRow ¶
SelPoolRow sel pool by id
func (*Dao) SelVipUserInfo ¶
SelVipUserInfo select user info by mid
func (*Dao) SendMultipMsg ¶
func (d *Dao) SendMultipMsg(c context.Context, mids, content, title, mc, ip string, dataType int) (err error)
SendMultipMsg send multip msg
func (*Dao) SetSelCode ¶
SetSelCode .
func (*Dao) TipList ¶
func (d *Dao) TipList(c context.Context, platform int8, state int8, now int64, position int8) (rs []*model.Tips, err error)
TipList tips list.
func (*Dao) TxAddBatchCode ¶
TxAddBatchCode .
func (*Dao) UpVipDPriceConfig ¶
UpVipDPriceConfig update vip discount price config .
func (*Dao) UpVipPriceConfig ¶
UpVipPriceConfig update vip price config .
func (*Dao) UpdateBatch ¶
func (d *Dao) UpdateBatch(c context.Context, r *model.VipResourceBatch, ver int) (a int64, err error)
UpdateBatch update batch data
func (*Dao) UpdateBatchCode ¶
UpdateBatchCode .
func (*Dao) UpdateBusiness ¶
UpdateBusiness update business info.
func (*Dao) UpdateCode ¶
UpdateCode .
func (*Dao) UpdateJointly ¶
UpdateJointly update jointly.
func (*Dao) UpdateOrder ¶
UpdateOrder update privilege order.
func (*Dao) UpdatePool ¶
UpdatePool update pool
func (*Dao) UpdatePrivilege ¶
UpdatePrivilege update privilege .
func (*Dao) UpdatePrivilegeResources ¶
func (d *Dao) UpdatePrivilegeResources(tx *gorm.DB, ps *model.PrivilegeResources) (aff int64, err error)
UpdatePrivilegeResources update privilege resources .
func (*Dao) UpdatePushData ¶
UpdatePushData update push data
func (*Dao) UpdateStatePrivilege ¶
UpdateStatePrivilege update state privilege.
func (*Dao) UpdateVersion ¶
UpdateVersion update version.
func (*Dao) UpdateVipUserInfo ¶
UpdateVipUserInfo update vip user info by id
func (*Dao) Upload ¶
func (d *Dao) Upload(c context.Context, fileName string, fileType string, data []byte, bfs *conf.Bfs) (location string, err error)
Upload upload picture or log file to bfs
func (*Dao) VipDPriceConfigID ¶
func (d *Dao) VipDPriceConfigID(c context.Context, arg *model.ArgVipDPriceID) (res *model.VipDPriceConfig, err error)
VipDPriceConfigID vip discount price config by id
func (*Dao) VipDPriceConfigUQTime ¶
func (d *Dao) VipDPriceConfigUQTime(c context.Context, arg *model.ArgAddOrUpVipDPrice) (mvd map[int64]*model.VipDPriceConfig, err error)
VipDPriceConfigUQTime count vip discount price config unquie check time.
func (*Dao) VipDPriceConfigs ¶
func (d *Dao) VipDPriceConfigs(c context.Context, arg *model.ArgVipPriceID) (res []*model.VipDPriceConfig, err error)
VipDPriceConfigs vip discount price configs
func (*Dao) VipMaxPriceDiscount ¶
func (d *Dao) VipMaxPriceDiscount(c context.Context, arg *model.ArgAddOrUpVipPrice) (res float64, err error)
VipMaxPriceDiscount max price discount.
func (*Dao) VipPriceConfigID ¶
func (d *Dao) VipPriceConfigID(c context.Context, arg *model.ArgVipPriceID) (vpc *model.VipPriceConfig, err error)
VipPriceConfigID vip price config by id
func (*Dao) VipPriceConfigUQCheck ¶
func (d *Dao) VipPriceConfigUQCheck(c context.Context, arg *model.ArgAddOrUpVipPrice) (count int64, err error)
VipPriceConfigUQCheck count vip price config unquie check.
func (*Dao) VipPriceConfigs ¶
VipPriceConfigs vip price configs
func (*Dao) VipPriceDiscountConfigs ¶
func (d *Dao) VipPriceDiscountConfigs(c context.Context) (mvd map[int64]*model.VipDPriceConfig, err error)
VipPriceDiscountConfigs get vip price discount configs.
func (*Dao) WelfareAdd ¶
WelfareAdd add welfare
func (*Dao) WelfareBatchList ¶
func (d *Dao) WelfareBatchList(wid int) (wbs []*model.WelfareBatchRes, err error)
WelfareBatchList get welfare list
func (*Dao) WelfareBatchSave ¶
func (d *Dao) WelfareBatchSave(wcb *model.WelfareCodeBatch) (err error)
WelfareBatchSave add welfare batch
func (*Dao) WelfareBatchState ¶
WelfareBatchState delete welfare batch
func (*Dao) WelfareCodeBatchInsert ¶
func (d *Dao) WelfareCodeBatchInsert(wcs []*model.WelfareCode) (err error)
WelfareCodeBatchInsert insert welfare batch code
func (*Dao) WelfareCodeStatus ¶
WelfareCodeStatus delete welfare batch code
func (*Dao) WelfareList ¶
func (d *Dao) WelfareList(tid int) (ws []*model.WelfareRes, err error)
WelfareList get welfare list
func (*Dao) WelfareState ¶
WelfareState delete welfare
func (*Dao) WelfareTypeAdd ¶
func (d *Dao) WelfareTypeAdd(wt *model.WelfareType) (err error)
WelfareTypeAdd add welfare type
func (*Dao) WelfareTypeList ¶
func (d *Dao) WelfareTypeList() (wts []*model.WelfareTypeRes, err error)
WelfareTypeList get welfare type list
func (*Dao) WelfareTypeState ¶
WelfareTypeState delete welfare type
func (*Dao) WelfareTypeUpd ¶
func (d *Dao) WelfareTypeUpd(wt *model.WelfareType) (err error)
WelfareTypeUpd update welfare type
func (*Dao) WelfareUpd ¶
func (d *Dao) WelfareUpd(wt *model.WelfareReq) (err error)
WelfareUpd update welfare