WelcomeStudentControllerAPI.java 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. package com.template.api;
  2. import com.template.model.request.InfoCollectionRequest;
  3. import com.template.model.request.InsertStudentRequest;
  4. import com.template.model.request.RegisterRequest;
  5. import com.template.model.request.updateStudentRequest;
  6. import com.template.model.result.CommonResult;
  7. import io.swagger.annotations.Api;
  8. import io.swagger.annotations.ApiOperation;
  9. import org.springframework.validation.BindingResult;
  10. import org.springframework.validation.annotation.Validated;
  11. import org.springframework.web.bind.annotation.*;
  12. import org.springframework.web.multipart.MultipartFile;
  13. import javax.servlet.http.HttpServletResponse;
  14. import java.io.IOException;
  15. import java.text.ParseException;
  16. @RequestMapping("/api/welcomeStudent")
  17. @Api(tags = {"WelcomeStudentController"}, value = "学生信息管理")
  18. public interface WelcomeStudentControllerAPI {
  19. @PostMapping(value = "/insertStudentInfo")
  20. @ApiOperation(value = "添加学生信息", notes = "添加学生信息", httpMethod = "POST")
  21. CommonResult insertStudentInfo(@Validated @RequestBody InsertStudentRequest isr, BindingResult bindingResult) throws Exception;
  22. @PostMapping(value = "/updateStudentInfo")
  23. @ApiOperation(value = "编辑学生信息", notes = "编辑学生信息", httpMethod = "POST")
  24. CommonResult updateStudentInfo(@Validated @RequestBody updateStudentRequest usr, BindingResult bindingResult) throws Exception;
  25. @GetMapping(value = "/queryPageStudents")
  26. @ApiOperation(value = "学生信息分页数据", notes = "学生信息分页数据", httpMethod = "GET")
  27. CommonResult queryPageStudents(@RequestParam int currentPage, @RequestParam int pageCount, Integer collegeId, Integer majorId, Integer classstrId, String trafficMethod, String name);
  28. @GetMapping(value = "/queryStudentDetail")
  29. @ApiOperation(value = "学生信息明细数据", notes = "学生信息明细数据", httpMethod = "GET")
  30. CommonResult queryStudentDetail(@RequestParam int id);
  31. @PostMapping(value = "/infoCollection")
  32. @ApiOperation(value = "学生信息采集", notes = "学生信息采集", httpMethod = "POST")
  33. CommonResult infoCollection(@Validated @RequestBody InfoCollectionRequest icr, BindingResult bindingResult) throws Exception;
  34. @GetMapping(value = "/deleteStudentInfo")
  35. @ApiOperation(value = "删除学生信息", notes = "删除学生信息", httpMethod = "GET")
  36. CommonResult deleteStudentInfo(@RequestParam int id) throws Exception;
  37. @PostMapping(value = "/importStudentExcel")
  38. @ApiOperation(value = "导入学生基本信息数据", notes = "导入学生基本信息数据", httpMethod = "POST")
  39. CommonResult importStudentExcel(@RequestParam("file") MultipartFile file) throws IOException, ParseException;
  40. @GetMapping(value = "/downloadStudentExcel")
  41. @ApiOperation(value = "学生信息导出模板", notes = "学生信息导出模板", httpMethod = "GET")
  42. CommonResult downloadStudentExcel();
  43. @GetMapping(value = "welcomeStudentExport")
  44. @ApiOperation(value = "导出学生信息数据", notes = "导出学生信息数据", httpMethod = "GET")
  45. void welcomeStudentExport(HttpServletResponse response, Integer collegeId, Integer majorId, Integer classstrId, String trafficMethod, String name);
  46. @GetMapping(value = "/studentOverview")
  47. @ApiOperation(value = "学生总览", notes = "学生总览", httpMethod = "GET")
  48. CommonResult studentOverview();
  49. @GetMapping(value = "/studentRegister")
  50. @ApiOperation(value = "新生报到情况", notes = "新生报到情况", httpMethod = "GET")
  51. CommonResult studentRegister();
  52. @GetMapping(value = "/studentTraffic")
  53. @ApiOperation(value = "学生交通方式", notes = "学生交通方式", httpMethod = "GET")
  54. CommonResult studentTraffic();
  55. @GetMapping(value = "/studentSexRatio")
  56. @ApiOperation(value = "学生性别比例", notes = "学生性别比例", httpMethod = "GET")
  57. CommonResult studentSexRatio();
  58. @GetMapping(value = "/studentStay")
  59. @ApiOperation(value = "学生住宿情况", notes = "学生住宿情况", httpMethod = "GET")
  60. CommonResult studentStay();
  61. }