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);
|
}
|