Documentation ¶
Index ¶
- type Service
- func (s *Service) Close()
- func (s *Service) IncomeAssetList(ctx context.Context, mid int64, ver int64, ps, pn int64) (inc *model.IncomeAssetMonthly, page *model.Page, err error)
- func (s *Service) IncomeAssetOverview(ctx context.Context, mid int64) (inc *model.IncomeAssetOverview, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) TradeCancel(ctx context.Context, orderID string) (err error)
- func (s *Service) TradeConfirm(ctx context.Context, orderID string) (order *model.TradeOrder, err error)
- func (s *Service) TradeCreate(ctx context.Context, mid int64, platform string, oid int64, otype string, ...) (orderID string, payData string, err error)
- func (s *Service) TradeQuery(ctx context.Context, orderID string) (order *model.TradeOrder, err error)
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 (*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) TradeCancel ¶
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 订单查询
Click to show internal directories.
Click to hide internal directories.