mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-07 19:40:07 +08:00
update 预约充电
This commit is contained in:
@@ -87,12 +87,13 @@ public class TempController extends BaseController {
|
||||
try {
|
||||
// 发送预约充电指令
|
||||
pileRemoteService.reservedCharging(command);
|
||||
response = new RestApiResponse<>(ReturnCodeEnum.CODE_SUCCESS);
|
||||
} catch (BusinessException e) {
|
||||
logger.warn("预约充电测试warn", e);
|
||||
response = new RestApiResponse<>(e.getCode(), e.getMessage());
|
||||
} catch (Exception e) {
|
||||
logger.error("预约充电测试error", e);
|
||||
response = new RestApiResponse<>(ReturnCodeEnum.CODE_GET_PILE_DETAIL_ERROR);
|
||||
response = new RestApiResponse<>(ReturnCodeEnum.CODE_FAILED);
|
||||
}
|
||||
|
||||
return response;
|
||||
|
||||
@@ -6,6 +6,8 @@ public enum ReturnCodeEnum {
|
||||
*/
|
||||
CODE_SUCCESS("00100000", "操作成功"),
|
||||
|
||||
CODE_FAILED("00100001", "操作失败"),
|
||||
|
||||
CODE_PERMISSION_DENIED("00100001", "没有操作权限"),
|
||||
|
||||
CODE_TOKEN_ERROR("00100002", "身份验证失败,请重新登录"),
|
||||
|
||||
Reference in New Issue
Block a user