add 运营端小程序新增查询枪口详情接口

This commit is contained in:
Lemon
2026-01-19 16:55:17 +08:00
parent e081920d56
commit 284bb4337a
5 changed files with 107 additions and 1 deletions

View File

@@ -128,4 +128,21 @@ public class BusinessConnectorInfoController extends BaseController {
}
/**
* 获取枪口详情
* @param pileConnectorCode
* @return
*/
@GetMapping("/getConnectorDetail/{pileConnectorCode}")
public RestApiResponse<?> getConnectorDetail(@PathVariable("pileConnectorCode") String pileConnectorCode) {
RestApiResponse<?> response = null;
try {
BusinessConnectorInfoVO vo = pileConnectorInfoService.getBusinessPileConnectorDetail(pileConnectorCode);
response = new RestApiResponse<>(ImmutableMap.of("BusinessConnectorDetail", vo.getBusinessConnectorDetail()));
} catch (Exception e) {
logger.error("获取枪口详情 error", e);
}
logger.info("获取枪口详情 pileConnectorCode:{}, result:{}", pileConnectorCode, response);
return response;
}
}