66 lines
1.8 KiB
TypeScript
66 lines
1.8 KiB
TypeScript
/**响应-code加密数据 */
|
|
export const RESULT_CODE_ENCRYPT = 200999;
|
|
|
|
/**响应-msg加密数据 */
|
|
export const RESULT_MSG_ENCRYPT: Record<string, string> = {
|
|
zh_CN: '加密!',
|
|
en_US: 'Encrypt!',
|
|
};
|
|
|
|
/**响应-code正常成功 */
|
|
export const RESULT_CODE_SUCCESS = 200001;
|
|
|
|
/**响应-msg正常成功 */
|
|
export const RESULT_MSG_SUCCESS: Record<string, string> = {
|
|
zh_CN: '成功!',
|
|
en_US: 'Success!',
|
|
};
|
|
|
|
/**响应-code错误失败 */
|
|
export const RESULT_CODE_ERROR = 400001;
|
|
|
|
/**响应-code身份认证失败或者过期 */
|
|
export const RESULT_CODE_AUTH = 401001;
|
|
|
|
/**响应-code无效身份信息 */
|
|
export const RESULT_CODE_AUTH_INVALID = 401002;
|
|
|
|
/**响应-code令牌字符为空 */
|
|
export const RESULT_CODE_AUTH_NOTOKEN = 401003;
|
|
|
|
/**响应-code设备指纹信息不匹配 */
|
|
export const RESULT_CODE_AUTH_DEVICE = 401004;
|
|
|
|
/**响应-code错误异常 */
|
|
export const RESULT_CODE_EXCEPTION = 500001;
|
|
|
|
/**响应-服务器连接出错 */
|
|
export const RESULT_MSG_SERVER_ERROR: Record<string, string> = {
|
|
zh_CN: '服务器连接出错!',
|
|
en_US: 'Server Connection Error!',
|
|
};
|
|
|
|
/**响应-msg错误失败 */
|
|
export const RESULT_MSG_ERROR: Record<string, string> = {
|
|
zh_CN: '错误!',
|
|
en_US: 'Error!',
|
|
};
|
|
|
|
/**响应-网络连接超时 */
|
|
export const RESULT_MSG_TIMEOUT: Record<string, string> = {
|
|
zh_CN: '网络连接超时!',
|
|
en_US: 'Network Connection Timeout!',
|
|
};
|
|
|
|
/**响应-未知响应数据类型 */
|
|
export const RESULT_MSG_NOT_TYPE: Record<string, string> = {
|
|
zh_CN: '未知响应数据类型!',
|
|
en_US: 'Unknown Response Data Type!',
|
|
};
|
|
|
|
/**响应-数据正在处理,请勿重复提交 */
|
|
export const RESULT_MSG_URL_RESUBMIT: Record<string, string> = {
|
|
zh_CN: '数据正在处理,请勿重复提交!',
|
|
en_US: 'Data are being processed, please do not resubmit',
|
|
};
|