pay

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

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

Dao str

func New

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

New fn

func (*Dao) Ass

func (d *Dao) Ass(c context.Context, aid int64, ip string) (assert *archive.PayAsset, registed bool, err error)

Ass 查看付费信息 UGCPayAssetInvalid = New(88001) // ugcpay 内容无效

func (*Dao) Ping

func (d *Dao) Ping(c context.Context) (err error)

Ping fn

func (*Dao) UserAcceptProtocol

func (d *Dao) UserAcceptProtocol(c context.Context, protocolID string, mid int64) (accept bool, err error)

UserAcceptProtocol fn: 判断当前的协议是否已经同意过,前端必须传递当前的投稿协议ID

Jump to

Keyboard shortcuts

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