27 lines
837 B
TypeScript
27 lines
837 B
TypeScript
/**响应-code正常成功 */
|
|
export const RESULT_CODE_SUCCESS = 1;
|
|
|
|
/**响应-msg正常成功 */
|
|
export const RESULT_MSG_SUCCESS = 'success';
|
|
|
|
/**响应-code错误失败 */
|
|
export const RESULT_CODE_ERROR = 0;
|
|
|
|
/**响应-msg错误失败 */
|
|
export const RESULT_MSG_ERROR = 'error';
|
|
|
|
/**响应-网络连接超时 */
|
|
export const RESULT_MSG_TIMEOUT = 'Network connection timeout!';
|
|
|
|
/**响应-未知响应数据类型 */
|
|
export const RESULT_MSG_NOT_TYPE = 'Unknown response data type!';
|
|
|
|
/**响应-服务器连接出错 */
|
|
export const RESULT_MSG_SERVER_ERROR = 'Server connection error!';
|
|
|
|
/**响应-请求地址未找到 */
|
|
export const RESULT_MSG_URL_NOTFOUND = 'Request address not found!';
|
|
|
|
/**响应-数据正在处理,请勿重复提交 */
|
|
export const RESULT_MSG_URL_RESUBMIT = 'Data is being processed, please do not resubmit!';
|