package m

import "github.com/fonchain_enterprise/utils/aes"

var Encryption aes.Encryption
var JWTSecret = []byte("asdfqwer1234")

const (
	SERVER_CONFIG = "../conf/conf.ini"
	DefaultDomain = "fontree"
)

const (
	ArtistTokenTime  = 720
	TokenTime        = 12
	RefreshTokenTime = 720
)
const (
	SUCCESS     = "success"
	FAILED      = "failed"
	ExistFAILED = "exist"
)
const (
	Unknown      = 0
	Unnamed      = 1
	UnderReview  = 2
	AuditFailure = 3
	Pass         = 4
)
const (
	DBError              = "数据库错误"
	ERRORPWD             = "账号或密码错误"
	ERRORCODE            = "账号或验证码错误"
	ERRORCONFIG          = "配置文件读取错误,请检查文件路径:"
	ACCOUNT_EXIST        = "账号已存在"
	JOB_NUMBER_EXIST     = "工号已存在"
	Not_Found            = "没有找到数据"
	Not_Found_Artist     = "没有找到此艺人"
	Not_Person_Verify    = "您未进行实名认证"
	Forbidden_Ip         = "网络地址被禁用"
	Mobile_Sended        = "已经发送过，验证码尚可用"
	Black_Mobile_Sended  = "系统提示:已经发送过，验证码尚可用"
	Mobile_Check_Pw_Over = "登陆频率过快，请稍候登陆"
	Mobile_Send_Over     = "您的手机号当天发送次数过多，请联系管理员通过密码登录"
	Mobile_Code_Wrong    = "您的手机号验证码错误，请确认之后注册"
	Mobile_Wrong         = "手机号不合法"
	Mobile_Not_Change    = "手机号未更改"
	Mobile_New_Tel_Over  = "新手机号过期"
	Mobile_Wrong_Code    = "验证码错误"
	Mobile_Not_Send      = "验证码未发送"
	IdNum_Need_RealName  = "身份证校验需要您的真实姓名"
	EmailCreateWrong     = "邮箱创建失败"
	AccountDoesNotExist  = "账号不存在"
	Email_Already_Exists = "邮箱已存在"
	Tel_Already_Exists   = "国际手机号已存在"
)

const (
	SEX_MAN = iota + 1
	SEX_WOMAN
)

const (
	MailDomain       = "fontree.cn"
	MailRootUserName = "postmaster@fontree.cn"
	MailRootPaw      = "Zaq12wsx"
)
const AllowDeviation = 10

// submit info
const (
	SaveSubmitInfoSuccess   = "保存提交信息成功"
	SaveSubmitInfoSuccessEn = "Save submit info success"
	SaveSubmitInfoFailed    = "保存提交信息失败"
	SaveSubmitInfoFailedEn  = "Save submit info failed"
)
