dao

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: 5 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 dao

func New

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

New init mysql db

func (*Dao) ArchiveTitles

func (d *Dao) ArchiveTitles(ctx context.Context, aids []int64) (arcTitles map[int64]string, err error)

ArchiveTitles 通过 aid list 获取稿件标题

func (*Dao) Close

func (d *Dao) Close()

Close close the resource.

func (*Dao) IncomeAssetOverview

func (d *Dao) IncomeAssetOverview(ctx context.Context, mid int64) (inc *model.IncomeAssetOverview, err error)

IncomeAssetOverview .

func (*Dao) IncomeUserAssetList

func (d *Dao) IncomeUserAssetList(ctx context.Context, mid int64, ver int64, ps, pn int64) (inc *model.IncomeAssetMonthly, err error)

IncomeUserAssetList .

func (*Dao) Ping

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

Ping dao ping

func (*Dao) TradeCancel

func (d *Dao) TradeCancel(ctx context.Context, orderID string) (err error)

TradeCancel cancel trade order by orderID

func (*Dao) TradeConfirm

func (d *Dao) TradeConfirm(ctx context.Context, orderID string) (order *model.TradeOrder, err error)

TradeConfirm confirm trade order by orderID

func (*Dao) TradeCreate

func (d *Dao) TradeCreate(ctx context.Context, platform string, mid int64, oid int64, otype string, currency string) (orderID string, payData string, err error)

TradeCreate create trade order for mid

func (*Dao) TradeQuery

func (d *Dao) TradeQuery(ctx context.Context, orderID string) (order *model.TradeOrder, err error)

TradeQuery query trade order by orderID

Jump to

Keyboard shortcuts

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