package com.hz.his.feign.service.platform; import com.hx.resultTool.Result; import com.hz.his.dto.refund.RefundFundsDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; /** * 这里这个name 需è¦å¡«å†™ 请求的æœåŠ¡æ供者的注册到nacos Server上é¢çš„æœåŠ¡å,path 是请求接å£å‰ç¼€ */ @FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-refund") public interface SPhipRefundService { /** * 用户资金退款 * @param refundFundsDto å‚æ•° * @return 返回 */ @PostMapping("/refund/user/funds") Result refundUserFunds(@RequestBody RefundFundsDto refundFundsDto); /** * ç”¨æˆ·èµ„é‡‘é€€æ¬¾å®¡æ ¸ * @param refundFundsDto å‚æ•° * @return 返回 */ @PostMapping(value = "/refund/user/funds/approve") Result refundUserFundsApprove(@RequestBody RefundFundsDto refundFundsDto); }