|
|
@@ -8,34 +8,34 @@ package com.sckw.core.web.constant;
|
|
|
public class HttpStatus {
|
|
|
|
|
|
/**成功状态码*/
|
|
|
- public static final int SUCCESS_CODE = 60200;
|
|
|
+ public static final int SUCCESS_CODE = 200;
|
|
|
/**成功提示信息*/
|
|
|
public static final String SUCCESS_MESSAGE = "success";
|
|
|
|
|
|
/**未登录状态码*/
|
|
|
- public static final int UN_LOGIN_CODE = 60300;
|
|
|
+ public static final int UN_LOGIN_CODE = 300;
|
|
|
/**未登录提示信息*/
|
|
|
public static final String UN_LOGIN_MESSAGE = "您尚未登录,请先登录!";
|
|
|
|
|
|
/**访问权限状态码*/
|
|
|
- public static final int AUTHORITY_NO_CODE = 60403;
|
|
|
+ public static final int AUTHORITY_NO_CODE = 403;
|
|
|
public static final String ACCESS_FIAL = "暂无该功能权限!";
|
|
|
|
|
|
/**全局异常状态码*/
|
|
|
- public static final int GLOBAL_EXCEPTION_CODE = 60500;
|
|
|
+ public static final int GLOBAL_EXCEPTION_CODE = 500;
|
|
|
/**
|
|
|
* 完结贸易订单失败异常码
|
|
|
*/
|
|
|
- public static final int COMPLETE_TORDER_FAIL_CODE = 60666;
|
|
|
+ public static final int COMPLETE_TORDER_FAIL_CODE = 666;
|
|
|
/**
|
|
|
* 商品上架失败异常码
|
|
|
*/
|
|
|
- public static final int GOODS_PUT_ON_SHELVES_FAIL_CODE = 60667;
|
|
|
+ public static final int GOODS_PUT_ON_SHELVES_FAIL_CODE = 667;
|
|
|
/**全局异常提示信息*/
|
|
|
public static final String GLOBAL_EXCEPTION_MESSAGE = "攻城狮正在拼命优化,请您稍候再试!";
|
|
|
|
|
|
/**参数缺失状态码*/
|
|
|
- public static final int PARAMETERS_MISSING_CODE = 60600;
|
|
|
+ public static final int PARAMETERS_MISSING_CODE = 600;
|
|
|
public static final String ID_MISSING = "id不能为空!";
|
|
|
public static final String ACCOUNT_MISSING = "用户账号必填!";
|
|
|
public static final String ACCOUNT_FREEZE = "用户账号不能重复冻结!";
|
|
|
@@ -54,19 +54,19 @@ public class HttpStatus {
|
|
|
|
|
|
|
|
|
|
|
|
- public static final int CODE_60604 = 60604;
|
|
|
- public static final int CODE_60605 = 60605;
|
|
|
- public static final int CODE_60606 = 60606;
|
|
|
- public static final int CODE_60607 = 60607;
|
|
|
- public static final int CODE_60608 = 60608;
|
|
|
- public static final int CODE_60609 = 60609;
|
|
|
+ public static final int CODE_60604 = 604;
|
|
|
+ public static final int CODE_60605 = 605;
|
|
|
+ public static final int CODE_60606 = 606;
|
|
|
+ public static final int CODE_60607 = 607;
|
|
|
+ public static final int CODE_60608 = 608;
|
|
|
+ public static final int CODE_60609 = 609;
|
|
|
/**sentinel异常code定义*/
|
|
|
- public static final int CODE_60701 = 60701;
|
|
|
- public static final int CODE_60801 = 60801;
|
|
|
- public static final int CODE_60901 = 60901;
|
|
|
- public static final int CODE_601001 = 601001;
|
|
|
- public static final int CODE_601101 = 601101;
|
|
|
- public static final int CODE_601201 = 601201;
|
|
|
+ public static final int CODE_60701 = 701;
|
|
|
+ public static final int CODE_60801 = 801;
|
|
|
+ public static final int CODE_60901 = 901;
|
|
|
+ public static final int CODE_601001 = 1001;
|
|
|
+ public static final int CODE_601101 = 1101;
|
|
|
+ public static final int CODE_601201 = 1201;
|
|
|
|
|
|
public static final String FLOW_EXCEPTION_ERROR_MESSAGE = "您的访问过于频繁,请稍后重试";
|
|
|
public static final String DEGRADE_EXCEPTION_ERROR_MESSAGE = "调用服务响应异常,请稍后重试";
|