maps

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ChannelId 渠道平台MAP
	ChannelId = CommonUintStringMap{
		0: `平台`,
		1: `企业`,
		2: `用户`,
	}

	// VipType 素材Vip类型
	VipType = CommonUintStringMap{
		0: `免费`,
		1: `VIP`,
	}

	// Language 语言
	Language = CommonStringStringMap{
		`zh-CN`: `简体中文`,
		`zh-HK`: `繁体中文`,
		`en`:    `英语`,
	}
)
View Source
var (
	// SmsTemplateStatus 短信模板状态
	SmsTemplateStatus = SmsTmplStatusMap{
		enums.SmsStatusOff: enums.SmsStatusOff.Fmt(),
		enums.SmsStatusOk:  enums.SmsStatusOk.Fmt(),
	}

	// SmsTemplateVarAlias 短信模板变量MAP
	SmsTemplateVarAlias = VarAliasMap{
		enums.SmsAliasRegisterCaptcha: enums.SmsAliasRegisterCaptcha.Fmt(),
	}

	// SmsTemplateSmsType 短信模板类型MAP
	SmsTemplateSmsType = SmsTypeMap{
		enums.SmsTypeCaptcha: enums.SmsTypeCaptcha.Fmt(),
		enums.SmsTypeMessage: enums.SmsTypeMessage.Fmt(),
		enums.SmsTypeMarket:  enums.SmsTypeMarket.Fmt(),
	}
)
View Source
var (
	// UserStatus 用户状态MAP
	UserStatus = CommonUintStringMap{
		0: `正常`,
		1: `已冻结`,
		2: `待注销`,
	}

	// UserCredentialType 证件类型
	UserCredentialType = CommonUintStringMap{
		0: `身份证`,
	}

	// UserCredentialExpireType 用户证件效期类型
	UserCredentialExpireType = CommonUintStringMap{
		0: `有效期`,
		1: `长期`,
	}

	// UserDeviceDisabled 用户设备禁用
	UserDeviceDisabled = CommonUintStringMap{
		0: `正常`,
		1: `禁用`,
	}

	// UserLoginStatus 用户登录态状态
	UserLoginStatus = CommonUintStringMap{
		0: `正常`,
		1: `下线`,
		2: `超时下线`,
	}

	// UserLoginIsUse 用户登录是否使用
	UserLoginIsUse = CommonUintStringMap{
		0: `是`,
		1: `否`,
	}

	// UserLoginIsNewDevice 用户登录是否新设备
	UserLoginIsNewDevice = CommonUintStringMap{
		0: `常用设备`,
		1: `新设备`,
	}
)

Functions

This section is empty.

Types

type CommonStringStringMap

type CommonStringStringMap map[string]string

定义一个新的整型对应字符串的MAP,它的底层是一个map[string]string

type CommonUintStringMap

type CommonUintStringMap map[uint]string

定义一个新的整型对应字符串的MAP,它的底层是一个map[uint]string

type SmsTmplStatusMap

type SmsTmplStatusMap map[enums.SmsStatus]string

type SmsTypeMap

type SmsTypeMap map[enums.SmsType]string

type VarAliasMap

type VarAliasMap map[enums.SmsAlias]string

Jump to

Keyboard shortcuts

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