parent
ab39efe8d0
commit
31594c38da
@ -1,30 +0,0 @@
|
||||
package message
|
||||
|
||||
type Product struct {
|
||||
ProductId int `json:"product_id"` //true 商品编号
|
||||
}
|
||||
|
||||
// ProductRechargeParams 获取商品的充值参数。
|
||||
type ProductRechargeParams struct {
|
||||
ProductId int `json:"product_id"` //true 商品编号
|
||||
}
|
||||
|
||||
// Buy 购买商品(不支持购买选号类型的商品)
|
||||
type Buy struct {
|
||||
ProductId int `json:"product_id"` //true 商品编号
|
||||
RechargeAccount string `json:"recharge_account"` //false 充值账号
|
||||
RechargeTemplateInputItems interface{} `json:"recharge_template_input_items"` //false 模板充值参数([1]见下方说明)
|
||||
Quantity int `json:"quantity"` //true 购买数量
|
||||
NotifyUrl string `json:"notify_url"` //false 异步通知地址
|
||||
OuterOrderId string `json:"outer_order_id"` //false 外部订单号
|
||||
}
|
||||
|
||||
// Order 获取单个订单信息
|
||||
type Order struct {
|
||||
OrderId int64 `json:"order_id"` //true 订单号
|
||||
}
|
||||
|
||||
// Customer 获取商家信息
|
||||
type Customer struct {
|
||||
CustomerId int `json:"customer_id"` //true 商家编号
|
||||
}
|
@ -1,9 +1,9 @@
|
||||
package url
|
||||
package _url
|
||||
|
||||
const (
|
||||
Product = "product" // 获取单个商品信息
|
||||
ProductRechargeParams = "product/recharge-params" // 获取商品的充值参数
|
||||
Buy = "buy" // 购买商品(不支持购买选号类型的商品)
|
||||
Order = "order" // 获取单个订单信息
|
||||
Customer = "customer" // 获取商家信息
|
||||
Product = "product" // 获取单个商品信息 http://cha.kashangwl.com/api-doc/basic/product.html
|
||||
ProductRechargeParams = "product/recharge-params" // 获取商品的充值参数 http://cha.kashangwl.com/api-doc/basic/product-recharge-params.html
|
||||
Buy = "buy" // 购买商品(不支持购买选号类型的商品) http://cha.kashangwl.com/api-doc/basic/buy.html
|
||||
Order = "order" // 获取单个订单信息 http://cha.kashangwl.com/api-doc/basic/order.html
|
||||
Customer = "customer" // 获取商家信息 http://cha.kashangwl.com/api-doc/basic/customer.html
|
||||
)
|
||||
|
@ -1,5 +1,5 @@
|
||||
package library
|
||||
|
||||
func Version() string {
|
||||
return "2.0.2"
|
||||
return "2.0.3"
|
||||
}
|
||||
|
Loading…
Reference in new issue