modeltype

package
v0.0.0-...-c79604e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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 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 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

func NormalID

func NormalID(id uint) bool

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"
	KeyIcon              ConfigKeyType = "icon"
	KeyService           ConfigKeyType = "service"
	KeyWechat            ConfigKeyType = "wechat"
	KeyAvatar            ConfigKeyType = "avatar"
	KeyAboutUs           ConfigKeyType = "aboutus"
	KeyPasswordFrontHash ConfigKeyType = "passwordfronthash"
	KeyFooter            ConfigKeyType = "footer"
	KeyAdTitle           ConfigKeyType = "adtitle"
	KeyAdPic             ConfigKeyType = "adpic"
	KeyAd                ConfigKeyType = "ad"
	KeyAdUrl             ConfigKeyType = "adurl"
)

type ConfigValueType

type ConfigValueType string

type ImageType

type ImageType int
const (
	XieYiImage  ImageType = 1
	WupinImage  ImageType = 2
	ConfigImage ImageType = 3
	AvatarImage ImageType = 4
)

type PayFromType

type PayFromType int
const (
	AliPay    PayFromType = 1
	WeChatPay PayFromType = 2
)

type PayType

type PayType int
const (
	NewPay PayType = 1
	BagPay PayType = 2
	Repay  PayType = 3
)

type PayUrlKey

type PayUrlKey string
const (
	PayFromTypeKey    PayUrlKey = "type"
	PayBuyRecordIdKey PayUrlKey = "buyRecordId"
	PayRedirectKey    PayUrlKey = "redirect"
	PayTypeKey        PayUrlKey = "paytype"
)

type Price

type Price uint64

func (Price) ToInt64

func (p Price) ToInt64() int64

type PriceNull

type PriceNull sql.Null[Price]

func (PriceNull) ToInt64

func (p PriceNull) ToInt64() int64

func (PriceNull) ToPrice

func (p PriceNull) ToPrice() Price

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 Total

type Total uint64

func (Total) ToInt64

func (t Total) ToInt64() int64

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
)

type UserType

type UserType int
const (
	NormalUserType    UserType = 1
	AdminUserType     UserType = 2
	RootAdminUserType UserType = 3
)

type VideoType

type VideoType int
const (
	XieYiVideo VideoType = 1
	WupinVideo VideoType = 2
)

type XieYiType

type XieYiType string
const (
	XieYiDefault XieYiType = XieyiUser
	XieyiUser    XieYiType = "user"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL