package e

const (
	OK                = 0
	SUCCESS           = 200
	NOT_OPEN          = 300
	INVALID_PARAMS    = 400
	INVALID_SYSTEM    = 401
	ERROR             = 500
	DB_ERROR          = 600
	NO_RECORD         = 601
	NO_PERMISSION     = 700
	CALL_REMOTE_ERROR = 800
	PONG              = 999

	// 用户登录 注册相关
	ERROR_USER_LOGIN_FAIL    = 10001
	ERROR_USER_PHONE_FAIL    = 10002
	ERROR_USER_CHPWD_FAIL    = 10003
	ERROR_USER_PWD_FAIL      = 10004
	ERROR_USER_CREATE_FAIL   = 10005
	ERROR_USER_NOT_EXIST     = 10006
	ERROR_USER_FIXED_FAIL    = 10007
	ERROR_USER_REGISTED      = 10008
	ERROR_USER_FIXPASSWORD   = 10009
	ERROR_USER_PHONE_NUM     = 10010
	ERROR_USER_NAME_ILLEGAL  = 10011
	ERROR_USER_FRIEND_EXIST  = 10012
	ERROR_USER_FRIEND_MAX    = 10013
	ERROR_USER_PHONE_EXIST   = 10014
	ERROR_USER_ASSETS_MARKED = 10015
	ERROR_USER_PROJECT_MAX   = 10016
	ERROR_USER_MISS_IMAGE    = 10017
	ERROR_VISITOR_MISS_NAME  = 10018

	ERROR_SMS_SEND_FAIL    = 10101
	ERROR_SMS_CODE_FAIL    = 10102
	ERROR_SMS_CODE_COOLING = 10103

	ERROR_PROJECT_NOT_EXIST    = 20001
	ERROR_PROJECT_DEL_FAIL     = 20002
	ERROR_PROJECT_UPDATE_FAIL  = 20003
	ERROR_PROJECT_NOT_ACTIVITY = 20004
	ERROR_PROJECT_TIME_ERROR   = 20005
	ERROR_PROJECT_NO_PUBLISH   = 20006
	ERROR_PUBLISH_NO_MAPID     = 20007

	ERROR_CREATE_REPORT_FAIL = 30001

	ERROR_ACTIVITY_NOT_OPEN  = 40001
	ERROR_ACTIVITY_IS_FINISH = 40002
	ERROR_ACTIVITY_NO_REWARD = 40003
	ERROR_ACTIVITY_NOT_EXIST = 40004
	ERROR_ACTIVITY_DEL_FAIL  = 40005

	ERROR_DRAW_NO_BONUS    = 50001
	ERROR_DRAW_NO_TIMES    = 50002
	ERROR_DRAW_FAIL        = 50003
	ERROR_DRAW_DONE        = 50004
	ERROR_DRAW_NO_MORE     = 50005
	ERROR_DRAW_NEED_UPLOAD = 50006
	ERROR_DRAW_CONFIG      = 50007

	ERROR_AIUNKOWN_CREATE = 60001
	ERROR_AIUNKOWN_DELETE = 60002

	ERROR_APPEARANCE_NOT_EXIST = 70001

	ERROR_AI_NO_TIMES = 80001

	ERROR_AUTH_CHECK_TOKEN_FAIL    = 120001
	ERROR_AUTH_CHECK_TOKEN_TIMEOUT = 120002
	ERROR_AUTH_TOKEN               = 120003
	ERROR_AUTH                     = 120004

	ERROR_UPLOAD_SAVE_IMAGE_FAIL    = 130001
	ERROR_UPLOAD_CHECK_IMAGE_FAIL   = 130002
	ERROR_UPLOAD_CHECK_IMAGE_FORMAT = 130003
	ERROR_UPLOAD_CHECK_SIZE_OVER    = 130004
	ERROR_UPLOAD_SIGNURL_FAIL       = 130005
)

const (
	USER_ID = 8
)

var GenderType = map[string]int8{
	"":       -1,
	"male":   0,
	"female": 1,
}

var GenderStr = map[int8]string{
	0: "male",
	1: "female",
}

var LocalMimeType = map[string]string{
	"":     "application/octet-stream",
	".wav": "audio/wav",
}
