Files
baseapi/platformapi/kuaishou_mini/kuaishou_model.go
邹宗楠 980fb17b1d 1
2023-03-30 18:08:18 +08:00

44 lines
2.4 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package kuaishou_mini
// GetLoginAuth 快手授权返回
type GetLoginAuth struct {
Result int `json:"result"` // 返回数据条数
Error string `json:"error"` //错误类型
ErrorMsg string `json:"error_msg"` // 错误消息
SessionKey string `json:"session_key"` // 会话秘钥
OpenId string `json:"open_id"` // 用户当前小程序下唯一id
}
type ResultInfo struct {
Result int `json:"result"` // 返回数据条数
Error string `json:"error"` //错误类型
ErrorMsg string `json:"error_msg"` // 错误消息
}
// GetAutoTokenRes 快手授权返回值
type GetAutoTokenRes struct {
Result int64 `json:"result"`
AccessToken string `json:"access_token"`
ExpiresIn int64 `json:"expires_in"`
TokenType string `json:"token_type"`
}
// PreCreateOrderRes 快手预发单
type PreCreateOrderRes struct {
OutOrderNo string `json:"out_order_no"` // 商户系统内部订单号只能是数字、大小写字母_-*且在同一个商户号下唯一
OpenId string `json:"open_id"` // 快手用户在当前小程序的open_id
TotalAmount int64 `json:"total_amount"` // 用户支付金额,单位为[分]。
Subject string `json:"subject"` // 商品描述。注1汉字=2字符。
Detail string `json:"detail"` // 商品详情。注1汉字=2字符。
TypeDetail int `json:"type"` // 商品类型,不同商品类目的编号见
ExpireTime int `json:"expire_time"` // 订单过期时间,单位秒
Sign string `json:"sign"` // 签名
Attach string `json:"attach"` // 开发者自定义字段,回调原样回传.
NotifyUrl string `json:"notify_url"` // 回调地址
GoodsId string `json:"goods_id"` // 下单商品id需与商品对接 (opens new window)时的product_id一致长度限制256个英文字符1个汉字=2个英文字符
GoodsDetailUrl string `json:"goods_detail_url"` // 订单详情页跳转path。
MultiCopiesGoodsInfo string `json:"multi_copies_goods_info"` // 单商品购买多份场景 "[{"copies":2}]"
CancelOrder int64 `json:"cancel_order"` // 该字段表示创建订单的同时是否覆盖之前已存在的订单。
}