新增 字段
This commit is contained in:
parent
66437771ae
commit
264a1350e8
@ -14,6 +14,7 @@ import org.springframework.validation.annotation.Validated;
|
|||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
import javax.annotation.security.PermitAll;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
|
|
||||||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
||||||
@ -33,13 +34,12 @@ public class BpmOAEntryController {
|
|||||||
@Resource
|
@Resource
|
||||||
private BpmOAEntryService entryService;
|
private BpmOAEntryService entryService;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private FileApi fileApi;
|
private FileApi fileApi;
|
||||||
|
|
||||||
@PostMapping("/create")
|
@PostMapping("/create")
|
||||||
@Operation(summary = "创建请求申请")
|
@Operation(summary = "创建请求申请")
|
||||||
|
@PermitAll
|
||||||
public CommonResult<Long> createEntry(@Valid @RequestBody BpmOAEntryCreateReqVO createReqVO) {
|
public CommonResult<Long> createEntry(@Valid @RequestBody BpmOAEntryCreateReqVO createReqVO) {
|
||||||
|
|
||||||
return success(entryService.createEntry(getLoginUserId(), createReqVO));
|
return success(entryService.createEntry(getLoginUserId(), createReqVO));
|
||||||
|
@ -25,8 +25,7 @@ public class BpmOAEntryCreateReqVO {
|
|||||||
@NotNull(message = "发起人的用户编号不能为空")
|
@NotNull(message = "发起人的用户编号不能为空")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
|
|
||||||
@Schema(description = "发起人的部门编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "9099")
|
@Schema(description = "发起人的部门编号", example = "9099")
|
||||||
@NotNull(message = "发起人的部门编号不能为空")
|
|
||||||
private Long deptId;
|
private Long deptId;
|
||||||
|
|
||||||
@Schema(description = "新入职用户编号", example = "6311")
|
@Schema(description = "新入职用户编号", example = "6311")
|
||||||
@ -35,6 +34,9 @@ public class BpmOAEntryCreateReqVO {
|
|||||||
@Schema(description = "新入职用户部门编号", example = "10237")
|
@Schema(description = "新入职用户部门编号", example = "10237")
|
||||||
private Long entryDeptId;
|
private Long entryDeptId;
|
||||||
|
|
||||||
|
@Schema(description = "新入职用户岗位编号", example = "10237")
|
||||||
|
private Long entryPostId;
|
||||||
|
|
||||||
@Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
|
@Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
|
||||||
@NotEmpty(message = "用户昵称不能为空")
|
@NotEmpty(message = "用户昵称不能为空")
|
||||||
private String nickname;
|
private String nickname;
|
||||||
|
Loading…
Reference in New Issue
Block a user