Andru
2024-01-05 d1082094bd984eed9559589196a8bfab19924555
提交 | 用户 | age
ddd881 1 package com.hz.his.feign.service.platform;
F 2
3 import com.hx.resultTool.Result;
4 import com.hz.his.dto.card.CardQueryDto;
5 import com.hz.his.dto.promotion.PromotionQueryDto;
6 import org.springframework.cloud.openfeign.FeignClient;
7 import org.springframework.web.bind.annotation.PostMapping;
8 import org.springframework.web.bind.annotation.RequestBody;
9
10 /**
11  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
12  */
39a067 13 @FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-promotion")
ddd881 14 public interface SPhipPromotionService {
F 15
16     /**
17      * 开放平台-促销列表
18      */
19     @PostMapping(value = "/promotion/list")
20     Result promotionList(@RequestBody PromotionQueryDto promotionQueryDto);
21
22     /**
23      * 开放平台-促销详情
24      */
25     @PostMapping(value = "/promotion/detail")
26     Result promotionDetail(@RequestBody PromotionQueryDto promotionQueryDto);
27
28 }