| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- package net.mingsoft.tf.www;
- import io.swagger.v3.oas.annotations.Operation;
- import io.swagger.v3.oas.annotations.Parameter;
- import io.swagger.v3.oas.annotations.Parameters;
- import io.swagger.v3.oas.annotations.enums.ParameterIn;
- import jakarta.annotation.Resource;
- import net.mingsoft.base.entity.ResultData;
- import net.mingsoft.tf.action.BaseAction;
- import net.mingsoft.tf.entity.RecruitmentEntity;
- import org.springframework.stereotype.Controller;
- import org.springframework.web.bind.annotation.*;
- @Controller
- @RequestMapping("/tf/recruitment")
- public class RecruitmentAction extends BaseAction {
- @Resource
- private net.mingsoft.tf.action.RecruitmentAction action;
- /**
- * 查询人才招聘列表
- *
- * @param recruitment 人才招聘实体
- */
- @Operation(summary = "查询人才招聘列表接口")
- @Parameters({
- @Parameter(name = "recruitmentName", description = "岗位名称", in = ParameterIn.QUERY),
- @Parameter(name = "recruitmentLocation", description = "工作地点", in = ParameterIn.QUERY),
- @Parameter(name = "recruitmentSalary", description = "薪资范围", in = ParameterIn.QUERY),
- @Parameter(name = "recruitmentExper", description = "工作经验", in = ParameterIn.QUERY),
- @Parameter(name = "recruitmentEducation", description = "学历", in = ParameterIn.QUERY),
- @Parameter(name = "recruitmentTime", description = "发布时间", in = ParameterIn.QUERY),
- @Parameter(name = "recruitmentRequirements", description = "岗位要求", in = ParameterIn.QUERY),
- })
- @PostMapping(value = "/list")
- @ResponseBody
- public ResultData list(@RequestBody RecruitmentEntity recruitment) {
- return action.list(recruitment);
- }
- /**
- * 获取人才招聘
- *
- * @param recruitment 人才招聘实体
- */
- @Operation(summary = "获取人才招聘列表接口")
- @Parameter(name = "id", description = "主键ID", required = true, in = ParameterIn.QUERY)
- @GetMapping("/get")
- @ResponseBody
- public ResultData get(@ModelAttribute @Parameter(hidden = true) RecruitmentEntity recruitment) {
- return action.get(recruitment);
- }
- }
|