27 lines
799 B
Go
27 lines
799 B
Go
package tlpay
|
|
|
|
import (
|
|
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
|
"git.rosy.net.cn/jx-callback/business/model"
|
|
)
|
|
|
|
type tlPayParam struct {
|
|
CusID string `json:"cusID"` //商户号
|
|
AppID string `json:"appID "` //应用ID
|
|
TrxAmt int `json:"trxAmt"` //交易金额
|
|
ReqSN string `json:"reqSN"` //商户交易单号
|
|
PayType string `json:"payType"` //交易方式
|
|
RandomStr string `json:"randomStr"` //随机字符串
|
|
SignType string `json:"signType"` //签名方式
|
|
Sign string `json:"sign"` //签名
|
|
}
|
|
type PayHandler struct {
|
|
Ctx *jxcontext.Context
|
|
PayType string `json:"payType"`
|
|
Order *model.OrderPay
|
|
TLPayParam *tlPayParam `json:"tlPayParam"`
|
|
}
|
|
type PayHandlerInterface struct {
|
|
//CreatePay() (err error)
|
|
}
|