@@ -0,0 +1,162 @@
|
||||
package productmod
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"91porn-server/models/commod"
|
||||
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
)
|
||||
|
||||
// ProductSelector 修改结构体
|
||||
type ProductSelector struct {
|
||||
VipLevel *int `bson:"vipLevel,omitempty" json:"vipLevel,omitempty"` // product等级
|
||||
Name *string `bson:"productName,omitempty" json:"productName,omitempty"` // 商品名字
|
||||
Alias *string `bson:"alias,omitempty" json:"alias,omitempty" ` // 别名
|
||||
Desc *string `bson:"desc,omitempty" json:"desc,omitempty" ` // 内容描述
|
||||
Duration *int `bson:"duration,omitempty" json:"duration,omitempty" ` // 持续天数
|
||||
BGImg *string `bson:"bgImg,omitempty" json:"bgImg,omitempty" ` // 背景图
|
||||
EndBGImg *string `bson:"endBgImg" json:"endBgImg"` // 预售卡尾款背景图
|
||||
OriginalPrice *int64 `bson:"originalPrice,omitempty" json:"originalPrice,omitempty"` // 原价
|
||||
DiscountedPriceIos *int64 `bson:"discountedPriceIos,omitempty" json:"discountedPriceIos,omitempty"` // ios现价
|
||||
DiscountedPriceAnd *int64 `bson:"discountedPriceAnd,omitempty" json:"discountedPriceAnd,omitempty"` // 安卓现价
|
||||
ProductType *int `bson:"productType,omitempty" json:"productType,omitempty" ` // 产品类型
|
||||
Sort *int `bson:"sort,omitempty" json:"sort,omitempty" ` // 排序字段
|
||||
Status *bool `bson:"status,omitempty" json:"status,omitempty"` // 0 下架 //1 下架
|
||||
Position *string `bson:"position,omitempty" json:"position,omitempty"` // 位置
|
||||
UnitPriceDisplay *bool `bson:"unitPriceDisplay,omitempty" json:"unitPriceDisplay,omitempty"` // 单价展示开关
|
||||
ActionDesc *string `bson:"actionDesc,omitempty" json:"actionDesc,omitempty"` // 活动描述
|
||||
PrivilegeDesc *string `bson:"privilegeDesc,omitempty" json:"privilegeDesc,omitempty"` // 特权描述 "特权1,特权2"
|
||||
ShowCountdownTime *int `bson:"showCountdownTime,omitempty" json:"showCountdownTime,omitempty"` // 新手卡倒计时 24
|
||||
IsAmountPay *bool `bson:"isAmountPay,omitempty" json:"isAmountPay,omitempty"` // 是否可以用金币购买
|
||||
TimesAWeek *int `bson:"timesAWeek,omitempty" json:"timesAWeek,omitempty"` // 一周几次
|
||||
LouFengDiscount *int `bson:"louFengDiscount,omitempty" json:"louFengDiscount,omitempty"` // 楼凤折扣率
|
||||
LoufengBookDiscount *int `bson:"loufengBookDiscount,omitempty" json:"loufengBookDiscount,omitempty"` // 楼凤预约折扣
|
||||
LoufengBookDiscountDays *int `bson:"loufengBookDiscountDays,omitempty" json:"loufengBookDiscountDays,omitempty"` // 楼凤预约折扣时间
|
||||
Privilege *[]int `bson:"privilege,omitempty" json:"privilege,omitempty"` // 特权
|
||||
UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt"` // 更新时间
|
||||
GiveCoin int64 `json:"giveCoin" bson:"giveCoin"` // 购买赠送金币
|
||||
EveryDayGiveCoin int64 `json:"everyDayGiveCoin" bson:"everyDayGiveCoin"` // 金币月卡每日赠送金币
|
||||
GiveGameCoin *int64 `json:"giveGameCoin" bson:"giveGameCoin,omitempty"` // 购买赠送游戏金币
|
||||
LouFengUnlockTimes *int `json:"louFengUnlockTimes" bson:"louFengUnlockTimes,omitempty"` // 赠送楼凤解锁次数
|
||||
ChanSplitMod *int `json:"chanSplitMod,omitempty" bson:"chanSplitMod,omitempty"` // 渠道分成模式 0不分成 1 正常分成
|
||||
GoldVideoFreeDay *int `json:"goldVideoFreeDay" bson:"goldVideoFreeDay,omitempty"` // 金币视频免费天数
|
||||
GoldVideoFreeLimit *int `json:"goldVideoFreeLimit" bson:"goldVideoFreeLimit"` // 金币视频免费限制门槛
|
||||
ServiceTime *int64 `json:"serviceTime,omitempty" bson:"serviceTime,omitempty"` // 服务时长(单位:分钟)
|
||||
GiveFruitCoin *int64 `json:"giveFruitCoin,omitempty" bson:"giveFruitCoin,omitempty"` // 购买赠送果币
|
||||
PayVidDiscount *int `json:"payVidDiscount,omitempty" bson:"payVidDiscount,omitempty"` // 支付视频折扣
|
||||
GoldVideoCouponNum *int `json:"goldVideoCouponNum,omitempty" bson:"goldVideoCouponNum,omitempty"` // 赠送观影券金币数量
|
||||
GoldVideoCouponCount *int `json:"goldVideoCouponCount,omitempty" bson:"goldVideoCouponCount,omitempty"` // 赠送观影券数量
|
||||
NewName *string `bson:"newName,omitempty" json:"newName,omitempty"` // 新商品名字
|
||||
NewBgImg *string `bson:"newBgImg,omitempty" json:"newBgImg,omitempty" ` // 新背景图
|
||||
EndBGSelectImg *string `bson:"endBgSelectImg" json:"endBgSelectImg"` // 预售卡尾款背景图(选中)
|
||||
ExclusiveOffer *string `bson:"exclusiveOffer,omitempty" json:"exclusiveOffer,omitempty"` // 是否专属特惠
|
||||
VipCardDesc *string `bson:"vipCardDesc,omitempty" json:"vipCardDesc,omitempty"` // vip卡描述
|
||||
NewPrivilege []*PrivilegeInfo `bson:"newPrivilege,omitempty" json:"newPrivilege,omitempty"` // 新特权
|
||||
AiUndressCount *uint64 `bson:"aiUndressCount,omitempty" json:"aiUndressCount,omitempty"` // ai脱衣次数
|
||||
DownloadCount *int64 `bson:"downloadCount,omitempty" json:"downloadCount,omitempty"` // 赠送下载次数
|
||||
LuckyDrawCount *int64 `bson:"luckyDrawCount,omitempty" json:"luckyDrawCount,omitempty"` // 抽奖次数
|
||||
ChatPrice *int64 `bson:"chatPrice,omitempty" json:"chatPrice,omitempty"` // 私聊价格
|
||||
SignDays *uint64 `json:"signDays,omitempty" bson:"signDays,omitempty"` // 签到天数
|
||||
AdvanceAmount *int64 `bson:"advanceAmount,omitempty" json:"advanceAmount,omitempty"` // 预付金额
|
||||
BalanceAmount *int64 `bson:"balanceAmount,omitempty" json:"balanceAmount,omitempty"` // 尾款金额
|
||||
AllGoldVideoFree *bool `json:"allGoldVideoFree,omitempty" bson:"allGoldVideoFree,omitempty"` // 所有金币视频免费
|
||||
StartTime *time.Time `bson:"startTime,omitempty" json:"startTime,omitempty"` // 开始时间
|
||||
EndTime *time.Time `bson:"endTime,omitempty" json:"endTime,omitempty"` // 结束时间
|
||||
ActivityTime *time.Time `json:"activityTime,omitempty" bson:"activityTime,omitempty"` // 活动时间
|
||||
Type *int `bson:"type,omitempty" json:"type,omitempty"` // 会员卡类型
|
||||
SendGame *bool `bson:"sendGame,omitempty" json:"sendGame,omitempty"` // 是否赠送游戏
|
||||
IsHomePopUp *bool `bson:"isHomePopUp,omitempty" json:"isHomePopUp,omitempty"` // 是否首页弹窗
|
||||
BroadcastDays *int `json:"broadcastDays,omitempty" bson:"broadcastDays,omitempty"` // 直播有效时间,单位天
|
||||
DramaDays *int `json:"dramaDays,omitempty" bson:"dramaDays,omitempty"` // 短剧权益有效时间,单位天
|
||||
PrepaidPrivilege *AdvanceCardPrepaidPrivilege `json:"prepaidPrivilege,omitempty" bson:"prepaidPrivilege,omitempty"` // 预售卡预付权益
|
||||
AdvanceVipLevel *int `json:"advanceVipLevel,omitempty" bson:"advanceVipLevel,omitempty"` // 预付卡等级
|
||||
AdvanceDuration *int `json:"advanceDuration,omitempty" bson:"advanceDuration,omitempty"` // 预付卡持续天数
|
||||
AdvanceExpires *time.Time `json:"advanceExpires,omitempty" bson:"advanceExpires,omitempty"` // 预付卡会员到期时间
|
||||
AllowedUpgradeCards *[]*CardsInfo `json:"allowedUpgradeCards,omitempty" bson:"allowedUpgradeCards,omitempty"` // 允许升级到此卡的会员卡
|
||||
}
|
||||
|
||||
type ProductWeb struct {
|
||||
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" ` // ID
|
||||
VipLevel int `bson:"vipLevel" json:"vipLevel"` // product等级 1 普通vip 2 超级vip
|
||||
Name string `bson:"productName" json:"productName" ` // 商品名字
|
||||
Alias string `bson:"alias" json:"alias"` // 别名
|
||||
Desc string `bson:"desc" json:"desc" ` // 内容描述
|
||||
Duration int `bson:"duration" json:"duration" binding:"lte=99999"` // 持续天数
|
||||
BGImg string `bson:"bgImg" json:"bgImg" ` // 背景图
|
||||
EndBGImg string `bson:"endBgImg" json:"endBgImg"` // 预售卡尾款背景图
|
||||
OriginalPrice int64 `bson:"originalPrice" json:"originalPrice" ` // 原价
|
||||
DiscountedPrice int64 `bson:"discountedPrice" json:"discountedPrice"` // 现价
|
||||
DiscountedPriceIos int64 `bson:"discountedPriceIos" json:"discountedPriceIos"` // ios现价
|
||||
DiscountedPriceAnd int64 `bson:"discountedPriceAnd" json:"discountedPriceAnd"` // 安卓现价
|
||||
ProductType commod.ProductType `bson:"productType" json:"productType"` // 产品类型
|
||||
Sort int `bson:"sort" json:"sort"` // 排序字段
|
||||
Status bool `bson:"status" json:"status"` // 0 下架 //1 下架
|
||||
Position string `bson:"position" json:"position"` // 位置
|
||||
UnitPriceDisplay bool `bson:"unitPriceDisplay" json:"unitPriceDisplay"` // 单价展示开关
|
||||
ActionDesc string `bson:"actionDesc" json:"actionDesc"` // 活动描述
|
||||
PrivilegeDesc string `bson:"privilegeDesc" json:"privilegeDesc"` // 特权描述 "特权1,特权2"
|
||||
ShowCountdownTime int `bson:"showCountdownTime" json:"showCountdownTime"` // 新手卡倒计时 24
|
||||
IsAmountPay bool `bson:"isAmountPay" json:"isAmountPay"` // 是否可以用金币购买
|
||||
TimesAWeek int `bson:"timesAWeek" json:"timesAWeek"` // 一周几次
|
||||
LouFengDiscount int `bson:"louFengDiscount" json:"louFengDiscount"` // 楼凤折扣率
|
||||
LoufengBookDiscount int `bson:"loufengBookDiscount" json:"loufengBookDiscount"` // 楼凤预约
|
||||
LoufengBookDiscountDays int `bson:"loufengBookDiscountDays" json:"loufengBookDiscountDays"` // 楼凤预约折扣时间
|
||||
Privilege []int `bson:"privilege" json:"privilege"` // 特权
|
||||
UpdatedAt time.Time `bson:"updatedAt" json:"updatedAt"` // 更新时间
|
||||
CreatedAt time.Time `json:"createdAt" bson:"createdAt"` // 创建时间
|
||||
GiveCoin int64 `json:"giveCoin" bson:"giveCoin"` // 购买赠送金币
|
||||
GiveGameCoin int64 `json:"giveGameCoin" bson:"giveGameCoin"` // 购买赠送游戏金币
|
||||
LouFengUnlockTimes int `json:"louFengUnlockTimes" bson:"louFengUnlockTimes"` // 赠送楼凤解锁次数
|
||||
GoldVideoFreeDay int `json:"goldVideoFreeDay" bson:"goldVideoFreeDay" binding:"lte=99999"` // 金币视频免费天数
|
||||
GoldVideoFreeLimit int `json:"goldVideoFreeLimit" bson:"goldVideoFreeLimit"` // 金币视频免费限制门槛
|
||||
ChanSplitMod int `json:"chanSplitMod" bson:"chanSplitMod"` // 渠道分成模式 0不分成 1 正常分成
|
||||
ServiceTime int64 `json:"serviceTime" bson:"serviceTime"` // 服务时长(单位:分钟)
|
||||
GiveFruitCoin int64 `json:"giveFruitCoin" bson:"giveFruitCoin"` // 购买赠送果币
|
||||
PayVidDiscount int `json:"payVidDiscount" bson:"payVidDiscount"` // 支付视频折扣
|
||||
GoldVideoCouponNum int `json:"goldVideoCouponNum" bson:"goldVideoCouponNum"` // 赠送观影券金币数量
|
||||
GoldVideoCouponCount int `json:"goldVideoCouponCount" bson:"goldVideoCouponCount"` // 赠送观影券数量
|
||||
VideoDiscount int `json:"videoDiscount" bson:"videoDiscount"` // 视频折扣卡-视频折扣率
|
||||
NewName string `bson:"newName" json:"newName"` // 新商品名字
|
||||
NewBgImg string `bson:"newBgImg" json:"newBgImg" ` // 新背景图
|
||||
EndBGSelectImg string `bson:"endBgSelectImg" json:"endBgSelectImg"` // 预售卡尾款背景图(选中)
|
||||
ExclusiveOffer string `bson:"exclusiveOffer" json:"exclusiveOffer"` // 是否可以用金币购买
|
||||
VipCardDesc string `bson:"vipCardDesc" json:"vipCardDesc"` // vip卡描述
|
||||
NewPrivilege []PrivilegeInfo `bson:"newPrivilege" json:"newPrivilege"` // vip卡描述
|
||||
EveryDayGiveCoin int64 `json:"everyDayGiveCoin" bson:"everyDayGiveCoin"` // 金币月卡每日赠送金币
|
||||
AiUndressCount uint64 `bson:"aiUndressCount" json:"aiUndressCount"` // ai脱衣次数
|
||||
DownloadCount int64 `bson:"downloadCount" json:"downloadCount"` // 赠送下载次数
|
||||
LuckyDrawCount int64 `bson:"luckyDrawCount" json:"luckyDrawCount"` // 抽奖次数
|
||||
AllGoldVideoFree bool `json:"allGoldVideoFree" bson:"allGoldVideoFree"` // 所有金币视频免费
|
||||
AdvanceAmount int64 `bson:"advanceAmount" json:"advanceAmount"` // 预付金额
|
||||
BalanceAmount int64 `bson:"balanceAmount" json:"balanceAmount"` // 尾款金额
|
||||
Type int `bson:"type" json:"type"` // 会员卡类型
|
||||
IsHomePopUp bool `bson:"isHomePopUp" json:"isHomePopUp"` // 是否首页弹窗
|
||||
SendGame bool `bson:"sendGame,omitempty" json:"sendGame,omitempty"` // 是否赠送游戏
|
||||
StartTime time.Time `bson:"startTime" json:"startTime"` // 开始时间
|
||||
EndTime time.Time `bson:"endTime" json:"endTime"` // 结束时间
|
||||
ActivityTime time.Time `json:"activityTime" bson:"activityTime,omitempty"` // 活动时间
|
||||
ChatPrice int64 `bson:"chatPrice" json:"chatPrice"` // 私聊价格
|
||||
SignDays uint64 `bson:"signDays" json:"signDays"` // 签到天数
|
||||
BroadcastDays int `json:"broadcastDays" bson:"broadcastDays"` // 直播有效时间,单位天
|
||||
DramaDays int `json:"dramaDays" bson:"dramaDays" binding:"gte=0,lte=99999"` // 短剧权益有效时间,单位天
|
||||
PrepaidPrivilege *AdvanceCardPrepaidPrivilege `json:"prepaidPrivilege" bson:"prepaidPrivilege"` // 预售卡预付权益
|
||||
AdvanceVipLevel int `json:"advanceVipLevel" bson:"advanceVipLevel"` // 预付卡等级
|
||||
AdvanceDuration int `json:"advanceDuration" bson:"advanceDuration"` // 预付卡持续天数
|
||||
AdvanceExpires time.Time `json:"advanceExpires" bson:"advanceExpires"` // 预付卡会员到期时间
|
||||
AllowedUpgradeCards []CardsInfo `json:"allowedUpgradeCards" bson:"allowedUpgradeCards"` // 允许升级到此卡的会员卡
|
||||
}
|
||||
|
||||
type CheckboxListCond struct {
|
||||
ProductType commod.ProductType `form:"productType" json:"productType"` //产品类型
|
||||
}
|
||||
|
||||
type ProductCheckbox struct {
|
||||
ID primitive.ObjectID `bson:"_id,omitempty" json:"id"`
|
||||
Name string `bson:"productName" json:"productName"` //商品名字
|
||||
}
|
||||
|
||||
type ProductListWeb struct {
|
||||
Status *bool `form:"status" json:"status,omitempty"` //true 上架 //false 下架
|
||||
ProductType *int `form:"productType" json:"productType,omitempty"` // 产品类型
|
||||
}
|
||||
Reference in New Issue
Block a user