44323
2023-09-26 6676f28a5a6ca65015a2b2c26e804fa998d625c8
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
50
51
package com.dsh.course.feignClient.other;
 
import com.dsh.course.feignClient.other.model.Site;
import com.dsh.course.feignClient.other.model.SiteChangeStateVO;
import com.dsh.course.feignClient.other.model.TSiteDTO;
import com.dsh.guns.modular.system.model.*;
import com.dsh.guns.modular.system.util.ResultUtil;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
 
import java.util.List;
 
/**
 * 常见问题
 */
@FeignClient(value = "mb-cloud-other")
public interface SiteClient {
 
    /**
     * 获取场地预约记录
     */
    @RequestMapping("/base/site/listAll")
    List<SiteBooking> listAll(@RequestBody SiteBookingQuery query);
    /**
     * 上/下架、删除常见问题 type=1为上架 2为下架 3为删除
     */
    @RequestMapping("/base/site/changeState")
    Object changeState(@RequestBody SiteChangeStateVO vo);
    /**
     * 获取所有场地
     * @return
     */
    @RequestMapping("/base/site/list")
    List<TSiteDTO> listAll(@RequestBody SiteSearchVO vo);
    /**
     * 获取场地有效期在两个月内的场地列表
     * @return
     */
    @RequestMapping("/base/site/listExipre")
    List<TSiteDTO> listExipre(@RequestBody ExpireSiteSearchVO vo);
 
    /**
     * 添加场地管理
     * @return
     */
    @RequestMapping("/base/site/addSite")
    Object addSite(@RequestBody Site site);
 
 
}