PolicyFeeController.java 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package com.zsElectric.boot.business.controller;
  2. import com.zsElectric.boot.business.model.vo.PartyStationInfoVO;
  3. import com.zsElectric.boot.business.service.PolicyFeeService;
  4. import com.zsElectric.boot.business.service.ThirdPartyChargingService;
  5. import com.zsElectric.boot.business.service.ThirdPartyInfoService;
  6. import com.zsElectric.boot.core.web.Result;
  7. import io.swagger.v3.oas.annotations.Operation;
  8. import io.swagger.v3.oas.annotations.tags.Tag;
  9. import lombok.RequiredArgsConstructor;
  10. import org.springframework.web.bind.annotation.PostMapping;
  11. import org.springframework.web.bind.annotation.RequestMapping;
  12. import org.springframework.web.bind.annotation.RestController;
  13. import java.util.List;
  14. /**
  15. * 策略费用控制器
  16. *
  17. * @author system
  18. * @since 2025-12-15
  19. */
  20. @Tag(name = "策略费用管理接口")
  21. @RestController
  22. @RequestMapping("/api/v1/policy-fee")
  23. @RequiredArgsConstructor
  24. public class PolicyFeeController {
  25. private final PolicyFeeService policyFeeService;
  26. private final ThirdPartyChargingService chargingService;
  27. private final ThirdPartyInfoService thirdPartyInfoService;
  28. /**
  29. * 获取充电桩信息集合
  30. *
  31. */
  32. @Operation(summary = "获取充电桩信息集合(下拉使用)")
  33. @PostMapping("/getPartyStationInfo")
  34. public Result<List<PartyStationInfoVO>> getPartyStationInfo(){
  35. return Result.success(chargingService.getPartyStationInfo());
  36. }
  37. /**
  38. * 获取渠道方集合
  39. * */
  40. @Operation(summary = "获取渠道方集合(下拉使用)")
  41. @PostMapping("/getPartyStationInfoList")
  42. public Result<List<PartyStationInfoVO>> getPartyStationInfoList(){
  43. return Result.success(thirdPartyInfoService.getPartyStationInfoList());
  44. }
  45. }