feat(bpm): 添加流程实例抄送功能
- 新增抄送用户编号数组字段 - 添加抄送原因校验规则 - 完善抄送请求VO结构定义 - 增加Swagger文档注解说明- 实现抄送用户不能为空的校验逻辑
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
package com.jeelowcode.service.bpm.controller.vo.instance;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
@Schema(description = "管理后台 - 流程实例抄送的创建 Request VO")
|
||||
@Data
|
||||
public class BpmProcessInstanceCopyCreateReqVO {
|
||||
@@ -17,4 +21,8 @@ public class BpmProcessInstanceCopyCreateReqVO {
|
||||
@NotBlank(message = "抄送原因不能为空")
|
||||
private String reason;
|
||||
|
||||
@Schema(description = "抄送的用户编号数组", requiredMode = Schema.RequiredMode.REQUIRED, example = "[1,2]")
|
||||
@NotEmpty(message = "抄送用户不能为空")
|
||||
private Collection<Long> userIds;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user