| | |
| | | public static final Integer RUNTIME_ERROR = 400; |
| | | |
| | | public static final Integer ERROR = 500; |
| | | // 手机号被冻结 |
| | | public static final Integer ERROR_Login = 501; |
| | | // 用户发布数量超限 |
| | | public static final Integer ERROR_ADD = 502; |
| | | |
| | | public static final Integer TOKEN_ERROR = 600; |
| | | |
| | |
| | | public static ResultUtil error(String mag){ |
| | | return ResultUtil.getResult(ResultUtil.ERROR, mag, new Object()); |
| | | } |
| | | /** |
| | | * 登录错误信息 当前手机号被冻结 |
| | | * @return |
| | | */ |
| | | public static ResultUtil errorLogin(String mag){ |
| | | return ResultUtil.getResult(ResultUtil.ERROR_Login, mag, new Object()); |
| | | } |
| | | /** |
| | | * 发布错误信息 当前用户发布条数已经超过三条 |
| | | * @return |
| | | */ |
| | | public static ResultUtil errorAdd(String mag){ |
| | | return ResultUtil.getResult(ResultUtil.ERROR_ADD, mag, new Object()); |
| | | } |
| | | |
| | | /** |
| | | * 错误信息 |