package com.ruoyi.chargingPile.api.feignClient; import com.ruoyi.chargingPile.api.factory.PartnerFallbackFactory; import com.ruoyi.chargingPile.api.model.Partner; import com.ruoyi.common.core.constant.ServiceNameConstants; import com.ruoyi.common.core.domain.R; import com.ruoyi.common.core.web.domain.AjaxResult; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestParam; import java.util.List; import java.util.Set; /** * @author zhibing.pu * @Date 2024/9/30 9:36 */ @FeignClient(contextId = "PartnerClient", value = ServiceNameConstants.CHARGINGPILE_SERVICE, fallbackFactory = PartnerFallbackFactory.class) public interface PartnerClient { /** * 根据id获取合作商信息 * @param id * @return */ @PostMapping("/partner/getPartnerById/{id}") R getPartnerById(@PathVariable("id") Integer id); /** * 获取合作商授权的站点数据 * @param partnerId * @param siteMenu * @return */ @PostMapping("/partner/authSite/{partnerId}") R> authSite(@PathVariable("partnerId") Integer partnerId, @RequestParam("siteMenu") String siteMenu); /** * 判断合作商权限 * @param partnerId * @param siteId * @param siteMenu * @return */ @PostMapping("/partner/authMenu/{partnerId}") Boolean authMenu(@PathVariable("partnerId") Integer partnerId, @RequestParam("siteId") Integer siteId, @RequestParam("siteMenu") String siteMenu); @PostMapping("/partner/getChargingBillMenu/{partnerId}/{siteId}") R> getChargingBillMenu(@PathVariable("partnerId")Integer partnerId,@PathVariable("siteId") Integer siteId); @PostMapping("/partner/getChargingOrderMenu/{partnerId}/{siteId}") R> getChargingOrderMenu(@PathVariable("partnerId")Integer partnerId,@PathVariable("siteId") Integer siteId); @PostMapping("/partner/getChargingListMenu/{partnerId}/{siteId}") R> getChargingListMenu(@PathVariable("partnerId")Integer partnerId, @PathVariable("siteId") Integer siteId); @PostMapping("/partner/getSettlementListMenu/{partnerId}/{siteId}") R> getSettlementListMenu(@PathVariable("partnerId")Integer partnerId, @PathVariable("siteId") Integer siteId); @PostMapping("/partner/getAccountMenu/{partnerId}/{siteId}") R> getAccountMenu(@PathVariable("partnerId")Integer partnerId, @PathVariable("siteId") Integer siteId); @PostMapping("/partner/managePageListMenu/{partnerId}/{siteId}") R> managePageListMenu(@PathVariable("partnerId")Integer partnerId,@PathVariable("siteId") Integer siteId); @PostMapping("/partner/parkingRecordListMenu/{partnerId}/{siteId}") R> parkingRecordListMenu(@PathVariable("partnerId")Integer partnerId,@PathVariable("siteId") Integer siteId); @PostMapping("/partner/watchChargingOrder/{partnerId}/{siteId}") R> watchChargingOrder(@PathVariable("partnerId")Integer partnerId,@PathVariable("siteId") Integer siteId); @PostMapping("/partner/chargeEvaluation/{partnerId}/{siteId}") R> chargeEvaluation(@PathVariable("partnerId")Integer partnerId,@PathVariable("siteId") Integer siteId); }