| | |
| | | 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.ExpireSiteSearchVO; |
| | | import com.dsh.guns.modular.system.model.SiteSearchVO; |
| | | import com.dsh.guns.modular.system.model.TSite; |
| | | 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 org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | @FeignClient(value = "mb-cloud-other") |
| | | public interface SiteClient { |
| | | |
| | | |
| | | /** |
| | | * 获取所有场地 |
| | | */ |
| | | @RequestMapping("/base/site/getList") |
| | | List<Site> getList(); |
| | | /** |
| | | * 获取场地预约记录 |
| | | */ |
| | | @RequestMapping("/base/site/listAll") |
| | | List<SiteBooking> listAll(@RequestBody SiteBookingQuery query); |
| | | /** |
| | | * 上/下架、删除常见问题 type=1为上架 2为下架 3为删除 |
| | | */ |
| | |
| | | * @return |
| | | */ |
| | | @RequestMapping("/base/site/addSite") |
| | | Object addSite(@RequestBody Site site); |
| | | Integer addSite(@RequestBody Site site); |
| | | /** |
| | | * 添加场地管理 自定义id |
| | | * |
| | | * @return |
| | | */ |
| | | @RequestMapping("/base/site/addSite1") |
| | | Integer addSite1(@RequestBody Site site); |
| | | @RequestMapping("/base/site/listById") |
| | | Site listById(@RequestParam("id") Integer id); |
| | | @RequestMapping("/base/site/listBooks") |
| | | List<SiteBooking> listBooks(@RequestParam("id") Integer id); |
| | | @RequestMapping("/base/site/addSiteBooking") |
| | | |
| | | |
| | | void addSiteBooking(@RequestBody SiteBooking siteBooking); |
| | | } |