enums

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TencentSmsInternationalChina TencentSmsInternational = 0
	TencentSmsInternationalHMTC  TencentSmsInternational = 1
	TencentSmsInternationalAll   TencentSmsInternational = 3
	TencentSmsStatusCodeAF       TencentSmsStatusCode    = -1
	TencentSmsStatusCodeAE       TencentSmsStatusCode    = 0
	TencentSmsStatusCodeAR       TencentSmsStatusCode    = 1
	TencentSmsStatusCodeTE       TencentSmsStatusCode    = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AdmCustomUpdateColumns

type AdmCustomUpdateColumns int
const (
	AdmUpdateColumnsStatus AdmCustomUpdateColumns = iota
	AdmUpdateColumnsIsSuper
)

func (AdmCustomUpdateColumns) Fmt

type AdminInviteStatus

type AdminInviteStatus int
const (
	AdminInviteStatusZero AdminInviteStatus = iota
	AdminInviteStatusOne
	AdminInviteStatusTwo
)

func (AdminInviteStatus) Fmt

func (s AdminInviteStatus) Fmt() string

type AdminIsSuperManage

type AdminIsSuperManage int
const (
	AdminIsSuperMangeOrdinary AdminIsSuperManage = iota
	AdminIsSuperManageSuper
)

func (AdminIsSuperManage) Fmt

func (m AdminIsSuperManage) Fmt() string

type AdminManageStatus

type AdminManageStatus int
const (
	AdminManageStatusOk AdminManageStatus = iota
	AdminManageStatusLock
	AdminManageStatusDepart
	AdminManageStatusOV
	AdminManageStatusLogoff
)

func (AdminManageStatus) Fmt

func (s AdminManageStatus) Fmt() string

type ArtCategoryShow

type ArtCategoryShow int
const (
	ArtCategoryShowOk ArtCategoryShow = iota
	ArtCategoryShowHide
)

func (ArtCategoryShow) Fmt

func (s ArtCategoryShow) Fmt() string

type ArtCategoryStatus

type ArtCategoryStatus int
const (
	ArtCategoryStatusOk ArtCategoryStatus = iota
	ArtCategoryStatusDisable
)

func (ArtCategoryStatus) Fmt

func (a ArtCategoryStatus) Fmt() string

type ArticleShow

type ArticleShow int
const (
	ArticleShowOk ArticleShow = iota
	ArticleShowHide
)

func (ArticleShow) Fmt

func (s ArticleShow) Fmt() string

type ArticleStatus

type ArticleStatus int
const (
	ArticleStatusOk ArticleStatus = iota
	ArticleStatusDisable
)

func (ArticleStatus) Fmt

func (s ArticleStatus) Fmt() string

type ContextDataKey

type ContextDataKey string
const (
	ContextDataBasicUser ContextDataKey = `contextUserKey` // 用户信息上下文KEY
	ContextDataAdminUser ContextDataKey = `adminUser`
	ContextDataUser      ContextDataKey = `user`
	ContextDataWitheUrl  ContextDataKey = `whiteUrl` // 白名单URL地址
)

func (ContextDataKey) Fmt

func (k ContextDataKey) Fmt() string

type CorrelateTypeEnums

type CorrelateTypeEnums uint
const (
	CorrelateTypeTemp CorrelateTypeEnums = iota
	CorrelateTypeSpace
)

type CountryCode

type CountryCode string
const (
	CountryCodeChina CountryCode = `+86` // 中国区号
)

type DepartStatus

type DepartStatus int
const (
	DepartStatusOk DepartStatus = iota
	DepartStatusDisabled
)

func (DepartStatus) Fmt

func (s DepartStatus) Fmt() string

type ErrorCode

type ErrorCode int
const (
	ErrorOK                  ErrorCode = 0
	ErrorUnify               ErrorCode = 10000
	ErrorNotLogoutIn         ErrorCode = 11000
	ErrorLogoutIn            ErrorCode = 11001
	ErrorLoginErrThree       ErrorCode = 11002
	ErrorLoginErrLock        ErrorCode = 11003
	ErrorNotAdmin            ErrorCode = 11004
	ErrorForgotNotCaptcha    ErrorCode = 11005
	ErrorUpdatePwdNotCaptcha ErrorCode = 11006
	ErrorInviteIn            ErrorCode = 12001
	ErrorInviteAuth          ErrorCode = 12002
	ErrorForbidden           ErrorCode = 400003
)

func (ErrorCode) Fmt

func (c ErrorCode) Fmt() string

type FormSide added in v1.0.1

type FormSide uint
const (
	FormSideAdm FormSide = iota // 运营后台
	FormSideMer                 // 商户后台
	FormSideBus                 // 业务用户端
	FormSideCli                 // 终端
)

func (FormSide) Fmt added in v1.0.1

func (s FormSide) Fmt() string

func (FormSide) Is added in v1.0.1

func (s FormSide) Is() bool

type LogOperateType

type LogOperateType int
const (
	LogOperateTypeOperate LogOperateType = iota
	LogOperateTypeLogin
	LogOperateTypeSystem
)

func (LogOperateType) Fmt

func (t LogOperateType) Fmt() string

type LoginOauthStatus

type LoginOauthStatus uint
const (
	LoginOauthStatusOk LoginOauthStatus = iota
	LoginOauthStatusOL
	LoginOauthStatusTimeout
)

func (LoginOauthStatus) Fmt

func (s LoginOauthStatus) Fmt() string

type MaterialPositionEnums

type MaterialPositionEnums string // 素材位置
const (
	MaterialPositionMain      MaterialPositionEnums = `main`
	MaterialPositionMarket    MaterialPositionEnums = `market`
	MaterialPositionTop       MaterialPositionEnums = `top`
	MaterialPositionBtmMain   MaterialPositionEnums = `btm-main`
	MaterialPositionBtmSecond MaterialPositionEnums = `btm-second`
	MaterialPositionBtmSingle MaterialPositionEnums = `btm-single`
	MaterialPositionDetail    MaterialPositionEnums = `detail`
)

素材位置:main主图,market营销活动卖点,top顶部卖点, btm-main底部主卖点,btm-second底部次卖点,btm-single底部单独卖点,detail详情图卖点

type MaterialStatusEnums

type MaterialStatusEnums uint // 素材状态
const (
	MaterialStatusOk MaterialStatusEnums = iota
	MaterialStatusDiscard
)

素材状态

type MaterialTemplateStatusEnums

type MaterialTemplateStatusEnums uint
const (
	MaterialTemplateStatusAudit MaterialTemplateStatusEnums = iota
	MaterialTemplateStatusOk
	MaterialTemplateStatusOff
)

type MaterialTemplateWordsWordsTypeEnums

type MaterialTemplateWordsWordsTypeEnums uint
const (
	MaterialTemplateWordsWordsTypeDefault MaterialTemplateWordsWordsTypeEnums = iota
	MaterialTemplateWordsWordsTypeNoSep
	MaterialTemplateWordsWordsTypeSep
)

type MaterialTypeEnums

type MaterialTypeEnums uint // 素材类型
const (
	MaterialTypeMate MaterialTypeEnums = iota
	MaterialTypeMain
)

素材类型

type PGCoinBillStatus added in v1.0.5

type PGCoinBillStatus int
const (
	PGCoinBillStatusNormal PGCoinBillStatus = iota
	PGCoinBillStatusComplete
	PGCoinBillStatusPartExpired
	PGCoinBillStatusExpired
	PGCoinBillStatusPartRefund
	PGCoinBillStatusRefund
)

func (PGCoinBillStatus) Fmt added in v1.0.5

func (s PGCoinBillStatus) Fmt() string

func (PGCoinBillStatus) Is added in v1.0.5

func (s PGCoinBillStatus) Is() bool

type PGCoinBillType added in v1.0.5

type PGCoinBillType int
const (
	PGCoinBillTypeRecharge PGCoinBillType = iota
	PGCoinBillTypeActGive
	PGCoinBillTypeFormGive
	PGCoinBillTypeNewUserGive
	PGCoinBillTypeSaleRefund
)

func (PGCoinBillType) Is added in v1.0.5

func (t PGCoinBillType) Is() bool

type PGCoinOrderPay added in v1.0.5

type PGCoinOrderPay int
const (
	PGCoinOrderPayPending PGCoinOrderPay = iota
	PGCoinOrderPayPaid
)

func (PGCoinOrderPay) Fmt added in v1.0.8

func (p PGCoinOrderPay) Fmt() string

func (PGCoinOrderPay) Is added in v1.0.5

func (p PGCoinOrderPay) Is() bool

type PGCoinOrderStatus added in v1.0.5

type PGCoinOrderStatus int
const (
	PGCoinOrderStatusPending PGCoinOrderStatus = iota
	PGCoinOrderStatusSuccess
	PGCoinOrderStatusCancel
	PGCoinOrderStatusRefund
)

func (PGCoinOrderStatus) Fmt added in v1.0.8

func (s PGCoinOrderStatus) Fmt() string

func (PGCoinOrderStatus) Is added in v1.0.5

func (s PGCoinOrderStatus) Is() bool

type PGCoinTransactionType added in v1.0.5

type PGCoinTransactionType int
const (
	PGCoinTransactionTypeIncome PGCoinTransactionType = iota
	PGCoinTransactionTypeConsume
)

func (PGCoinTransactionType) Fmt added in v1.0.5

func (t PGCoinTransactionType) Fmt() string

func (PGCoinTransactionType) Is added in v1.0.5

func (t PGCoinTransactionType) Is() bool

type PGCoinUserTAB added in v1.0.8

type PGCoinUserTAB string
const (
	PGCoinUserTABAll     PGCoinUserTAB = `all`     // 全部
	PGCoinUserTABPending PGCoinUserTAB = `pending` // 待支付
	PGCoinUserTABOK      PGCoinUserTAB = `ok`      // 已完成
)

type PermAssocType

type PermAssocType int
const (
	PermAssocTypeRoles PermAssocType = iota
	PermAssocTypeUser
)

func (PermAssocType) Fmt

func (t PermAssocType) Fmt() string

type PermCustomUpdateColumns

type PermCustomUpdateColumns int
const (
	PermUpdateColumnsShow PermCustomUpdateColumns = iota
	PermUpdateColumnsDisabled
	PermUpdateColumnsSort
)

func (PermCustomUpdateColumns) Fmt

type PermDisabled

type PermDisabled int
const (
	PermDisabledOk PermDisabled = iota
	PermDisabledLock
)

func (PermDisabled) Fmt

func (d PermDisabled) Fmt() string

type PermMenuType

type PermMenuType int
const (
	PermMenuTypeMain PermMenuType = iota
	PermMenuTypeSub
	PermMenuTypeAction
	PermMenuTypeAuth
)

func (PermMenuType) Fmt

func (t PermMenuType) Fmt() string

type PermShow

type PermShow int
const (
	PermShowOk PermShow = iota
	PermShowHide
)

func (PermShow) Fmt

func (s PermShow) Fmt() string

type RoleStatus

type RoleStatus int
const (
	RoleStatusOk RoleStatus = iota
	RoleStatusLock
)

func (RoleStatus) Fmt

func (s RoleStatus) Fmt() string

type SafeTags

type SafeTags string
const (
	SafeTagsLogin      SafeTags = `login`
	SafeTagsUpload     SafeTags = `upload`
	SafeTagsSmsCaptcha SafeTags = `sms-captcha`
	SafeTagsForgotPwd  SafeTags = `forgot-pwd`
	SafeTagsUptPwd     SafeTags = `upt-pwd`
)

func (SafeTags) Fmt

func (t SafeTags) Fmt() string

type SexEnums

type SexEnums uint

SexEnums 枚举性别类型

const (
	SexMan SexEnums = iota
	SexWoman
	SexSecrecy
)

func (SexEnums) Fmt

func (e SexEnums) Fmt() string

Format 性别格式化

type SmsAlias

type SmsAlias string
const (
	SmsAliasRegisterCaptcha  SmsAlias = `reg-captcha`
	SmsAliasForgotPwdCaptcha SmsAlias = `forgot-pwd-captcha`
	SmsAliasUptPwdCaptcha    SmsAlias = `upt-pwd-captcha`
)

func (SmsAlias) Fmt

func (a SmsAlias) Fmt() string

String 格式化短信别名

type SmsDriver

type SmsDriver string
const (
	SmsDriverTencent SmsDriver = `sms_tencent` // 腾讯服务
	SmsDriverAlipay  SmsDriver = `sms_alipay`  // 阿里云
)

func (SmsDriver) Fmt

func (d SmsDriver) Fmt() string

type SmsStatus

type SmsStatus int
const (
	SmsStatusOff SmsStatus = iota
	SmsStatusOk
)

func (SmsStatus) Fmt

func (s SmsStatus) Fmt() string

String SMS模板状态

type SmsType

type SmsType uint
const (
	SmsTypeCaptcha SmsType = iota
	SmsTypeMessage
	SmsTypeMarket
)

func (SmsType) Fmt

func (t SmsType) Fmt() string

String 格式化短信类型

type SpaceImageDesignTypeEnums

type SpaceImageDesignTypeEnums uint
const (
	SpaceImageDesignTypeSmart SpaceImageDesignTypeEnums = iota
	SpaceImageDesignTypeHandMove
	SpaceImageDesignTypeActive
)

type SpaceImagePrecisionEnums

type SpaceImagePrecisionEnums uint

SpaceImagePrecisionEnums 图片空间精度枚举类型

const (
	SpaceImagePrecisionZero SpaceImagePrecisionEnums = iota
	SpaceImagePrecisionOne
	SpaceImagePrecisionTwo
	SpaceImagePrecisionThree
	SpaceImagePrecisionFour
	SpaceImagePrecisionFive
	SpaceImagePrecisionSix
	SpaceImagePrecisionSeven
	SpaceImagePrecisionEight
	SpaceImagePrecisionNine
	SpaceImagePrecisionTen
)

func (SpaceImagePrecisionEnums) Fmt

Fmt 格式化图片空间精度

type SpaceImageSortTypeEnums

type SpaceImageSortTypeEnums uint // 设计排序
const (
	SpaceImageSortTypeDefault SpaceImageSortTypeEnums = iota
	SpaceImageSortTypeNew
	SpaceImageSortTypeAtMost
)

func (SpaceImageSortTypeEnums) Fmt

type SysMapDisable

type SysMapDisable uint
const (
	SysMapDisableOk SysMapDisable = iota
	SysMapDisableDisable
)

func (SysMapDisable) Fmt

func (s SysMapDisable) Fmt() string

type TencentSmsInternational

type TencentSmsInternational uint64

func (TencentSmsInternational) Fmt

Fmt 腾讯短信类型

type TencentSmsStatusCode

type TencentSmsStatusCode int

func (TencentSmsStatusCode) Fmt

func (c TencentSmsStatusCode) Fmt() string

Fmt 腾讯短信模板状态

type UserAdminStatus

type UserAdminStatus uint
const (
	UserAdminStatusOk UserAdminStatus = iota
	UserAdminStatusLock
	UserAdminStatusLO
	UserAdminStatusVIO
	UserAdminStatusLG
)

func (UserAdminStatus) Fmt

func (s UserAdminStatus) Fmt() string

type UserDeviceDisabled

type UserDeviceDisabled uint
const (
	UserDeviceDisabledOk UserDeviceDisabled = iota
	UserDeviceDisabledOff
)

func (UserDeviceDisabled) Fmt

func (d UserDeviceDisabled) Fmt() string

type UserLoginStatus

type UserLoginStatus uint
const (
	UserLoginStatusOk UserLoginStatus = iota
	UserLoginStatusSP
	UserLoginStatusSM
	UserLoginStatusND
)

func (UserLoginStatus) Fmt

func (s UserLoginStatus) Fmt() string

type UserOauth

type UserOauth string
const (
	UserOauthAccount        UserOauth = `account`
	UserOauthSmsCaptcha     UserOauth = `sms-captcha`
	UserOauthWechatScanCode UserOauth = `wechat-scan-code`
	UserOauthAlipayScanCode UserOauth = `alipay-scan-code`
)

func (UserOauth) Fmt

func (o UserOauth) Fmt() string

type UserStatus

type UserStatus uint
const (
	UserStatusOk UserStatus = iota
	UserStatusLock
	UserStatusLogout
)

func (UserStatus) Fmt

func (s UserStatus) Fmt() string

type VidePersonalIsShow added in v1.0.1

type VidePersonalIsShow int
const (
	VideoPersonalShow VidePersonalIsShow = iota
	VideoPersonalHide
)

func (VidePersonalIsShow) Is added in v1.0.1

func (s VidePersonalIsShow) Is() bool

type VideoBeat added in v1.0.1

type VideoBeat int
const (
	VideoBeatNot VideoBeat = iota
	VideoBeatYes
)

func (VideoBeat) Is added in v1.0.1

func (b VideoBeat) Is() bool

type VideoBuyBillStatus added in v1.0.5

type VideoBuyBillStatus int
const (
	VideoBuyBillStatusNormal VideoBuyBillStatus = iota
	VideoBuyBillStatusRefund
	VideoBuyBillStatusPartRefund
)

func (VideoBuyBillStatus) Fmt added in v1.0.5

func (s VideoBuyBillStatus) Fmt() string

func (VideoBuyBillStatus) Is added in v1.0.5

func (s VideoBuyBillStatus) Is() bool

type VideoBuyStatus added in v1.0.1

type VideoBuyStatus int
const (
	VideoBuyStatusNot VideoBuyStatus = iota
	VideoBuyStatusYes
)

func (VideoBuyStatus) Fmt added in v1.0.5

func (s VideoBuyStatus) Fmt() string

func (VideoBuyStatus) Is added in v1.0.1

func (s VideoBuyStatus) Is() bool

type VideoBuyType added in v1.0.5

type VideoBuyType int
const (
	VideoBuyTypeSE VideoBuyType = iota // 单集购买
	VideoBuyTypeFE                     // 全集购买
	VideoBuyTypeME                     // 余集买断
)

func (VideoBuyType) Fmt added in v1.0.5

func (t VideoBuyType) Fmt() string

func (VideoBuyType) Is added in v1.0.5

func (t VideoBuyType) Is() bool

type VideoCategoryRecommend added in v1.0.11

type VideoCategoryRecommend int
const (
	VideoCategoryRecommendNot VideoCategoryRecommend = iota
	VideoCategoryRecommendYes
)

func (VideoCategoryRecommend) Fmt added in v1.0.11

func (VideoCategoryRecommend) Is added in v1.0.11

type VideoCategoryShow added in v1.0.11

type VideoCategoryShow int
const (
	VideoCategoryShowShow VideoCategoryShow = iota
	VideoCategoryShowHide
)

func (VideoCategoryShow) Fmt added in v1.0.11

func (s VideoCategoryShow) Fmt() string

func (VideoCategoryShow) Is added in v1.0.11

func (s VideoCategoryShow) Is() bool

type VideoFeeType added in v1.0.1

type VideoFeeType int
const (
	VideoFeeTypeFee VideoFeeType = iota
	VideoFeeTypeVIP
)

func (VideoFeeType) Is added in v1.0.1

func (t VideoFeeType) Is() bool

type VideoHot added in v1.0.1

type VideoHot int
const (
	VideoHotNot VideoHot = iota
	VideoHotYes
)

func (VideoHot) Is added in v1.0.1

func (h VideoHot) Is() bool

type VideoNew added in v1.0.1

type VideoNew int
const (
	VideoNewNot VideoNew = iota
	VideoNewYes
)

func (VideoNew) Is added in v1.0.1

func (n VideoNew) Is() bool

type VideoOperator added in v1.0.2

type VideoOperator uint
const (
	VideoOperatorTop VideoOperator = iota
	VideoOperatorRecommend
	VideoOperatorHot
	VideoOperatorBeat
	VideoOperatorNew
	VideoOperatorRelease
)

type VideoPersonalType added in v1.0.1

type VideoPersonalType int
const (
	VideoPersonalTypeDirector VideoPersonalType = iota
	VideoPersonalTypeSubDirector
	VideoPersonalMainStarring
	VideoPersonalStarring
	VideoPersonalGuest
	VideoPersonalOther
)

func (VideoPersonalType) Is added in v1.0.1

func (t VideoPersonalType) Is() bool

type VideoRecommend added in v1.0.1

type VideoRecommend int
const (
	VideoRecommendNot VideoRecommend = iota
	VideoRecommendYes
)

func (VideoRecommend) Is added in v1.0.1

func (r VideoRecommend) Is() bool

type VideoRelease added in v1.0.1

type VideoRelease int
const (
	VideoReleaseNot VideoRelease = iota
	VideoReleaseYes
)

func (VideoRelease) Is added in v1.0.1

func (r VideoRelease) Is() bool

type VideoSeries added in v1.0.1

type VideoSeries int
const (
	VideoSeriesSingle VideoSeries = iota
	VideoSeriesMany
)

func (VideoSeries) Is added in v1.0.1

func (s VideoSeries) Is() bool

type VideoStatus added in v1.0.1

type VideoStatus int
const (
	VideoStatusAudit VideoStatus = iota
	VideoStatusSuccess
	VideoStatusReject
	VideoStatusOff
	VideoStatusDel
)

func (VideoStatus) Is added in v1.0.1

func (s VideoStatus) Is() bool

type VideoTop added in v1.0.1

type VideoTop int
const (
	VideoTopNot VideoTop = iota
	VideoTopYes
)

func (VideoTop) Is added in v1.0.1

func (t VideoTop) Is() bool

type VideoUserActionType added in v1.0.1

type VideoUserActionType string
const (
	VideoUserActionTypeCollect VideoUserActionType = `C`
	VideoUserActionTypeLike    VideoUserActionType = `L`
	VideoUserActionTypeTread   VideoUserActionType = `T`
)

func (VideoUserActionType) Is added in v1.0.1

func (t VideoUserActionType) Is() bool

type VipType

type VipType uint
const (
	VipTypeFree VipType = iota
	VipTypeGuest
)

Jump to

Keyboard shortcuts

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