order

package
v0.0.0-...-c5f9841 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2018 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeHandler

func MakeHandler(ctx context.Context, s Service) http.Handler

Types

type Provider

type Provider interface {
	CreateOrderResponse(*model.Order) (interface{}, error)
	Notify(request interface{}) (*model.Trade, interface{}, error)
}

type Service

type Service interface {
	CreateOrder(r *protocol.CreateOrderRequest) (interface{}, error)                           //创建订单
	YXPayOrderList(r *protocol.PayOrderListRequest) ([]protocol.SnakePayOrderInfo, int, error) //pay订单的收支列表
	OrderList(r *protocol.OrderListRequest) ([]protocol.OrderInfo, int, error)                 //获取订单的收支列表
	TradeList(r *protocol.TradeListRequest) ([]protocol.TradeInfo, int, error)                 //获取交易列表

	Notify(platform string, r interface{}) (resp interface{}, err error)

	BalanceList(uids []string) (map[string]string, error)
	GetOptions() string
}

func NewService

func NewService(l *log.Entry) Service

NewService new a service for user

Jump to

Keyboard shortcuts

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