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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clientl

type Clientl struct {
	// contains filtered or unexported fields
}

Clientl Client is http client, for url sign.

func NewClientl

func NewClientl(c *bm.ClientConfig, client *bm.Client) *Clientl

NewClientl new a http client.

type Dao

type Dao struct {
	// contains filtered or unexported fields
}

Dao dao

func New

func New(c *conf.Config) (d *Dao)

New new

func (*Dao) CancelUseCoupon

func (d *Dao) CancelUseCoupon(c context.Context, arg *vipmol.ArgCancelUseCoupon) (err error)

CancelUseCoupon cancel use coupon.

func (*Dao) CodeOpen

func (d *Dao) CodeOpen(c context.Context, mid int64, code, token, verify string) (data *model.ResourceCodeResq, err error)

CodeOpen http code open

func (*Dao) CodeOpeneds

func (d *Dao) CodeOpeneds(c context.Context, arg *model.CodeInfoReq, ip string) (resp []*vipmol.CodeInfoResp, err error)

CodeOpeneds sel code opened data

func (*Dao) CodeVerify

func (d *Dao) CodeVerify(c context.Context) (token *model.Token, err error)

CodeVerify code verify

func (*Dao) Info

func (d *Dao) Info(c context.Context, mid int64, ip string) (info *model.VIPInfo, err error)

Info get vip info

func (*Dao) OAuth2ByCode

func (d *Dao) OAuth2ByCode(c context.Context, a *model.ArgAuthCode) (data *model.OAuth2InfoResp, err error)

OAuth2ByCode get user info by oauth2 code.

func (*Dao) Tips

func (d *Dao) Tips(c context.Context, version int64, platform string) (data *vipmol.TipsResp, err error)

Tips tips info.

Jump to

Keyboard shortcuts

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