mitao
2025-04-11 9f40113d2c85a66bb5c20430642d0cf6b97c1e74
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package com.dsh.course.feignClient.other;
 
import com.dsh.course.feignClient.other.model.FrequentlyAskedQuestions;
import com.dsh.course.feignClient.other.model.HonorRules;
import com.dsh.guns.modular.system.model.QuestionChangeStateVO;
import com.dsh.guns.modular.system.model.QuestionSearchVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
 
import java.util.List;
import java.util.Map;
 
/**
 * 常见问题
 */
@FeignClient(value = "mb-cloud-other")
public interface QuestionClient {
 
    /**
     * 获取所有常见问题
     * @return
     */
    @RequestMapping("/base/question/listAll")
    List<FrequentlyAskedQuestions> listAll(@RequestBody QuestionSearchVO vo);
 
    /**
     * 添加常见问题
     */
    @RequestMapping("/base/question/addQuestion")
    Object addQuestion(@RequestBody FrequentlyAskedQuestions frequentlyAskedQuestions);
 
    /**
     * 上/下架、删除常见问题 type=1为上架 2为下架 3为删除
     */
    @RequestMapping("/base/question/changeState")
    Object changeState(@RequestBody QuestionChangeStateVO vo);
 
    /**
     * 查看详情
     */
    @RequestMapping("/base/question/getInfo")
    public FrequentlyAskedQuestions getInfo(@RequestBody Integer id);
 
    /**
     * 修改常见问题
     */
    @RequestMapping("/base/question/editQuestion")
    public Object editQuestion(@RequestBody FrequentlyAskedQuestions frequentlyAskedQuestions);
}