| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- package com.zsElectric.boot.business.controller;
- import com.zsElectric.boot.business.model.vo.PartyStationInfoVO;
- import com.zsElectric.boot.business.service.PolicyFeeService;
- import com.zsElectric.boot.business.service.ThirdPartyChargingService;
- import com.zsElectric.boot.business.service.ThirdPartyInfoService;
- import com.zsElectric.boot.core.web.Result;
- import io.swagger.v3.oas.annotations.Operation;
- import io.swagger.v3.oas.annotations.tags.Tag;
- import lombok.RequiredArgsConstructor;
- import org.springframework.web.bind.annotation.PostMapping;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- import java.util.List;
- /**
- * 策略费用控制器
- *
- * @author system
- * @since 2025-12-15
- */
- @Tag(name = "策略费用管理接口")
- @RestController
- @RequestMapping("/api/v1/policy-fee")
- @RequiredArgsConstructor
- public class PolicyFeeController {
- private final PolicyFeeService policyFeeService;
- private final ThirdPartyChargingService chargingService;
- private final ThirdPartyInfoService thirdPartyInfoService;
- /**
- * 获取充电桩信息集合
- *
- */
- @Operation(summary = "获取充电桩信息集合(下拉使用)")
- @PostMapping("/getPartyStationInfo")
- public Result<List<PartyStationInfoVO>> getPartyStationInfo(){
- return Result.success(chargingService.getPartyStationInfo());
- }
- /**
- * 获取渠道方集合
- * */
- @Operation(summary = "获取渠道方集合(下拉使用)")
- @PostMapping("/getPartyStationInfoList")
- public Result<List<PartyStationInfoVO>> getPartyStationInfoList(){
- return Result.success(thirdPartyInfoService.getPartyStationInfoList());
- }
- }
|