package m

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

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

const (
	SERVER_CONFIG         = "../conf/conf.ini"
	SERVER_DUBBOGO_CONFIG = "dubbogo.yaml"
	MODE_ENV              = "MODE_ENV"
)

const (
	TokenTime = 12
)
const (
	SUCCESS = "success"
	FAILED  = "failed"
)

const (
	ERRORPWD        = "账号或密码错误"
	ERRORCODE       = "验证码错误"
	ERROT_SAME_TEL  = "新手机号与旧手机号相同"
	ERRORCONFIG     = "配置文件读取错误,请检查文件路径:"
	ACCOUNT_EXIST   = "账号已存在"
	ERROR_SERVER    = "服务器错误"
	ERROR_STRUCT    = "结构体错误"
	WARNING_WAITING = "稍等重试"

	ERROR_DELETE                = "删除错误"
	ERROR_UPDATE                = "更新异常"
	ERROR_CREATE_ARTIST_INVALID = "创建画家参数错误"
	CREATE_SUCCESS              = "创建成功"
	CREATE_ERROR                = "创建失败"
	UPDATE_SUCCESS              = "更新成功"
	ERROR_UID                   = "uid创建错误"
	ERROR_CREATE_PROFILE_DAO    = "创建画家信息表错误"
	ERROR_CREATE_EXT_DATA       = "创建画家扩充数据错误"
	ERROR_ARTIST_NAME_EMPTY     = "画家名字为空"
	ERROR_CAA_NAME_NOT_EMPTY    = "证书和名字都不能为空"
	ERROR_CAA_NUM_EMPTY         = "证书编号为空"
	ERROR_CAA_NUM_INVALID       = "证书不匹配"
	ERROR_CAA_NO_DATA           = "证书未查询到数据"
	ERROR_ALREADY_AUTH          = "此身份证已实名认证"
	ERROR_MARSHAL               = "数据序列化错误"
	ERROR_UNMARSHAL             = "数据反序列化错误"

	ERROR_AFFECT_ROWS_ZERO = "影响行为0"
	ERROR_AFFECT_ROWS      = "影响行不一致"
	ERROR_SELECT           = "查询异常"
	SAVE_ERROR             = "数据库保存或者更新数据错误"

	UPDATE_FAILED              = "更新失败"
	ERROR_UPDATE_MEAID_INVALID = "更新图像参数不合法"
	ERROR_Index_INVALID        = "更新指数参数不合法"
	ERROR_UPDATE_MEDIA_DAO     = "更新图像错误"
	ARTIST_NOT_EXISTS          = "画家不存在"
	ERROR_DATA_NOT_EXISTS      = "数据不存在"
	ERROR_UPDATE_ARTIST        = "数据不存在"
	ARTWORK_CONTRACT_EXISTS    = "存在画作合同已经存在"
	ERROR_INVALID_CARDID       = "身份证号不合法"
	INVITE_CODE_INVALID        = "邀请码无效"
	ERROR_ISLOCK               = "用户已被锁定"

	ERROR_UPDATE_HONOR_INVALID = "更新荣誉参数不合法"
	ERROR_HONOR_TYPE           = "荣誉类型不合法"
	ERROR_HONOR_CREATE         = "荣誉信息创建错误"

	ERROR_DEL_ARTIST_INVALID = "删除画家参数错误"
	ERROR_DEL_ARTIST_DAO     = "删除画家DAO错误"
	ERROR_DEL_ARTIST_FAILED  = "删除画家失败"
	DEL_SUCCESS              = "删除成功"

	ERROR_BATCH_INSERT   = "批量插入失败"
	CREATE_BATCH_SUCCESS = "批量插入成功"
)
