third-platform-sdk/api/entity.go
2024-04-30 17:57:27 +08:00

52 lines
2.0 KiB
Go

package api
type GetLinkRequest struct {
ActivityId string `json:"activity_id"` //活动ID
Position string `json:"position"` //推广位ID
}
type GetLinkResponse struct {
H5 string `json:"h5"`
ShortLink string `json:"shortLink"`
DeepLink string `json:"deepLink"`
EvokeLink string `json:"evokeLink"`
WechatApplet string `json:"wechatApplet"`
WechatAppletQrcode string `json:"wechatAppletQrcode"`
AlipayApplet string `json:"alipayApplet"`
Tkl string `json:"tkl"`
Poster string `json:"poster"`
}
type GetOrderRequest struct {
OrderNo string `json:"orderNo"`
ActId string `json:"actId"`
StartTime int64 `json:"startTime"`
EndTime int64 `json:"endTime"`
Page int64 `json:"page"`
PageSize int64 `json:"pageSize"`
}
type OrderItem struct {
OrderNo string `json:"orderNo"` //订单号
ActId string `json:"actId"` //活动ID
ActName string `json:"actName"` //活动名称
Sid string `json:"sid"` //Sid
OrderTitle string `json:"orderTitle"` //订标题
Commission string `json:"commission"` //佣金
CommissionRate string `json:"commissionRate"` //佣金比率
OrderTime int64 `json:"orderTime"` //订单时间
PayTime int64 `json:"payTime"` //支付时间
ModifiedTime int64 `json:"modifiedTime"` //最后一次更新时间
OrderPrice string `json:"orderPrice"` //订单金额
PayPrice string `json:"payPrice"` //支付金额
RefundPrice string `json:"refundPrice"` //退款金额
RefundReason string `json:"refundReason"` //退款原因
Status string `json:"status"` //状态
Quantity int64 `json:"quantity"` //商品数量
AppKey string `json:"appKey"`
Ext string `json:"ext"` //拓展参数
}
type GetOrderResponse struct {
Total int64 `json:"total"`
List []*OrderItem `json:"list"`
}