service/api/proto/vas/proto/op.go

127 lines
3.6 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 proto
// op创建订单
type OpCreateOrderReq struct {
Mid int64 `json:"mid"`
Coins int64 `json:"coins"`
Money int64 `json:"money"`
Operator string `json:"operator"` // 操作人
}
type OpCreateOrderData struct{}
// 获取金币订单列表
type OpCoinOrderListReq struct {
Mid int64 `json:"mid"` // 用户mid
UserId int64 `json:"user_id"` // 用户user_id
OrderId string `json:"order_id"` // 金币订单id
UserName int64 `json:"user_name"` // 用户昵称
St int64 `json:"st"` // 开始时间戳
Et int64 `json:"et"` // 结束时间戳
OrderStatus int32 `json:"order_status"` // 订单状态
Offset int `json:"offset"`
Limit int `json:"limit"`
}
type OpCoinOrderVO struct {
Mid int64 `json:"mid"`
UserUserId int64 `json:"user_user_id"`
Uid int64 `json:"uid"`
StreamerUserId int64 `json:"streamer_user_id"`
OrderId string `json:"order_id"`
OrderStatus int32 `json:"order_status"`
OrderStatusDesc string `json:"order_status_desc"`
Coins int64 `json:"coins"`
Ct int64 `json:"ct"`
ProductName string `json:"product_name"`
}
type OpCoinOrderListData struct {
List []*OpCoinOrderVO `json:"list"`
//Offset int `json:"offset"`
//More int `json:"more"`
}
type DealOneCoinOrderReq struct {
CoinOrderId string `json:"coin_order_id"`
}
type DealOneOrderReq struct {
OrderId string `json:"order_id"`
}
type RefundOrderReq struct {
OrderId string `json:"order_id"`
Operator string `json:"operator"`
}
type RefundOrderData struct {
}
type RefundOrderOpt struct {
zoneRefundReq *ZoneRefundReq
}
func NewRefundOrderOpt() *RefundOrderOpt {
return new(RefundOrderOpt)
}
func (p *RefundOrderOpt) SetZoneRefundReq(z *ZoneRefundReq) *RefundOrderOpt {
p.zoneRefundReq = z
return p
}
func (p *RefundOrderOpt) GetZoneRefundReq() *ZoneRefundReq {
if p != nil && p.zoneRefundReq != nil {
return p.zoneRefundReq
}
return nil
}
type RefundCoinOrderReq struct {
OrderId string `json:"order_id"`
Operator string `json:"operator"`
}
type RefundCoinOrderData struct {
}
// 获取金币订单列表
type OpOrderListReq struct {
Mid int64 `json:"mid"` // 用户mid
UserId int64 `json:"user_id"` // 用户user_id
OrderId string `json:"order_id"` // 金币订单id
UserName int64 `json:"user_name"` // 用户昵称
St int64 `json:"st"` // 开始时间戳
Et int64 `json:"et"` // 结束时间戳
OrderStatus int32 `json:"order_status"` // 订单状态
Offset int `json:"offset"`
Limit int `json:"limit"`
}
type OpOrderVO struct {
Mid int64 `json:"mid"`
UserUserId int64 `json:"user_user_id"`
Uid int64 `json:"uid"`
StreamerUserId int64 `json:"streamer_user_id"`
OrderId string `json:"order_id"`
OrderStatus int32 `json:"order_status"`
OrderStatusDesc string `json:"order_status_desc"`
Coins int64 `json:"coins"`
Money int64 `json:"money"`
Ct int64 `json:"ct"`
ProductName string `json:"product_name"`
}
type OpOrderListData struct {
List []*OpOrderVO `json:"list"`
//Offset int `json:"offset"`
//More int `json:"more"`
}
type WxpayCallbackManualParam struct {
OrderId string `json:"order_id"` // 我们自己服务的订单id
OutOrderId string `json:"out_order_id"` // 外部订单id比如支付宝、微信
CallbackPayType string `json:"callback_pay_type"` // 支付类型
}