init: web_hgdjc_server
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
package proto
|
||||
|
||||
import "videoweb/pub/models/rechargepackagemod"
|
||||
|
||||
// PayMethodInfo 单个支付方式
|
||||
type PayMethodInfo struct {
|
||||
Type string `json:"type"` // alipay / wechat / union
|
||||
TypeName string `json:"typeName"` // 支付宝 / 微信 / 银联
|
||||
}
|
||||
|
||||
// RechargePackageItem App购买套餐列表项
|
||||
type RechargePackageItem struct {
|
||||
Id int64 `json:"id"` // 套餐ID
|
||||
PackageType rechargepackagemod.PackageType `json:"packageType"` // 套餐类型:1-会员畅享 2-金币充值
|
||||
Name string `json:"name"` // 展示标题
|
||||
SubTitle string `json:"subTitle"` // 展示副标题
|
||||
Price int64 `json:"price"` // 售价,单位分
|
||||
OriginalPrice int64 `json:"originalPrice"` // 原价,单位分
|
||||
DurationDays int64 `json:"durationDays"` // 会员有效天数
|
||||
DurationHours int64 `json:"durationHours"` // 会员有效小时数,由durationDays计算
|
||||
BaseCoin int64 `json:"baseCoin"` // 基础金币数
|
||||
GiftCoin int64 `json:"giftCoin"` // 赠送金币数
|
||||
TotalCoin int64 `json:"totalCoin"` // 到账总金币数,由baseCoin+giftCoin计算
|
||||
Sort int32 `json:"sort"` // 排序,越小越靠前
|
||||
PayMethods []PayMethodInfo `json:"payMethods"` // 该套餐支持的支付方式
|
||||
}
|
||||
|
||||
// RechargePackageListResp App购买套餐列表响应。
|
||||
type RechargePackageListResp struct {
|
||||
VipList []*RechargePackageItem `json:"vipList"` // 会员畅享列表
|
||||
CoinList []*RechargePackageItem `json:"coinList"` // 金币充值列表
|
||||
}
|
||||
Reference in New Issue
Block a user