service

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 Service

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

Service struct

func New

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

New init

func (*Service) Close

func (s *Service) Close()

Close Service

func (*Service) IncomeAssetList

func (s *Service) IncomeAssetList(ctx context.Context, mid int64, ver int64, ps, pn int64) (inc *model.IncomeAssetMonthly, page *model.Page, err error)

IncomeAssetList 获得稿件维度的收入数据

func (*Service) IncomeAssetOverview

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

IncomeAssetOverview 获得收入总览数据

func (*Service) Ping

func (s *Service) Ping(c context.Context) (err error)

Ping Service

func (*Service) TradeCancel

func (s *Service) TradeCancel(ctx context.Context, orderID string) (err error)

TradeCancel 订单取消

func (*Service) TradeConfirm

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

TradeConfirm 订单二次确认

func (*Service) TradeCreate

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

TradeCreate 订单创建

func (*Service) TradeQuery

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

TradeQuery 订单查询

Jump to

Keyboard shortcuts

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