...
|
...
|
@@ -3,6 +3,7 @@ package com.example.client.controller; |
|
|
import cn.bronet.admin.common.core.domain.AjaxResult;
|
|
|
import com.example.client.domain.bo.CExperienceEducationBo;
|
|
|
import com.example.client.domain.bo.CExperienceJobBo;
|
|
|
import com.example.client.domain.bo.COtherBo;
|
|
|
import com.example.client.service.EducationService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
...
|
...
|
@@ -12,6 +13,7 @@ import lombok.extern.slf4j.Slf4j; |
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
...
|
...
|
@@ -33,7 +35,7 @@ public class EducationController { |
|
|
|
|
|
@ApiOperation("存储教育/培训经历")
|
|
|
@PostMapping("/saveEducation")
|
|
|
public AjaxResult saveEducation(CExperienceEducationBo bo){
|
|
|
public AjaxResult saveEducation(@RequestBody CExperienceEducationBo bo){
|
|
|
|
|
|
log.info("<<<接收的参数<<<::"+bo);
|
|
|
|
...
|
...
|
@@ -67,7 +69,7 @@ public class EducationController { |
|
|
|
|
|
@ApiOperation("存储工作经历")
|
|
|
@PostMapping("/saveJob")
|
|
|
public AjaxResult saveJob(CExperienceJobBo bo){
|
|
|
public AjaxResult saveJob(@RequestBody CExperienceJobBo bo){
|
|
|
|
|
|
log.info("<<<接收的参数<<<::"+bo);
|
|
|
|
...
|
...
|
@@ -95,4 +97,34 @@ public class EducationController { |
|
|
return educationService.updateJobSecret(secret);
|
|
|
|
|
|
}
|
|
|
|
|
|
@ApiOperation("存储其他(爱好,技能...)")
|
|
|
@PostMapping("/saveOther")
|
|
|
public AjaxResult saveOther(@RequestBody COtherBo bo){
|
|
|
|
|
|
log.info("<<<接收到的参数<<<::"+bo);
|
|
|
|
|
|
return educationService.saveOther(bo);
|
|
|
|
|
|
}
|
|
|
|
|
|
@ApiImplicitParam(name = "otherId",value = "其他经历表得Id",dataType = "Long",required = true,paramType = "query")
|
|
|
@ApiOperation("删除其他(爱好,语言...)")
|
|
|
@PostMapping("/deleteOther")
|
|
|
public AjaxResult deleteOther(Long otherId){
|
|
|
|
|
|
log.info("<<<接收的参数<<<::"+otherId);
|
|
|
|
|
|
return educationService.deleteOther(otherId);
|
|
|
}
|
|
|
|
|
|
@ApiImplicitParam(name = "secret",value = "可见/不可见",dataType = "Integer",required = true,paramType = "query")
|
|
|
@ApiOperation("修改其他经历的可见,不可见")
|
|
|
@PostMapping("/updateOtherSecret")
|
|
|
public AjaxResult updateOtherSecret(Integer secret){
|
|
|
|
|
|
log.info("<<<接收的参数<<<::"+secret);
|
|
|
|
|
|
return educationService.updateOtherSecret(secret);
|
|
|
}
|
|
|
} |
...
|
...
|
|