service

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

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 New

func New(c *conf.Config) (s *Service)

New init

func (*Service) AddBatch

func (s *Service) AddBatch(c context.Context, r *model.ResouceBatchBo) (err error)

AddBatch .

func (*Service) AddBusinessInfo

func (s *Service) AddBusinessInfo(c context.Context, req *model.VipBusinessInfo) (err error)

AddBusinessInfo add business info.

func (*Service) AddJointly

func (s *Service) AddJointly(c context.Context, j *model.ArgAddJointly) (err error)

AddJointly add jointly.

func (*Service) AddPool

func (s *Service) AddPool(c context.Context, r *model.ResoucePoolBo) (err error)

AddPool .

func (*Service) AddPrivilege

func (s *Service) AddPrivilege(c context.Context, req *model.ArgAddPrivilege, img *model.ArgImage) (err error)

AddPrivilege add privilege.

func (*Service) AddTip

func (s *Service) AddTip(c context.Context, t *model.Tips) (err error)

AddTip add tip.

func (*Service) AddVipDPriceConfig

func (s *Service) AddVipDPriceConfig(c context.Context, arg *model.ArgAddOrUpVipDPrice) (err error)

AddVipDPriceConfig add vip discount price config.

func (*Service) AddVipPriceConfig

func (s *Service) AddVipPriceConfig(c context.Context, arg *model.ArgAddOrUpVipPrice) (err error)

AddVipPriceConfig add vip price config.

func (*Service) AllVersion

func (s *Service) AllVersion(c context.Context) (res []*model.VipAppVersion, err error)

AllVersion all version.

func (*Service) BatchInfo

func (s *Service) BatchInfo(c context.Context, id int) (res *model.VipResourceBatch, err error)

BatchInfo .

func (*Service) BatchInfoOfPool

func (s *Service) BatchInfoOfPool(c context.Context, poolID int) (res []*model.VipResourceBatch, err error)

BatchInfoOfPool .

func (*Service) BusinessInfo

func (s *Service) BusinessInfo(c context.Context, id int) (r *model.VipBusinessInfo, err error)

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) Close

func (s *Service) Close()

Close Service

func (*Service) DelPushData

func (s *Service) DelPushData(c context.Context, id int64) (err error)

DelPushData .

func (*Service) DelVipDPriceConfig

func (s *Service) DelVipDPriceConfig(c context.Context, arg *model.ArgVipDPriceID) (err error)

DelVipDPriceConfig delete vip discount price config.

func (*Service) DelVipPriceConfig

func (s *Service) DelVipPriceConfig(c context.Context, arg *model.ArgVipPriceID) (err error)

DelVipPriceConfig delete vip price config.

func (*Service) DeleteJointly

func (s *Service) DeleteJointly(c context.Context, id int64) (err error)

DeleteJointly delete jointly .

func (*Service) DeletePrivilege

func (s *Service) DeletePrivilege(c context.Context, id int64) (err error)

DeletePrivilege delete privilege .

func (*Service) DeleteTip

func (s *Service) DeleteTip(c context.Context, id int64, operator string) (err error)

DeleteTip delete tip.

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

func (s *Service) DialogEnable(c context.Context, arg *model.ConfDialog) (eff int64, err error)

DialogEnable .

func (*Service) DialogSave

func (s *Service) DialogSave(c context.Context, arg *model.ConfDialog) (eff int64, err error)

DialogSave .

func (*Service) DisablePushData

func (s *Service) DisablePushData(c context.Context, id int64) (err error)

DisablePushData .

func (*Service) Drawback

func (s *Service) Drawback(c context.Context, days int, mid int64, usename, remark string) (err error)

Drawback Drawback

func (*Service) ExpireTip

func (s *Service) ExpireTip(c context.Context, id int64, operator string) (err error)

ExpireTip expire tip.

func (*Service) ExportCode

func (s *Service) ExportCode(c context.Context, batchID int64) (codes []string, err error)

ExportCode .

func (*Service) FrozenBatchCode

func (s *Service) FrozenBatchCode(c context.Context, BatchCodeID int64, status int8) (err error)

FrozenBatchCode .

func (*Service) FrozenCode

func (s *Service) FrozenCode(c context.Context, codeID int64, status int8) (err error)

FrozenCode .

func (*Service) GetPushData

func (s *Service) GetPushData(c context.Context, id int64) (res *model.VipPushData, err error)

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

func (s *Service) JointlysByState(c context.Context, state int8) (res []*model.Jointly, err error)

JointlysByState jointlys by state.

func (*Service) ModifyJointly

func (s *Service) ModifyJointly(c context.Context, j *model.ArgModifyJointly) (err error)

ModifyJointly modify jointly.

func (*Service) MonthEdit

func (s *Service) MonthEdit(c context.Context, id int64, status int8, op string) (err error)

MonthEdit .

func (*Service) MonthList

func (s *Service) MonthList(c context.Context) (res []*model.VipMonth, err error)

MonthList .

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

func (s *Service) PanelPlatFormTypes(c context.Context) (res []*model.TypePlatform, err error)

PanelPlatFormTypes .

func (*Service) Ping

func (s *Service) Ping(c context.Context) (err error)

Ping check db live

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

func (s *Service) PlatformSave(c context.Context, arg *model.ConfPlatform) (eff int64, err error)

PlatformSave .

func (*Service) PoolInfo

func (s *Service) PoolInfo(c context.Context, id int) (res *model.VipResourcePool, err error)

PoolInfo pool info

func (*Service) PriceAdd

func (s *Service) PriceAdd(c context.Context, mp *model.VipMonthPrice) (err error)

PriceAdd .

func (*Service) PriceEdit

func (s *Service) PriceEdit(c context.Context, mp *model.VipMonthPrice) (err error)

PriceEdit .

func (*Service) PriceList

func (s *Service) PriceList(c context.Context, mID int64) (res []*model.VipMonthPrice, err error)

PriceList .

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

func (s *Service) SaveBatchCode(c context.Context, arg *model.BatchCode) (err error)

SaveBatchCode .

func (*Service) SavePushData

func (s *Service) SavePushData(c context.Context, arg *model.VipPushData) (err error)

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) TipByID

func (s *Service) TipByID(c context.Context, id int64) (t *model.Tips, err error)

TipByID tip by id.

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) TipUpdate

func (s *Service) TipUpdate(c context.Context, t *model.Tips) (err error)

TipUpdate update tip.

func (*Service) UpVipDPriceConfig

func (s *Service) UpVipDPriceConfig(c context.Context, arg *model.ArgAddOrUpVipDPrice) (err error)

UpVipDPriceConfig update vip discount price config.

func (*Service) UpVipPriceConfig

func (s *Service) UpVipPriceConfig(c context.Context, arg *model.ArgAddOrUpVipPrice) (err error)

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

func (s *Service) UpdateBusinessInfo(c context.Context, req *model.VipBusinessInfo) (err error)

UpdateBusinessInfo update business info.

func (*Service) UpdateOrder

func (s *Service) UpdateOrder(c context.Context, a *model.ArgOrder) (err error)

UpdateOrder update order.

func (*Service) UpdatePool

func (s *Service) UpdatePool(c context.Context, r *model.ResoucePoolBo) (err error)

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

func (s *Service) UpdatePrivilegeState(c context.Context, p *model.Privilege) (err error)

UpdatePrivilegeState update privilege state.

func (*Service) UpdateVersion

func (s *Service) UpdateVersion(c context.Context, v *model.VipAppVersion) (err error)

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) VipInfo

func (s *Service) VipInfo(c context.Context, mid int64) (res *model.VipUserInfo, err error)

VipInfo .

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

func (s *Service) WelfareBatchState(c context.Context, id int, username string) (err error)

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

func (s *Service) WelfareState(id int, username string) (err error)

WelfareState delete welfare

func (*Service) WelfareTypeList

func (s *Service) WelfareTypeList() (wts []*model.WelfareTypeRes, err error)

WelfareTypeList get welfare type list

func (*Service) WelfareTypeSave

func (s *Service) WelfareTypeSave(id int, name, username string) (err error)

WelfareTypeSave save welfare type

func (*Service) WelfareTypeState

func (s *Service) WelfareTypeState(c context.Context, id int, username string) (err error)

WelfareTypeState delete welfare type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL