个人桩启动充电

This commit is contained in:
Guoqs
2024-06-21 11:16:53 +08:00
parent 58710aedf3
commit 1bd051e73f
8 changed files with 152 additions and 207 deletions

View File

@@ -2,6 +2,7 @@ package com.jsowell.api.uniapp;
import com.alibaba.fastjson2.JSON;
import com.google.common.collect.ImmutableMap;
import com.jsowell.common.UserAgentUtils;
import com.jsowell.common.annotation.Anonymous;
import com.jsowell.common.core.controller.BaseController;
import com.jsowell.common.core.page.PageResponse;
@@ -256,6 +257,7 @@ public class PersonPileController extends BaseController {
try {
String memberId = getMemberIdByAuthorization(request);
dto.setMemberId(memberId);
dto.setRequestSource(UserAgentUtils.determineRequestSource(request));
String orderCode = pileService.startPersonalPileCharging(dto);
response = new RestApiResponse<>(ImmutableMap.of("orderCode", orderCode));
} catch (BusinessException e) {