| | |
| | | |
| | | public static final Integer ERROR = 500; |
| | | // 手机号被冻结 |
| | | public static final Integer ERROR_Login = 501; |
| | | public static final Integer ERROR_Login = 503; |
| | | // 同一年内最多五部手机号登录 |
| | | public static final Integer ERROR_DEVICE = 504; |
| | | // 用户发布数量超限 |
| | | public static final Integer ERROR_ADD = 502; |
| | | // 邀请码无效 |
| | | public static final Integer ERROR_INVITE = 505; |
| | | // 用户不是首次训练 不需要弹出运动风险告知 |
| | | public static final Integer TRAIN = 201; |
| | | |
| | | 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()); |
| | | public static<T> ResultUtil<T> errorLogin(String mag, T obj){ |
| | | return ResultUtil.getResult(ResultUtil.ERROR_Login, mag, obj); |
| | | } |
| | | /** |
| | | * 登录错误信息 当前手机号被冻结 |
| | | * @return |
| | | */ |
| | | public static <T> ResultUtil<T> errorDevice(String mag,T obj){ |
| | | return ResultUtil.getResult(ResultUtil.ERROR_DEVICE, mag, obj); |
| | | } |
| | | public static <T> ResultUtil<T> errorInvite(String mag,T obj){ |
| | | return ResultUtil.getResult(ResultUtil.ERROR_INVITE, mag, obj); |
| | | } |
| | | /** |
| | | * 发布错误信息 当前用户发布条数已经超过三条 |
| | |
| | | public static ResultUtil success(){ |
| | | return ResultUtil.getResult(ResultUtil.SUCCESS, "SUCCESS", new Object()); |
| | | } |
| | | public static ResultUtil train(){ |
| | | return ResultUtil.getResult(ResultUtil.TRAIN, "SUCCESS", new Object()); |
| | | } |
| | | |
| | | |
| | | /** |