来源:hgdjnet-server 9bfbafe10d417deea959bd53117bc88a10e60a83 项目身份 HKDJ / JHA-216,独立官网仓库,Jenkins 守卫键 hkdjnet 测试目录 /server/hkdj_net,App/Web API 30331/30332 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
27 lines
734 B
Go
27 lines
734 B
Go
package pubdef
|
|
|
|
// 卡类型
|
|
type CardTypeInt int32
|
|
|
|
// vip类型
|
|
type VipType int32
|
|
|
|
const (
|
|
VipTypeNone VipType = 0 + iota // 没卡
|
|
VipTypeMonth VipType = 1 // 月卡
|
|
VipTypeYear VipType = 2 // 年卡
|
|
)
|
|
|
|
var VipTypeNamedMap = map[VipType]string{
|
|
VipTypeNone: "无",
|
|
VipTypeMonth: "月卡",
|
|
VipTypeYear: "年卡",
|
|
}
|
|
|
|
type BannerInfo struct {
|
|
Img string `json:"img" bson:"img"` // banner图片
|
|
Text string `json:"text" bson:"text"` // banner文字类
|
|
BackgroundColor string `json:"backgroundColor" bson:"backgroundColor"` // banner背景图
|
|
SkipUrl string `json:"skipUrl" bson:"skipUrl"` // banner跳转地址
|
|
}
|