Documentation ¶
Index ¶
- type Service
- func (s *Service) AddBatch(c context.Context, r *model.ResouceBatchBo) (err error)
- func (s *Service) AddBusinessInfo(c context.Context, req *model.VipBusinessInfo) (err error)
- func (s *Service) AddJointly(c context.Context, j *model.ArgAddJointly) (err error)
- func (s *Service) AddPool(c context.Context, r *model.ResoucePoolBo) (err error)
- func (s *Service) AddPrivilege(c context.Context, req *model.ArgAddPrivilege, img *model.ArgImage) (err error)
- func (s *Service) AddTip(c context.Context, t *model.Tips) (err error)
- func (s *Service) AddVipDPriceConfig(c context.Context, arg *model.ArgAddOrUpVipDPrice) (err error)
- func (s *Service) AddVipPriceConfig(c context.Context, arg *model.ArgAddOrUpVipPrice) (err error)
- func (s *Service) AllVersion(c context.Context) (res []*model.VipAppVersion, err error)
- func (s *Service) BatchInfo(c context.Context, id int) (res *model.VipResourceBatch, err error)
- func (s *Service) BatchInfoOfPool(c context.Context, poolID int) (res []*model.VipResourceBatch, err error)
- func (s *Service) BusinessInfo(c context.Context, id int) (r *model.VipBusinessInfo, err error)
- func (s *Service) BusinessList(c context.Context, pn, ps, status int) (res []*model.VipBusinessInfo, count int64, err error)
- func (s *Service) Close()
- func (s *Service) DelPushData(c context.Context, id int64) (err error)
- func (s *Service) DelVipDPriceConfig(c context.Context, arg *model.ArgVipDPriceID) (err error)
- func (s *Service) DelVipPriceConfig(c context.Context, arg *model.ArgVipPriceID) (err error)
- func (s *Service) DeleteJointly(c context.Context, id int64) (err error)
- func (s *Service) DeletePrivilege(c context.Context, id int64) (err error)
- func (s *Service) DeleteTip(c context.Context, id int64, operator string) (err error)
- func (s *Service) DialogAll(c context.Context, appID, platform int64, status string) (res []*model.ConfDialogList, err error)
- func (s *Service) DialogByID(c context.Context, arg *model.ArgID) (dlg *model.ConfDialog, err error)
- func (s *Service) DialogDel(c context.Context, arg *model.ArgID, operator string) (eff int64, err error)
- func (s *Service) DialogEnable(c context.Context, arg *model.ConfDialog) (eff int64, err error)
- func (s *Service) DialogSave(c context.Context, arg *model.ConfDialog) (eff int64, err error)
- func (s *Service) DisablePushData(c context.Context, id int64) (err error)
- func (s *Service) Drawback(c context.Context, days int, mid int64, usename, remark string) (err error)
- func (s *Service) ExpireTip(c context.Context, id int64, operator string) (err error)
- func (s *Service) ExportCode(c context.Context, batchID int64) (codes []string, err error)
- func (s *Service) FrozenBatchCode(c context.Context, BatchCodeID int64, status int8) (err error)
- func (s *Service) FrozenCode(c context.Context, codeID int64, status int8) (err error)
- func (s *Service) GetPushData(c context.Context, id int64) (res *model.VipPushData, err error)
- func (s *Service) GrandResouce(c context.Context, remark string, batchID int64, mids []int, username string) (failMid []int, err error)
- func (s *Service) HistoryPage(c context.Context, u *model.UserChangeHistoryReq) (res []*model.VipChangeHistory, count int, err error)
- func (s *Service) JointlysByState(c context.Context, state int8) (res []*model.Jointly, err error)
- func (s *Service) ModifyJointly(c context.Context, j *model.ArgModifyJointly) (err error)
- func (s *Service) MonthEdit(c context.Context, id int64, status int8, op string) (err error)
- func (s *Service) MonthList(c context.Context) (res []*model.VipMonth, err error)
- func (s *Service) OrderList(c context.Context, arg *model.ArgPayOrder) (res []*model.PayOrder, count int64, err error)
- func (s *Service) PanelPlatFormTypes(c context.Context) (res []*model.TypePlatform, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) PlatformAll(c context.Context, order string) (res []*model.ConfPlatform, err error)
- func (s *Service) PlatformByID(c context.Context, arg *model.ArgID) (dlg *model.ConfPlatform, err error)
- func (s *Service) PlatformDel(c context.Context, arg *model.ArgID, operator string) (eff int64, err error)
- func (s *Service) PlatformSave(c context.Context, arg *model.ConfPlatform) (eff int64, err error)
- func (s *Service) PoolInfo(c context.Context, id int) (res *model.VipResourcePool, err error)
- func (s *Service) PriceAdd(c context.Context, mp *model.VipMonthPrice) (err error)
- func (s *Service) PriceEdit(c context.Context, mp *model.VipMonthPrice) (err error)
- func (s *Service) PriceList(c context.Context, mID int64) (res []*model.VipMonthPrice, err error)
- func (s *Service) Privileges(c context.Context, langType int8) (res []*model.PrivilegeResp, err error)
- func (s *Service) PushDatas(c context.Context, arg *model.ArgPushData) (res []*model.VipPushData, count int64, err error)
- func (s *Service) QueryPool(c context.Context, r *model.ResoucePoolBo) (res []*model.VipResourcePool, count int, err error)
- func (s *Service) Refund(c context.Context, orderNo, username string, refundAmount float64) (err error)
- func (s *Service) SaveBatchCode(c context.Context, arg *model.BatchCode) (err error)
- func (s *Service) SavePushData(c context.Context, arg *model.VipPushData) (err error)
- func (s *Service) SelBatchCode(c context.Context, arg *model.ArgBatchCode, pn, ps int) (res []*model.BatchCode, total int64, err error)
- func (s *Service) SelBatchCodes(c context.Context, batchIDs []int64) (res []*model.BatchCode, err error)
- func (s *Service) SelCode(c context.Context, arg *model.ArgCode, username string, curID int64, ps int) (res []*model.CodeVo, cursor int64, pre int64, err error)
- func (s *Service) TipByID(c context.Context, id int64) (t *model.Tips, err error)
- func (s *Service) TipList(c context.Context, platform int8, state int8, position int8) (ts []*model.Tips, err error)
- func (s *Service) TipUpdate(c context.Context, t *model.Tips) (err error)
- func (s *Service) UpVipDPriceConfig(c context.Context, arg *model.ArgAddOrUpVipDPrice) (err error)
- func (s *Service) UpVipPriceConfig(c context.Context, arg *model.ArgAddOrUpVipPrice) (err error)
- func (s *Service) UpdateBatch(c context.Context, id, increment int, startTime, endTime xtime.Time) (err error)
- func (s *Service) UpdateBusinessInfo(c context.Context, req *model.VipBusinessInfo) (err error)
- func (s *Service) UpdateOrder(c context.Context, a *model.ArgOrder) (err error)
- func (s *Service) UpdatePool(c context.Context, r *model.ResoucePoolBo) (err error)
- func (s *Service) UpdatePrivilege(c context.Context, req *model.ArgUpdatePrivilege, img *model.ArgImage) (err error)
- func (s *Service) UpdatePrivilegeState(c context.Context, p *model.Privilege) (err error)
- func (s *Service) UpdateVersion(c context.Context, v *model.VipAppVersion) (err error)
- func (s *Service) VipDPriceConfigID(c context.Context, arg *model.ArgVipDPriceID) (res *model.VipDPriceConfig, err error)
- func (s *Service) VipDPriceConfigs(c context.Context, arg *model.ArgVipPriceID) (res []*model.VipDPriceConfig, err error)
- func (s *Service) VipInfo(c context.Context, mid int64) (res *model.VipUserInfo, err error)
- func (s *Service) VipPriceConfigID(c context.Context, arg *model.ArgVipPriceID) (res *model.VipPriceConfig, err error)
- func (s *Service) VipPriceConfigs(c context.Context, arg *model.ArgVipPrice) (res []*model.VipPriceConfig, err error)
- func (s *Service) WelfareBatchList(wid int) (wbs []*model.WelfareBatchRes, err error)
- func (s *Service) WelfareBatchState(c context.Context, id int, username string) (err error)
- func (s *Service) WelfareBatchUpload(body []byte, name, username string, wid, vtime int) (err error)
- func (s *Service) WelfareList(tid int) (ws []*model.WelfareRes, err error)
- func (s *Service) WelfareSave(username string, req *model.WelfareReq) (err error)
- func (s *Service) WelfareState(id int, username string) (err error)
- func (s *Service) WelfareTypeList() (wts []*model.WelfareTypeRes, err error)
- func (s *Service) WelfareTypeSave(id int, name, username string) (err error)
- func (s *Service) WelfareTypeState(c context.Context, id int, username string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service struct
func (*Service) AddBusinessInfo ¶
AddBusinessInfo add business info.
func (*Service) AddJointly ¶
AddJointly add jointly.
func (*Service) AddPrivilege ¶
func (s *Service) AddPrivilege(c context.Context, req *model.ArgAddPrivilege, img *model.ArgImage) (err error)
AddPrivilege add privilege.
func (*Service) AddVipDPriceConfig ¶
AddVipDPriceConfig add vip discount price config.
func (*Service) AddVipPriceConfig ¶
AddVipPriceConfig add vip price config.
func (*Service) AllVersion ¶
AllVersion all version.
func (*Service) BatchInfoOfPool ¶
func (s *Service) BatchInfoOfPool(c context.Context, poolID int) (res []*model.VipResourceBatch, err error)
BatchInfoOfPool .
func (*Service) BusinessInfo ¶
BusinessInfo business info
func (*Service) BusinessList ¶
func (s *Service) BusinessList(c context.Context, pn, ps, status int) (res []*model.VipBusinessInfo, count int64, err error)
BusinessList business list.
func (*Service) DelPushData ¶
DelPushData .
func (*Service) DelVipDPriceConfig ¶
DelVipDPriceConfig delete vip discount price config.
func (*Service) DelVipPriceConfig ¶
DelVipPriceConfig delete vip price config.
func (*Service) DeleteJointly ¶
DeleteJointly delete jointly .
func (*Service) DeletePrivilege ¶
DeletePrivilege delete privilege .
func (*Service) DialogAll ¶
func (s *Service) DialogAll(c context.Context, appID, platform int64, status string) (res []*model.ConfDialogList, err error)
DialogAll .
func (*Service) DialogByID ¶
func (s *Service) DialogByID(c context.Context, arg *model.ArgID) (dlg *model.ConfDialog, err error)
DialogByID .
func (*Service) DialogDel ¶
func (s *Service) DialogDel(c context.Context, arg *model.ArgID, operator string) (eff int64, err error)
DialogDel .
func (*Service) DialogEnable ¶
DialogEnable .
func (*Service) DialogSave ¶
DialogSave .
func (*Service) DisablePushData ¶
DisablePushData .
func (*Service) Drawback ¶
func (s *Service) Drawback(c context.Context, days int, mid int64, usename, remark string) (err error)
Drawback Drawback
func (*Service) ExportCode ¶
ExportCode .
func (*Service) FrozenBatchCode ¶
FrozenBatchCode .
func (*Service) FrozenCode ¶
FrozenCode .
func (*Service) GetPushData ¶
GetPushData get push data
func (*Service) GrandResouce ¶
func (s *Service) GrandResouce(c context.Context, remark string, batchID int64, mids []int, username string) (failMid []int, err error)
GrandResouce grand resouce mid
func (*Service) HistoryPage ¶
func (s *Service) HistoryPage(c context.Context, u *model.UserChangeHistoryReq) (res []*model.VipChangeHistory, count int, err error)
HistoryPage history page.
func (*Service) JointlysByState ¶
JointlysByState jointlys by state.
func (*Service) ModifyJointly ¶
ModifyJointly modify jointly.
func (*Service) OrderList ¶
func (s *Service) OrderList(c context.Context, arg *model.ArgPayOrder) (res []*model.PayOrder, count int64, err error)
OrderList order list.
func (*Service) PanelPlatFormTypes ¶
PanelPlatFormTypes .
func (*Service) PlatformAll ¶
func (s *Service) PlatformAll(c context.Context, order string) (res []*model.ConfPlatform, err error)
PlatformAll .
func (*Service) PlatformByID ¶
func (s *Service) PlatformByID(c context.Context, arg *model.ArgID) (dlg *model.ConfPlatform, err error)
PlatformByID .
func (*Service) PlatformDel ¶
func (s *Service) PlatformDel(c context.Context, arg *model.ArgID, operator string) (eff int64, err error)
PlatformDel .
func (*Service) PlatformSave ¶
PlatformSave .
func (*Service) Privileges ¶
func (s *Service) Privileges(c context.Context, langType int8) (res []*model.PrivilegeResp, err error)
Privileges Privilege list.
func (*Service) PushDatas ¶
func (s *Service) PushDatas(c context.Context, arg *model.ArgPushData) (res []*model.VipPushData, count int64, err error)
PushDatas get push datas
func (*Service) QueryPool ¶
func (s *Service) QueryPool(c context.Context, r *model.ResoucePoolBo) (res []*model.VipResourcePool, count int, err error)
QueryPool query pool
func (*Service) Refund ¶
func (s *Service) Refund(c context.Context, orderNo, username string, refundAmount float64) (err error)
Refund refund order.
func (*Service) SaveBatchCode ¶
SaveBatchCode .
func (*Service) SavePushData ¶
SavePushData save push data
func (*Service) SelBatchCode ¶
func (s *Service) SelBatchCode(c context.Context, arg *model.ArgBatchCode, pn, ps int) (res []*model.BatchCode, total int64, err error)
SelBatchCode .
func (*Service) SelBatchCodes ¶
func (s *Service) SelBatchCodes(c context.Context, batchIDs []int64) (res []*model.BatchCode, err error)
SelBatchCodes .
func (*Service) SelCode ¶
func (s *Service) SelCode(c context.Context, arg *model.ArgCode, username string, curID int64, ps int) (res []*model.CodeVo, cursor int64, pre int64, err error)
SelCode .
func (*Service) TipList ¶
func (s *Service) TipList(c context.Context, platform int8, state int8, position int8) (ts []*model.Tips, err error)
TipList tip list.
func (*Service) UpVipDPriceConfig ¶
UpVipDPriceConfig update vip discount price config.
func (*Service) UpVipPriceConfig ¶
UpVipPriceConfig update vip price config.
func (*Service) UpdateBatch ¶
func (s *Service) UpdateBatch(c context.Context, id, increment int, startTime, endTime xtime.Time) (err error)
UpdateBatch .
func (*Service) UpdateBusinessInfo ¶
UpdateBusinessInfo update business info.
func (*Service) UpdateOrder ¶
UpdateOrder update order.
func (*Service) UpdatePool ¶
UpdatePool .
func (*Service) UpdatePrivilege ¶
func (s *Service) UpdatePrivilege(c context.Context, req *model.ArgUpdatePrivilege, img *model.ArgImage) (err error)
UpdatePrivilege update privilege.
func (*Service) UpdatePrivilegeState ¶
UpdatePrivilegeState update privilege state.
func (*Service) UpdateVersion ¶
UpdateVersion update version.
func (*Service) VipDPriceConfigID ¶
func (s *Service) VipDPriceConfigID(c context.Context, arg *model.ArgVipDPriceID) (res *model.VipDPriceConfig, err error)
VipDPriceConfigID get discount price config by id.
func (*Service) VipDPriceConfigs ¶
func (s *Service) VipDPriceConfigs(c context.Context, arg *model.ArgVipPriceID) (res []*model.VipDPriceConfig, err error)
VipDPriceConfigs get discount price config list.
func (*Service) VipPriceConfigID ¶
func (s *Service) VipPriceConfigID(c context.Context, arg *model.ArgVipPriceID) (res *model.VipPriceConfig, err error)
VipPriceConfigID get vip price config by id.
func (*Service) VipPriceConfigs ¶
func (s *Service) VipPriceConfigs(c context.Context, arg *model.ArgVipPrice) (res []*model.VipPriceConfig, err error)
VipPriceConfigs get vip price configs.
func (*Service) WelfareBatchList ¶
func (s *Service) WelfareBatchList(wid int) (wbs []*model.WelfareBatchRes, err error)
WelfareBatchList get welfare batch list
func (*Service) WelfareBatchState ¶
WelfareBatchState delete welfare batch
func (*Service) WelfareBatchUpload ¶
func (s *Service) WelfareBatchUpload(body []byte, name, username string, wid, vtime int) (err error)
WelfareBatchUpload save upload welfare code
func (*Service) WelfareList ¶
func (s *Service) WelfareList(tid int) (ws []*model.WelfareRes, err error)
WelfareList get welfare list
func (*Service) WelfareSave ¶
func (s *Service) WelfareSave(username string, req *model.WelfareReq) (err error)
WelfareSave save welfare
func (*Service) WelfareState ¶
WelfareState delete welfare
func (*Service) WelfareTypeList ¶
func (s *Service) WelfareTypeList() (wts []*model.WelfareTypeRes, err error)
WelfareTypeList get welfare type list
func (*Service) WelfareTypeSave ¶
WelfareTypeSave save welfare type