enums

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 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`
)

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