WelcomeStudentControllerAPI.java 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. package com.template.api;
  2. import com.template.model.pojo.WelcomeStudent;
  3. import com.template.model.request.InfoCollectionRequest;
  4. import com.template.model.request.InsertStudentRequest;
  5. import com.template.model.request.RegisterRequest;
  6. import com.template.model.request.updateStudentRequest;
  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/welcomeStudent")
  18. @Api(tags = {"WelcomeStudentController"}, value = "学生信息管理")
  19. public interface WelcomeStudentControllerAPI {
  20. @PostMapping(value = "/insertStudentInfo")
  21. @ApiOperation(value = "添加学生信息", notes = "添加学生信息", httpMethod = "POST")
  22. CommonResult insertStudentInfo(@Validated @RequestBody InsertStudentRequest isr, BindingResult bindingResult) throws Exception;
  23. @PostMapping(value = "/updateStudentInfo")
  24. @ApiOperation(value = "编辑学生信息", notes = "编辑学生信息", httpMethod = "POST")
  25. CommonResult updateStudentInfo(@Validated @RequestBody updateStudentRequest usr, BindingResult bindingResult) throws Exception;
  26. @GetMapping(value = "/queryPageStudents")
  27. @ApiOperation(value = "学生信息分页数据", notes = "学生信息分页数据", httpMethod = "GET")
  28. CommonResult queryPageStudents(@RequestAttribute String userId,@RequestParam int currentPage, @RequestParam int pageCount, Integer collegeId, Integer majorId, Integer classstrId, String trafficMethod, String name,String fillStatus,Integer isRegistered,Integer isPay);
  29. @GetMapping(value = "/queryStudentDetail")
  30. @ApiOperation(value = "学生信息明细数据", notes = "学生信息明细数据", httpMethod = "GET")
  31. CommonResult queryStudentDetail(@RequestParam int id);
  32. @PostMapping(value = "/infoCollection")
  33. @ApiOperation(value = "学生信息采集", notes = "学生信息采集", httpMethod = "POST")
  34. CommonResult infoCollection(@Validated @RequestBody InfoCollectionRequest icr, BindingResult bindingResult) throws Exception;
  35. @GetMapping(value = "/deleteStudentInfo")
  36. @ApiOperation(value = "删除学生信息", notes = "删除学生信息", httpMethod = "GET")
  37. CommonResult deleteStudentInfo(@RequestParam int id) throws Exception;
  38. @PostMapping(value = "/importStudentExcel")
  39. @ApiOperation(value = "导入学生基本信息数据", notes = "导入学生基本信息数据", httpMethod = "POST")
  40. CommonResult importStudentExcel(@RequestParam("file") MultipartFile file) throws IOException, ParseException;
  41. @GetMapping(value = "/downloadStudentExcel")
  42. @ApiOperation(value = "学生信息导出模板", notes = "学生信息导出模板", httpMethod = "GET")
  43. CommonResult downloadStudentExcel();
  44. @GetMapping(value = "welcomeStudentExport")
  45. @ApiOperation(value = "导出学生信息数据", notes = "导出学生信息数据", httpMethod = "GET")
  46. void welcomeStudentExport(@RequestAttribute String userId,HttpServletResponse response, Integer collegeId, Integer majorId, Integer classstrId, String trafficMethod, String name,String fillStatus,Integer isRegistered,Integer isPay);
  47. @GetMapping(value = "/studentOverview")
  48. @ApiOperation(value = "学生总览", notes = "学生总览", httpMethod = "GET")
  49. CommonResult studentOverview();
  50. @GetMapping(value = "/studentRegister")
  51. @ApiOperation(value = "新生报到情况", notes = "新生报到情况", httpMethod = "GET")
  52. CommonResult studentRegister(Integer collegeId);
  53. @GetMapping(value = "/studentTraffic")
  54. @ApiOperation(value = "学生交通方式", notes = "学生交通方式", httpMethod = "GET")
  55. CommonResult studentTraffic();
  56. @GetMapping(value = "/studentSexRatio")
  57. @ApiOperation(value = "学生性别比例", notes = "学生性别比例", httpMethod = "GET")
  58. CommonResult studentSexRatio();
  59. @GetMapping(value = "/studentStay")
  60. @ApiOperation(value = "学生住宿情况", notes = "学生住宿情况", httpMethod = "GET")
  61. CommonResult studentStay();
  62. @GetMapping(value = "/queryStudentByToken")
  63. @ApiOperation(value = "学生住宿情况", notes = "学生住宿情况", httpMethod = "GET")
  64. CommonResult queryStudentByToken(@RequestAttribute String userId);
  65. @GetMapping(value = "/queryStudentInfo")
  66. @ApiOperation(value = "查询学生信息", notes = "查询学生信息", httpMethod = "GET")
  67. CommonResult queryStudentInfo(@RequestParam String admissNum);
  68. @PostMapping(value = "/isRegistered")
  69. @ApiOperation(value = "是否已报到", notes = "是否已报到", httpMethod = "POST")
  70. CommonResult isRegistered(@RequestBody WelcomeStudent welcomeStudent);
  71. @GetMapping(value = "/levelRegister")
  72. @ApiOperation(value = "层次报到情况", notes = "层次报到情况", httpMethod = "GET")
  73. CommonResult levelRegister();
  74. }