65 lines
2.7 KiB
Go
65 lines
2.7 KiB
Go
package proto
|
|
|
|
import (
|
|
"91porn-server/models/v/integralconfigmod"
|
|
"time"
|
|
|
|
"91porn-server/common/daichong"
|
|
"91porn-server/models/v/productmod"
|
|
"91porn-server/models/v/rchgamtmod"
|
|
)
|
|
|
|
// ProductList 充值金额列表
|
|
type ProductList struct {
|
|
//展示样式 1heng 2 shu
|
|
ShowType int64 `json:"showType"`
|
|
//位置
|
|
Position string `json:"position"`
|
|
//列表
|
|
List []VIPListRes `json:"list"`
|
|
//楼凤位置id
|
|
PositionID string `json:"positionID"`
|
|
}
|
|
|
|
// GoldRes 充值金额列表
|
|
type VIPListRes struct {
|
|
productmod.Product
|
|
RechargeType []rchgamtmod.PayChannelRes `json:"rchgType" bson:"rchgType"` //充值方式
|
|
BadgeType string `json:"badgeType" bson:"-"` // A/B实验套餐角标类型
|
|
BadgeText string `json:"badgeText" bson:"-"` // A/B实验套餐角标文案
|
|
}
|
|
|
|
type VIPCardBadgeStyle struct {
|
|
BadgeType string `json:"badgeType"`
|
|
BackgroundColor string `json:"backgroundColor"`
|
|
TextColor string `json:"textColor"`
|
|
}
|
|
|
|
type VIPCardUIConfig struct {
|
|
BackgroundImage string `json:"backgroundImage"`
|
|
BadgeStyles []VIPCardBadgeStyle `json:"badgeStyles"`
|
|
}
|
|
|
|
type ProductRes struct {
|
|
ExperimentID string `json:"experimentId,omitempty" bson:"-"` // VIP卡片实验ID
|
|
ExperimentStatus string `json:"experimentStatus,omitempty" bson:"-"` // 本次响应的VIP卡片实验状态
|
|
Variant string `json:"variant,omitempty" bson:"-"` // 用户命中的实验分组 A/B
|
|
SkinKey string `json:"skinKey,omitempty" bson:"-"` // 分组对应卡皮标识
|
|
DefaultProductID string `json:"defaultProductId,omitempty" bson:"-"` // 默认选中套餐ID
|
|
UIConfig *VIPCardUIConfig `json:"uiConfig,omitempty" bson:"-"` // 用户命中分组的UI配置
|
|
List []ProductList `json:"list" bson:"list"` // 产品列表数据
|
|
IntegralList []integralconfigmod.APPIntegralConfig `json:"integralList" bson:"integralList"` // 积分兑换列表
|
|
Daichong daichong.Chat `json:"daichong" bson:"daichong"` // 代充商人数据
|
|
IsNewUser bool `json:"isNewUser" bson:"isNewUser"` // 是否新手
|
|
}
|
|
|
|
type TransactionResp struct {
|
|
ProductName string `json:"productName"`
|
|
OrderId string `json:"orderId"`
|
|
Money int64 `json:"money"`
|
|
PaymentAt time.Time `json:"paymentAt"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
PayType string `json:"payType"`
|
|
Status int `json:"status"`
|
|
}
|