client

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: 3 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 info.

func New

func New(c *rpc.ClientConfig) (s *Service)

New create instance of service and return.

func (*Service) AllowanceCount

func (s *Service) AllowanceCount(c context.Context, arg *model.ArgAllowanceMid) (res int, err error)

AllowanceCount allowance count.

func (*Service) AllowanceCouponPanel

func (s *Service) AllowanceCouponPanel(c context.Context, arg *model.ArgAllowanceCoupon) (res *model.CouponAllowancePanelResp, err error)

AllowanceCouponPanel get allowance coupon.

func (*Service) AllowanceInfo

func (s *Service) AllowanceInfo(c context.Context, arg *model.ArgAllowance) (res *model.CouponAllowanceInfo, err error)

AllowanceInfo allowance info.

func (*Service) AllowanceList

func (s *Service) AllowanceList(c context.Context, arg *model.ArgAllowanceList) (res []*model.CouponAllowancePanelInfo, err error)

AllowanceList allowance list.

func (*Service) CancelUseCoupon

func (s *Service) CancelUseCoupon(c context.Context, arg *model.ArgAllowance) (err error)

CancelUseCoupon cancel use coupon.

func (*Service) CouponCartoonPage

func (s *Service) CouponCartoonPage(c context.Context, arg *model.ArgRPCPage) (res *model.CouponCartoonPageResp, err error)

CouponCartoonPage coupon cartoon page.

func (*Service) CouponNotify

func (s *Service) CouponNotify(c context.Context, arg *model.ArgNotify) (err error)

CouponNotify notify coupon.

func (*Service) CouponPage

func (s *Service) CouponPage(c context.Context, arg *model.ArgRPCPage) (res *model.CouponPageRPCResp, err error)

CouponPage coupon page.

func (*Service) JudgeCouponUsable

func (s *Service) JudgeCouponUsable(c context.Context, arg *model.ArgJuageUsable) (res *model.CouponAllowanceInfo, err error)

JudgeCouponUsable judge coupon is usable.

func (*Service) MultiUsableAllowanceCoupon

func (s *Service) MultiUsableAllowanceCoupon(c context.Context, arg *model.ArgUsablePirces) (res map[float64]*model.CouponAllowancePanelInfo, err error)

MultiUsableAllowanceCoupon get usable allowance coupon by muti pirce.

func (*Service) PrizeCards

func (s *Service) PrizeCards(c context.Context, arg *model.ArgCount) (res []*model.PrizeCardRep, err error)

PrizeCards .

func (*Service) PrizeDraw

func (s *Service) PrizeDraw(c context.Context, arg *model.ArgPrizeDraw) (res *model.PrizeCardRep, err error)

PrizeDraw .

func (*Service) ReceiveAllowance

func (s *Service) ReceiveAllowance(c context.Context, arg *model.ArgReceiveAllowance) (res string, err error)

ReceiveAllowance receive allowance

func (*Service) SalaryCoupon

func (s *Service) SalaryCoupon(c context.Context, arg *model.ArgSalaryCoupon) (err error)

SalaryCoupon salary coupon.

func (*Service) SalaryCouponForThird

func (s *Service) SalaryCouponForThird(c context.Context, arg *model.ArgSalaryCoupon) (res *model.SalaryCouponForThirdResp, err error)

SalaryCouponForThird salary coupon.

func (*Service) UsableAllowanceCoupon

func (s *Service) UsableAllowanceCoupon(c context.Context, arg *model.ArgAllowanceCoupon) (res *model.CouponAllowancePanelInfo, err error)

UsableAllowanceCoupon get usable allowance coupon.

func (*Service) UseAllowance

func (s *Service) UseAllowance(c context.Context, arg *model.ArgUseAllowance) (err error)

UseAllowance use allowance.

Jump to

Keyboard shortcuts

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