无关风月
2024-07-11 eb6b6dbb35a9f029e0b7d269773685c19fd40976
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.dsh.course.feignClient.other;
 
import com.dsh.course.feignClient.other.model.EditHonorVO;
import com.dsh.course.feignClient.other.model.HonorRules;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
 
import java.util.List;
import java.util.Map;
 
@FeignClient(value = "mb-cloud-other")
public interface HonorClient {
 
    @RequestMapping(value = "/base/honor/list")
    public Map<Integer, List<HonorRules>> getList();
 
    /**
     * 修改荣誉规则 并返回新的荣誉规则列表
     */
    @RequestMapping(value = "/base/honor/edit")
    @ResponseBody
    public Object edit(@RequestBody EditHonorVO vo);
}