Documentation ¶
Index ¶
- Constants
- Variables
- func NormalID(id uint) bool
- type BuyStatus
- type ConfigKeyType
- type ConfigValueType
- type ImageType
- type PayFromType
- type PayType
- type PayUrlKey
- type Price
- type PriceNull
- type PriceNullJson
- type Total
- type TypesOfConfigValueType
- type UserStatus
- type UserType
- type VideoType
- type XieYiType
Constants ¶
View Source
const ClassEmptyDown = false
View Source
const ClassEmptyID uint = 1
View Source
const ClassEmptyName = "无类型"
View Source
const ClassEmptyShow = false
View Source
const ImagePathV1 = "/v1/image"
View Source
const VideoPathV1 = "/v1/video"
View Source
const WupinEmptyID uint = 0
Variables ¶
View Source
var ConfigInfo = map[ConfigKeyType]string{ KeyName: "网站标题", KeySubName: "网站副标题", KeyHotline: "服务热线", KeyLogo: "网站主Logo", KeyIcon: "网页Icon", KeyService: "服务标语", KeyWechat: "微信二维码推广", KeyAvatar: "默认头像", KeyAboutUs: "关于我们", KeyPasswordFrontHash: "密码学加密字段", KeyFooter: "ICP备案号和底部文字内容", KeyAdTitle: "广告标题", KeyAdPic: "广告图片", KeyAd: "广告内容", KeyAdUrl: "广告Url", }
View Source
var ConfigKey = []ConfigKeyType{ KeyName, KeySubName, KeyHotline, KeyLogo, KeyIcon, KeyService, KeyWechat, KeyAvatar, KeyAboutUs, KeyPasswordFrontHash, KeyFooter, KeyAdTitle, KeyAdPic, KeyAd, KeyAdUrl, }
View Source
var ConfigKeyMap = map[ConfigKeyType]bool{ KeyName: true, KeySubName: true, KeyHotline: true, KeyLogo: true, KeyIcon: true, KeyService: true, KeyWechat: true, KeyAvatar: true, KeyAboutUs: true, KeyPasswordFrontHash: true, KeyFooter: true, KeyAdTitle: true, KeyAdPic: true, KeyAd: true, KeyAdUrl: true, }
View Source
var ConfigType = map[ConfigKeyType]TypesOfConfigValueType{ KeyName: TypeStringMust, KeySubName: TypeStringMust, KeyHotline: TypeStringMust, KeyLogo: TypePicMust, KeyIcon: TypePicMust, KeyService: TypeStringMust, KeyWechat: TypePicMust, KeyAvatar: TypePicMust, KeyAboutUs: TypeStringMust, KeyPasswordFrontHash: TypeStringMust, KeyFooter: TypeString, KeyAdTitle: TypeStringMust, KeyAdPic: TypePicMust, KeyAd: TypeTextMust, KeyAdUrl: TypeString, }
View Source
var ConfigTypeName = map[TypesOfConfigValueType]string{ TypeStringMust: "必选字符串", TypePicMust: "必选图片", TypeTextMust: "必选文本域", TypeString: "可选字符串", TypePic: "可选图片", TypeText: "可选文本域", }
View Source
var ImageAlt = map[ImageType]string{ XieYiImage: "协议附图", WupinImage: "商品图", ConfigImage: "", AvatarImage: "头像", }
View Source
var ImageTypeToName = map[ImageType]string{ XieYiImage: "XieYi", WupinImage: "WuPin", ConfigImage: "Config", AvatarImage: "Avatar", }
View Source
var KeyCanDelete = map[TypesOfConfigValueType]bool{ TypeString: true, TypeText: true, TypePic: true, TypeStringMust: false, TypeTextMust: false, TypePicMust: false, }
View Source
var KeyIsPic = map[TypesOfConfigValueType]bool{ TypeString: false, TypeText: false, TypePic: true, TypeStringMust: false, TypeTextMust: false, TypePicMust: true, }
View Source
var NameToImageType = map[string]ImageType{ "XieYi": XieYiImage, "WuPin": WupinImage, "Config": ConfigImage, "Avatar": AvatarImage, }
View Source
var NameToVideoType = map[string]VideoType{ "XieYi": XieYiVideo, "WuPin": WupinVideo, }
View Source
var PayFromTypeToName = map[PayFromType]string{ AliPay: "alipay", WeChatPay: "wechat", }
View Source
var PayTypeToName = map[PayType]string{ NewPay: "newpay", BagPay: "shoppingbagpay", Repay: "repay", }
View Source
var StatusToName = map[BuyStatus]string{ WaitPay: "已下单,等待支付和确认", PayCheckFail: "已下单,支付失败", WaitFahuo: "待发货", WaitShouHuo: "已发货", WaitPingJia: "已收货", YiPingJia: "已评价", TuiHuoCheck: "申请退货审核中", WaitTuiHuoFahuo: "申请退货成功,等待寄回", WaitTuiHuoShouHuo: "申请退货成功,待收货", TuiHuoFail: "申请退货失败", TuiHuo: "已退货", WaitQuXiao: "申请取消订单审核中", QuXiao: "已取消订单", }
View Source
var VideoTypeToName = map[VideoType]string{ XieYiVideo: "XieYi", WupinVideo: "WuPin", }
Functions ¶
Types ¶
type BuyStatus ¶
type BuyStatus int
const ( WaitPay BuyStatus = 1 PayCheckFail BuyStatus = 2 WaitFahuo BuyStatus = 3 WaitShouHuo BuyStatus = 4 WaitPingJia BuyStatus = 5 YiPingJia BuyStatus = 6 TuiHuoCheck BuyStatus = 7 WaitTuiHuoFahuo BuyStatus = 8 WaitTuiHuoShouHuo BuyStatus = 9 TuiHuoFail BuyStatus = 10 TuiHuo BuyStatus = 11 WaitQuXiao BuyStatus = 12 QuXiao BuyStatus = 13 )
type ConfigKeyType ¶
type ConfigKeyType string
const ( KeyName ConfigKeyType = "name" KeySubName ConfigKeyType = "subname" KeyHotline ConfigKeyType = "hotline" KeyLogo ConfigKeyType = "logo" KeyIcon ConfigKeyType = "icon" KeyService ConfigKeyType = "service" KeyWechat ConfigKeyType = "wechat" KeyAvatar ConfigKeyType = "avatar" KeyAboutUs ConfigKeyType = "aboutus" KeyPasswordFrontHash ConfigKeyType = "passwordfronthash" KeyAdTitle ConfigKeyType = "adtitle" KeyAdPic ConfigKeyType = "adpic" KeyAd ConfigKeyType = "ad" KeyAdUrl ConfigKeyType = "adurl" )
type ConfigValueType ¶
type ConfigValueType string
type PriceNullJson ¶
type PriceNullJson int64
func (PriceNullJson) ToInt64 ¶
func (p PriceNullJson) ToInt64() int64
func (PriceNullJson) ToPrice ¶
func (p PriceNullJson) ToPrice() Price
func (PriceNullJson) ToPriceNull ¶
func (p PriceNullJson) ToPriceNull() PriceNull
type TypesOfConfigValueType ¶
type TypesOfConfigValueType string
const ( TypeString TypesOfConfigValueType = "string" TypeText TypesOfConfigValueType = "text" TypePic TypesOfConfigValueType = "pic" TypeStringMust TypesOfConfigValueType = "string|must" TypeTextMust TypesOfConfigValueType = "text|must" TypePicMust TypesOfConfigValueType = "pic|must" )
type UserStatus ¶
type UserStatus int
const ( NormalUserStatus UserStatus = 1 FreezeUserStatus UserStatus = 2 DeleteUserStatus UserStatus = 3 )
Click to show internal directories.
Click to hide internal directories.