WelcomeBedControllerAPI.java 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. package com.template.api;
  2. import com.template.model.pojo.WelcomeBed;
  3. import com.template.model.pojo.WelcomeStudentDormitory;
  4. import com.template.model.request.InfoCollectionRequest;
  5. import com.template.model.request.InsertWelcomeBedRequest;
  6. import com.template.model.request.UpdateWelcomeBedRequest;
  7. import com.template.model.result.CommonResult;
  8. import io.swagger.annotations.Api;
  9. import io.swagger.annotations.ApiOperation;
  10. import org.springframework.validation.BindingResult;
  11. import org.springframework.validation.annotation.Validated;
  12. import org.springframework.web.bind.annotation.*;
  13. import org.springframework.web.multipart.MultipartFile;
  14. import javax.servlet.http.HttpServletResponse;
  15. import java.io.IOException;
  16. import java.text.ParseException;
  17. @RequestMapping("/api/welcomeBed")
  18. @Api(tags = {"WelcomeBedController"}, value = "床位信息管理")
  19. public interface WelcomeBedControllerAPI {
  20. @PostMapping(value = "/insertBedInfo")
  21. @ApiOperation(value = "添加床位信息", notes = "添加床位信息", httpMethod = "POST")
  22. CommonResult insertBedInfo(@Validated @RequestBody InsertWelcomeBedRequest iwbr, BindingResult bindingResult) throws Exception;
  23. @PostMapping(value = "/updateBedInfo")
  24. @ApiOperation(value = "编辑床位信息", notes = "编辑床位信息", httpMethod = "POST")
  25. CommonResult updateBedInfo(@Validated @RequestBody UpdateWelcomeBedRequest uwbr, BindingResult bindingResult) throws Exception;
  26. @GetMapping(value = "/queryPageBeds")
  27. @ApiOperation(value = "床位信息分页数据", notes = "床位信息分页数据", httpMethod = "GET")
  28. CommonResult queryPageBeds(@RequestParam int currentPage, @RequestParam int pageCount, Integer schoolId,Integer buildId,Integer dormitoryId,String sex, Integer isCheck,Integer collegeId, Integer majorId, Integer classstrId);
  29. @GetMapping(value = "/deleteBedInfo")
  30. @ApiOperation(value = "删除床位信息", notes = "删除床位信息", httpMethod = "GET")
  31. CommonResult deleteBedInfo(@RequestParam int id) throws Exception;
  32. @PostMapping(value = "/importBedExcel")
  33. @ApiOperation(value = "导入床位基本信息数据", notes = "导入床位基本信息数据", httpMethod = "POST")
  34. CommonResult importBedExcel(@RequestParam("file") MultipartFile file) throws IOException, ParseException;
  35. @GetMapping(value = "/downloadBedExcel")
  36. @ApiOperation(value = "床位信息导出模板", notes = "床位信息导出模板", httpMethod = "GET")
  37. CommonResult downloadBedExcel();
  38. @GetMapping(value = "welcomeBedExport")
  39. @ApiOperation(value = "导出床位信息数据", notes = "导出床位信息数据", httpMethod = "GET")
  40. void welcomeBedExport(HttpServletResponse response, Integer schoolId,Integer buildId,Integer dormitoryId,String sex, Integer isCheck,Integer collegeId, Integer majorId, Integer classstrId);
  41. @PostMapping(value = "/submit")
  42. @ApiOperation(value = "提交床位信息", notes = "提交床位信息", httpMethod = "POST")
  43. CommonResult submit(@RequestBody WelcomeBed welcomeBed);
  44. @GetMapping(value = "/bedDetails")
  45. @ApiOperation(value = "宿舍详情", notes = "宿舍详情", httpMethod = "GET")
  46. CommonResult bedDetails(Integer schoolId,Integer buildId,Integer dormitoryId,String studentCard);
  47. @GetMapping(value = "/queryBedDatas")
  48. @ApiOperation(value = "获取床位下拉数据", notes = "获取床位下拉数据", httpMethod = "GET")
  49. CommonResult queryBedDatas(@RequestParam int dormitoryId);
  50. @GetMapping(value = "/isCheck")
  51. @ApiOperation(value = "判断是否入住", notes = "判断是否入住", httpMethod = "GET")
  52. CommonResult isCheck(@RequestAttribute String studentCard);
  53. }