|
@@ -1,6 +1,8 @@
|
|
package com.citu.module.menduner.system.controller.app.jobhunt.person;
|
|
package com.citu.module.menduner.system.controller.app.jobhunt.person;
|
|
|
|
|
|
import com.citu.framework.common.pojo.CommonResult;
|
|
import com.citu.framework.common.pojo.CommonResult;
|
|
|
|
+import com.citu.framework.idempotent.core.annotation.Idempotent;
|
|
|
|
+import com.citu.framework.idempotent.core.keyresolver.impl.UserIdempotentKeyResolver;
|
|
import com.citu.framework.security.core.annotations.PreAuthenticated;
|
|
import com.citu.framework.security.core.annotations.PreAuthenticated;
|
|
import com.citu.module.menduner.system.controller.app.jobhunt.person.cvattachment.AppCvAttachmentRespVO;
|
|
import com.citu.module.menduner.system.controller.app.jobhunt.person.cvattachment.AppCvAttachmentRespVO;
|
|
import com.citu.module.menduner.system.controller.app.jobhunt.person.cvattachment.AppCvAttachmentSaveReqVO;
|
|
import com.citu.module.menduner.system.controller.app.jobhunt.person.cvattachment.AppCvAttachmentSaveReqVO;
|
|
@@ -83,6 +85,7 @@ public class AppPersonResumeController {
|
|
@PreAuthenticated
|
|
@PreAuthenticated
|
|
@PostMapping("/info/save")
|
|
@PostMapping("/info/save")
|
|
@Operation(summary = "保存基本信息")
|
|
@Operation(summary = "保存基本信息")
|
|
|
|
+ @Idempotent(keyResolver = UserIdempotentKeyResolver.class)
|
|
public CommonResult<Boolean> saveInfo(@Valid @RequestBody AppPersonInfoSaveReqVO reqVO) {
|
|
public CommonResult<Boolean> saveInfo(@Valid @RequestBody AppPersonInfoSaveReqVO reqVO) {
|
|
return success(personInfoService.saveInfo(reqVO));
|
|
return success(personInfoService.saveInfo(reqVO));
|
|
}
|
|
}
|
|
@@ -90,6 +93,7 @@ public class AppPersonResumeController {
|
|
@PreAuthenticated
|
|
@PreAuthenticated
|
|
@PostMapping("/tag/update")
|
|
@PostMapping("/tag/update")
|
|
@Operation(summary = "修改人才标签")
|
|
@Operation(summary = "修改人才标签")
|
|
|
|
+ @Idempotent(keyResolver = UserIdempotentKeyResolver.class)
|
|
public CommonResult<Boolean> updateTag(
|
|
public CommonResult<Boolean> updateTag(
|
|
@Valid @RequestBody AppPersonInfoTagReqVO reqVO) {
|
|
@Valid @RequestBody AppPersonInfoTagReqVO reqVO) {
|
|
personInfoService.updateTag(reqVO);
|
|
personInfoService.updateTag(reqVO);
|
|
@@ -101,6 +105,7 @@ public class AppPersonResumeController {
|
|
@PreAuthenticated
|
|
@PreAuthenticated
|
|
@PostMapping("/avatar/update")
|
|
@PostMapping("/avatar/update")
|
|
@Operation(summary = "修改人才头像")
|
|
@Operation(summary = "修改人才头像")
|
|
|
|
+ @Idempotent(keyResolver = UserIdempotentKeyResolver.class)
|
|
public CommonResult<Boolean> uploadAvatar(@RequestParam("avatar") String avatar) {
|
|
public CommonResult<Boolean> uploadAvatar(@RequestParam("avatar") String avatar) {
|
|
personInfoService.uploadAvatar(avatar);
|
|
personInfoService.uploadAvatar(avatar);
|
|
return success(true);
|
|
return success(true);
|
|
@@ -109,6 +114,7 @@ public class AppPersonResumeController {
|
|
@PreAuthenticated
|
|
@PreAuthenticated
|
|
@PostMapping("/info/simple/save")
|
|
@PostMapping("/info/simple/save")
|
|
@Operation(summary = "保存简易基本信息")
|
|
@Operation(summary = "保存简易基本信息")
|
|
|
|
+ @Idempotent(keyResolver = UserIdempotentKeyResolver.class)
|
|
public CommonResult<Boolean> saveSimple(@Valid @RequestBody AppPersonInfoSaveSimpleReqVO reqVO) {
|
|
public CommonResult<Boolean> saveSimple(@Valid @RequestBody AppPersonInfoSaveSimpleReqVO reqVO) {
|
|
return success(personInfoService.saveSimple(reqVO));
|
|
return success(personInfoService.saveSimple(reqVO));
|
|
}
|
|
}
|
|
@@ -116,6 +122,7 @@ public class AppPersonResumeController {
|
|
@PreAuthenticated
|
|
@PreAuthenticated
|
|
@PostMapping("/job/status/update")
|
|
@PostMapping("/job/status/update")
|
|
@Operation(summary = "修改求职类型")
|
|
@Operation(summary = "修改求职类型")
|
|
|
|
+ @Idempotent(keyResolver = UserIdempotentKeyResolver.class)
|
|
public CommonResult<Boolean> updateJobStatus(@RequestParam("status") String status) {
|
|
public CommonResult<Boolean> updateJobStatus(@RequestParam("status") String status) {
|
|
return success(personInfoService.updateJobStatus(status));
|
|
return success(personInfoService.updateJobStatus(status));
|
|
}
|
|
}
|
|
@@ -126,6 +133,7 @@ public class AppPersonResumeController {
|
|
@PreAuthenticated
|
|
@PreAuthenticated
|
|
@PostMapping("/advantage/save")
|
|
@PostMapping("/advantage/save")
|
|
@Operation(summary = "保存人才优势")
|
|
@Operation(summary = "保存人才优势")
|
|
|
|
+ @Idempotent(keyResolver = UserIdempotentKeyResolver.class)
|
|
public CommonResult<Boolean> saveAdvantage(@Valid @RequestBody AppPersonAdvantageSaveReqVO reqVO) {
|
|
public CommonResult<Boolean> saveAdvantage(@Valid @RequestBody AppPersonAdvantageSaveReqVO reqVO) {
|
|
return success(personInfoService.saveAdvantage(reqVO));
|
|
return success(personInfoService.saveAdvantage(reqVO));
|
|
}
|
|
}
|
|
@@ -136,6 +144,7 @@ public class AppPersonResumeController {
|
|
@PreAuthenticated
|
|
@PreAuthenticated
|
|
@PostMapping("/job/interested/save")
|
|
@PostMapping("/job/interested/save")
|
|
@Operation(summary = "保存求职意向")
|
|
@Operation(summary = "保存求职意向")
|
|
|
|
+ @Idempotent(keyResolver = UserIdempotentKeyResolver.class)
|
|
public CommonResult<Boolean> saveJobInterested(@Valid @RequestBody AppJobInterestedSaveReqVO reqVO) {
|
|
public CommonResult<Boolean> saveJobInterested(@Valid @RequestBody AppJobInterestedSaveReqVO reqVO) {
|
|
return success(jobInterestedService.saveJobInterested(reqVO));
|
|
return success(jobInterestedService.saveJobInterested(reqVO));
|
|
}
|
|
}
|
|
@@ -162,6 +171,7 @@ public class AppPersonResumeController {
|
|
@PreAuthenticated
|
|
@PreAuthenticated
|
|
@PostMapping("/edu/exp/save")
|
|
@PostMapping("/edu/exp/save")
|
|
@Operation(summary = "保存教育经历")
|
|
@Operation(summary = "保存教育经历")
|
|
|
|
+ @Idempotent(keyResolver = UserIdempotentKeyResolver.class)
|
|
public CommonResult<Boolean> saveEduExp(@Valid @RequestBody AppEduExpSaveReqVO reqVO) {
|
|
public CommonResult<Boolean> saveEduExp(@Valid @RequestBody AppEduExpSaveReqVO reqVO) {
|
|
return success(eduExpService.saveEduExp(reqVO));
|
|
return success(eduExpService.saveEduExp(reqVO));
|
|
}
|
|
}
|
|
@@ -188,6 +198,7 @@ public class AppPersonResumeController {
|
|
@PreAuthenticated
|
|
@PreAuthenticated
|
|
@PostMapping("/work/exp/save")
|
|
@PostMapping("/work/exp/save")
|
|
@Operation(summary = "保存工作经历")
|
|
@Operation(summary = "保存工作经历")
|
|
|
|
+ @Idempotent(keyResolver = UserIdempotentKeyResolver.class)
|
|
public CommonResult<Boolean> saveWorkExp(@Valid @RequestBody AppWorkExpSaveReqVO reqVO) {
|
|
public CommonResult<Boolean> saveWorkExp(@Valid @RequestBody AppWorkExpSaveReqVO reqVO) {
|
|
return success(workExpService.saveWorkExp(reqVO));
|
|
return success(workExpService.saveWorkExp(reqVO));
|
|
}
|
|
}
|
|
@@ -213,6 +224,7 @@ public class AppPersonResumeController {
|
|
@PreAuthenticated
|
|
@PreAuthenticated
|
|
@PostMapping("/project/exp/save")
|
|
@PostMapping("/project/exp/save")
|
|
@Operation(summary = "保存项目经历")
|
|
@Operation(summary = "保存项目经历")
|
|
|
|
+ @Idempotent(keyResolver = UserIdempotentKeyResolver.class)
|
|
public CommonResult<Boolean> saveProjectExp(@Valid @RequestBody AppProjectExpSaveReqVO reqVO) {
|
|
public CommonResult<Boolean> saveProjectExp(@Valid @RequestBody AppProjectExpSaveReqVO reqVO) {
|
|
return success(projectExpService.saveProjectExp(reqVO));
|
|
return success(projectExpService.saveProjectExp(reqVO));
|
|
}
|
|
}
|
|
@@ -239,6 +251,7 @@ public class AppPersonResumeController {
|
|
@PreAuthenticated
|
|
@PreAuthenticated
|
|
@PostMapping("/train/exp/save")
|
|
@PostMapping("/train/exp/save")
|
|
@Operation(summary = "保存培训经历")
|
|
@Operation(summary = "保存培训经历")
|
|
|
|
+ @Idempotent(keyResolver = UserIdempotentKeyResolver.class)
|
|
public CommonResult<Boolean> saveTrainExp(@Valid @RequestBody AppTrainExpSaveReqVO reqVO) {
|
|
public CommonResult<Boolean> saveTrainExp(@Valid @RequestBody AppTrainExpSaveReqVO reqVO) {
|
|
return success(trainExpService.saveTrainExp(reqVO));
|
|
return success(trainExpService.saveTrainExp(reqVO));
|
|
}
|
|
}
|
|
@@ -265,6 +278,7 @@ public class AppPersonResumeController {
|
|
@PreAuthenticated
|
|
@PreAuthenticated
|
|
@PostMapping("/person/skill/save")
|
|
@PostMapping("/person/skill/save")
|
|
@Operation(summary = "保存职业技能")
|
|
@Operation(summary = "保存职业技能")
|
|
|
|
+ @Idempotent(keyResolver = UserIdempotentKeyResolver.class)
|
|
public CommonResult<Boolean> savePersonSkill(@Valid @RequestBody AppPersonSkillSaveReqVO reqVO) {
|
|
public CommonResult<Boolean> savePersonSkill(@Valid @RequestBody AppPersonSkillSaveReqVO reqVO) {
|
|
return success(personSkillService.savePersonSkill(reqVO));
|
|
return success(personSkillService.savePersonSkill(reqVO));
|
|
}
|
|
}
|
|
@@ -297,6 +311,7 @@ public class AppPersonResumeController {
|
|
@PreAuthenticated
|
|
@PreAuthenticated
|
|
@PostMapping("/person/cv/save")
|
|
@PostMapping("/person/cv/save")
|
|
@Operation(summary = "保存附件")
|
|
@Operation(summary = "保存附件")
|
|
|
|
+ @Idempotent(keyResolver = UserIdempotentKeyResolver.class)
|
|
public CommonResult<Boolean> savePersonSkill(@Valid @RequestBody AppCvAttachmentSaveReqVO reqVO) {
|
|
public CommonResult<Boolean> savePersonSkill(@Valid @RequestBody AppCvAttachmentSaveReqVO reqVO) {
|
|
cvAttachmentService.create(reqVO);
|
|
cvAttachmentService.create(reqVO);
|
|
return success(true);
|
|
return success(true);
|