@@ -0,0 +1,51 @@
|
||||
package advanceconfigmod
|
||||
|
||||
import (
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
"time"
|
||||
)
|
||||
|
||||
type AppAdvanceRes struct {
|
||||
List []*AppAdvanceConfig `json:"list" bson:"list"` // 预售配置列表
|
||||
CardList []*ProductCard `json:"cardList" bson:"cardList"` // 预售卡配置
|
||||
ActivityDetail ActivityDetail `json:"activityDetail" bson:"activityDetail"` // 活动详情
|
||||
}
|
||||
|
||||
type AppAdvanceConfig struct {
|
||||
Name string `json:"name" bson:"name"` // 名称
|
||||
Url string `json:"url" bson:"url"` // 配置链接
|
||||
Cover string `json:"cover" bson:"cover"` // 封面
|
||||
SourceURL string `form:"sourceURL" json:"sourceURL"` // 视频资源链接
|
||||
Type int `json:"type" bson:"type"` // 类型 1:宣传视频,2:游戏截图,3:盲盒展示,4:花絮视频,5:下载链接
|
||||
}
|
||||
|
||||
type ActivityDetail struct {
|
||||
StartTime time.Time `json:"startTime" bson:"startTime,omitempty"` // 游戏预售开始时间
|
||||
EndTime time.Time `json:"endTime" bson:"endTime,omitempty"` // 游戏预售结束时间
|
||||
ActivityTime time.Time `json:"activityTime" bson:"activityTime,omitempty"` // 游戏预售活动时间
|
||||
Status int `json:"status" bson:"status"` // 预售订单状态
|
||||
}
|
||||
|
||||
type ProductCard struct {
|
||||
ID primitive.ObjectID `bson:"_id,omitempty" json:"productID" ` // ID
|
||||
Name string `bson:"productName" json:"productName" ` // 商品名字
|
||||
Desc string `bson:"desc" json:"desc"` // 内容描述
|
||||
Type int `bson:"type" json:"type"` // 会员卡类型 (1:初级,2:高级)
|
||||
SendGame bool `bson:"sendGame" json:"sendGame"` // 是否赠送游戏
|
||||
BGImg string `bson:"bgImg" json:"bgImg"` // 背景图
|
||||
OriginalPrice int64 `bson:"originalPrice" json:"originalPrice"` // 原价
|
||||
DiscountedPrice int64 `bson:"discountedPrice" json:"discountedPrice"` // 现价 单位角(金币)
|
||||
DiscountedPriceIos int64 `bson:"discountedPriceIos,omitempty" json:"discountedPriceIos,omitempty"` // ios现价
|
||||
DiscountedPriceAnd int64 `bson:"discountedPriceAnd,omitempty" json:"discountedPriceAnd,omitempty"` // 安卓现价
|
||||
Position string `bson:"position" json:"position"` // 位置
|
||||
NewPrivilege []PrivilegeInfo `bson:"newPrivilege" json:"newPrivilege"` // 新特权
|
||||
GameCode []string `bson:"gameCode" json:"gameCode"` // 游戏码
|
||||
IsPay bool `json:"isPay" bson:"isPay"` // 是否购买
|
||||
}
|
||||
|
||||
// PrivilegeInfo 特权详情
|
||||
type PrivilegeInfo struct {
|
||||
Image string `bson:"img" json:"img"` // 特权图片
|
||||
Name string `bson:"privilegeName" json:"privilegeName"` // 特权名称
|
||||
Desc string `bson:"privilegeDesc" json:"privilegeDesc"` // 特权描述
|
||||
}
|
||||
Reference in New Issue
Block a user