RecruitmentAction.java 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. package net.mingsoft.tf.www;
  2. import io.swagger.v3.oas.annotations.Operation;
  3. import io.swagger.v3.oas.annotations.Parameter;
  4. import io.swagger.v3.oas.annotations.Parameters;
  5. import io.swagger.v3.oas.annotations.enums.ParameterIn;
  6. import jakarta.annotation.Resource;
  7. import net.mingsoft.base.entity.ResultData;
  8. import net.mingsoft.tf.action.BaseAction;
  9. import net.mingsoft.tf.entity.RecruitmentEntity;
  10. import org.springframework.stereotype.Controller;
  11. import org.springframework.web.bind.annotation.*;
  12. @Controller
  13. @RequestMapping("/tf/recruitment")
  14. public class RecruitmentAction extends BaseAction {
  15. @Resource
  16. private net.mingsoft.tf.action.RecruitmentAction action;
  17. /**
  18. * 查询人才招聘列表
  19. *
  20. * @param recruitment 人才招聘实体
  21. */
  22. @Operation(summary = "查询人才招聘列表接口")
  23. @Parameters({
  24. @Parameter(name = "recruitmentName", description = "岗位名称", in = ParameterIn.QUERY),
  25. @Parameter(name = "recruitmentLocation", description = "工作地点", in = ParameterIn.QUERY),
  26. @Parameter(name = "recruitmentSalary", description = "薪资范围", in = ParameterIn.QUERY),
  27. @Parameter(name = "recruitmentExper", description = "工作经验", in = ParameterIn.QUERY),
  28. @Parameter(name = "recruitmentEducation", description = "学历", in = ParameterIn.QUERY),
  29. @Parameter(name = "recruitmentTime", description = "发布时间", in = ParameterIn.QUERY),
  30. @Parameter(name = "recruitmentRequirements", description = "岗位要求", in = ParameterIn.QUERY),
  31. })
  32. @PostMapping(value = "/list")
  33. @ResponseBody
  34. public ResultData list(@RequestBody RecruitmentEntity recruitment) {
  35. return action.list(recruitment);
  36. }
  37. /**
  38. * 获取人才招聘
  39. *
  40. * @param recruitment 人才招聘实体
  41. */
  42. @Operation(summary = "获取人才招聘列表接口")
  43. @Parameter(name = "id", description = "主键ID", required = true, in = ParameterIn.QUERY)
  44. @GetMapping("/get")
  45. @ResponseBody
  46. public ResultData get(@ModelAttribute @Parameter(hidden = true) RecruitmentEntity recruitment) {
  47. return action.get(recruitment);
  48. }
  49. }