vip

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: 21 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 .

func New

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

New create service instance and return.

func (*Service) ActivityTimeLimit

func (s *Service) ActivityTimeLimit(mid int64) error

ActivityTimeLimit activity time limit.

func (*Service) ActivityWhiteIPLimit

func (s *Service) ActivityWhiteIPLimit(appkey string, ip string) error

ActivityWhiteIPLimit act ip limit.

func (*Service) ActivityWhiteOutOpenIDLimit

func (s *Service) ActivityWhiteOutOpenIDLimit(openid string) error

ActivityWhiteOutOpenIDLimit act out open id limit.

func (*Service) AssociatePanel

func (s *Service) AssociatePanel(c context.Context, req *vol.ArgAssociatePanel) (res []*v1.AssociatePanelInfo, err error)

AssociatePanel associate panel.

func (*Service) BilibiliPrizeGrant

func (s *Service) BilibiliPrizeGrant(c context.Context, a *model.ArgBilibiliPrizeGrant) (res *v1.BilibiliPrizeGrantReply, err error)

BilibiliPrizeGrant vip prize grant.

func (*Service) BilibiliVipGrant

func (s *Service) BilibiliVipGrant(c context.Context, a *model.ArgBilibiliVipGrant) (err error)

BilibiliVipGrant vip grant.

func (*Service) BindInfoByMid

func (s *Service) BindInfoByMid(c context.Context, a *model.ArgBindInfo) (res *v1.BindInfoByMidReply, err error)

BindInfoByMid bind info by mid[bilibili->third].

func (*Service) CancelUseCoupon

func (s *Service) CancelUseCoupon(c context.Context, arg *vipml.ArgCancelUseCoupon) (err error)

CancelUseCoupon coupon cancel use.

func (*Service) CodeOpen

func (s *Service) CodeOpen(c context.Context, mid int64, code, token, verify string) (codeInfo *model.ResourceCode, err error)

CodeOpen .

func (*Service) CodeOpeneds

func (s *Service) CodeOpeneds(c context.Context, arg *model.CodeInfoReq, ip string) (resp []*vipmod.CodeInfoResp, err error)

CodeOpeneds sel code opened

func (*Service) CodeVerify

func (s *Service) CodeVerify(c context.Context) (token *model.Token, err error)

CodeVerify .

func (*Service) CouponBySuitID

func (s *Service) CouponBySuitID(c context.Context, mid int64, sid int64) (res *col.CouponAllowancePanelInfo, err error)

CouponBySuitID coupon by suit id.

func (*Service) CouponBySuitIDV2

func (s *Service) CouponBySuitIDV2(c context.Context, a *model.ArgCouponBySuitID) (res *v1.CouponBySuitIDReply, err error)

CouponBySuitIDV2 get coupon by mid and suit info.

func (*Service) CouponsForPanel

func (s *Service) CouponsForPanel(c context.Context, mid int64, sid int64, platform string) (res *col.CouponAllowancePanelResp, err error)

CouponsForPanel coupon for panel.

func (*Service) CouponsForPanelV2

func (s *Service) CouponsForPanelV2(c context.Context, mid int64, sid int64) (res *col.CouponAllowancePanelResp, err error)

CouponsForPanelV2 coupon for panel.

func (*Service) CreateAssociateOrder

func (s *Service) CreateAssociateOrder(c context.Context, req *model.ArgCreateAssociateOrder) (res map[string]interface{}, err error)

CreateAssociateOrder create associate order.

func (*Service) EleRedPackages

func (s *Service) EleRedPackages(c context.Context) (res []*v1.ModelEleRedPackage, err error)

EleRedPackages ele red packages.

func (*Service) EleSpecailFoods

func (s *Service) EleSpecailFoods(c context.Context) (res []*v1.ModelEleSpecailFoods, err error)

EleSpecailFoods ele speacail foods.

func (*Service) ElemeOAuthURI

func (s *Service) ElemeOAuthURI(c context.Context, csrf string) string

ElemeOAuthURI get ele oauth uri.

func (*Service) FrozenTime

func (s *Service) FrozenTime(c context.Context, mid int64) (stime int64, err error)

FrozenTime get frozen time

func (*Service) ManagerInfo

func (s *Service) ManagerInfo(c context.Context) (res *model.ManagerResp, err error)

ManagerInfo manager info.

func (*Service) MyWelfare

func (s *Service) MyWelfare(c context.Context, mid int64) (res *v1.MyWelfareReply, err error)

MyWelfare get my welfare

func (*Service) OpenAuthCallBack

func (s *Service) OpenAuthCallBack(c context.Context, a *model.ArgOpenAuthCallBack) (uri string)

OpenAuthCallBack open auth callback[third->bilibili].

func (*Service) OpenBindByOutOpenID

func (s *Service) OpenBindByOutOpenID(c context.Context, a *model.ArgBind) (err error)

OpenBindByOutOpenID associate user bind by out_open_id [third -> bilibili].

func (*Service) OpenIDByAuthCode

func (s *Service) OpenIDByAuthCode(c context.Context, a *model.ArgAuthCode) (res *model.OpenIDResp, err error)

OpenIDByAuthCode third get open_id by auth code.

func (*Service) OrderStatus

func (s *Service) OrderStatus(c context.Context, arg *vipmod.ArgDialog) (res *vipmod.OrderResult, err error)

OrderStatus .

func (*Service) PrivilegebySid

func (s *Service) PrivilegebySid(c context.Context, arg *model.ArgPrivilegeBySid) (res *model.PrivilegesResp, err error)

PrivilegebySid privilege by sid.

func (*Service) PrivilegebyType

func (s *Service) PrivilegebyType(c context.Context, arg *model.ArgPrivilegeDetail) (res []*model.PrivilegeDetailResp, err error)

PrivilegebyType privilege by type.

func (*Service) ResourceBanner

func (s *Service) ResourceBanner(c context.Context, arg *model.ArgResource) (res []*resmdl.Banner, err error)

ResourceBanner .

func (*Service) ResourceBuy

func (s *Service) ResourceBuy(c context.Context, arg *model.ArgResource) (res []*resmdl.Banner, err error)

ResourceBuy .

func (*Service) Tips

func (s *Service) Tips(c context.Context, req *model.TipsReq) (res *vipmol.TipsResp, err error)

Tips vip tips info.

func (*Service) TipsV2

func (s *Service) TipsV2(c context.Context, req *model.TipsReq) (res []*vipmol.TipsResp, err error)

TipsV2 vip tips info v2.

func (*Service) Unfrozen

func (s *Service) Unfrozen(c context.Context, mid int64) (err error)

Unfrozen user unfrozen vip

func (*Service) UseBatch

func (s *Service) UseBatch(c context.Context, arg *vipmod.ArgUseBatch) (err error)

UseBatch use resource batch

func (*Service) UserInfoByOpenID

func (s *Service) UserInfoByOpenID(c context.Context, a *model.ArgUserInfoByOpenID) (res *v1.UserInfoByOpenIDReply, err error)

UserInfoByOpenID get userinfo by open_id.

func (*Service) VipPanel

func (s *Service) VipPanel(c context.Context, mid int64, a *model.VipPanelRes) (res *vipml.VipPirceResp, err error)

VipPanel .

func (*Service) VipPanel5

func (s *Service) VipPanel5(c context.Context, mid int64, a *model.VipPanelRes) (res *vipml.VipPirceResp5, err error)

VipPanel5 .

func (*Service) VipPanelV2

func (s *Service) VipPanelV2(c context.Context, a *model.ArgVipPanel) (res *model.VipPanelResp, err error)

VipPanelV2 vip panel v2.

func (*Service) VipPanelV8

func (s *Service) VipPanelV8(c context.Context, a *model.ArgVipPanel) (res *model.VipPanelV8Resp, err error)

VipPanelV8 vip panel v8

func (*Service) VipPanelV9

func (s *Service) VipPanelV9(c context.Context, a *model.ArgVipPanel) (res *model.VipPanelRespV9, err error)

VipPanelV9 vip panel v9

func (*Service) WelfareInfo

func (s *Service) WelfareInfo(c context.Context, wid, mid int64) (res *v1.WelfareInfoReply, err error)

WelfareInfo get welfare info

func (*Service) WelfareList

func (s *Service) WelfareList(c context.Context, tid, recommend, pn, ps int64) (res *v1.WelfareReply, err error)

WelfareList get welfare list

func (*Service) WelfareReceive

func (s *Service) WelfareReceive(c context.Context, wid, mid int64) (res *v1.WelfareReceiveReply, err error)

WelfareReceive receive welfare

func (*Service) WelfareTypeList

func (s *Service) WelfareTypeList(c context.Context) (res *v1.WelfareTypeReply, err error)

WelfareTypeList get welfare type list

Jump to

Keyboard shortcuts

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