提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.bpm.controller.admin.definition.vo.model; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.validation.InEnum; |
|
4 |
import com.iailab.module.bpm.enums.definition.BpmModelFormTypeEnum; |
|
5 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
6 |
import lombok.Data; |
|
7 |
import org.hibernate.validator.constraints.URL; |
|
8 |
|
|
9 |
import javax.validation.constraints.NotEmpty; |
|
10 |
|
|
11 |
@Schema(description = "管理后台 - 流程模型的更新 Request VO") |
|
12 |
@Data |
|
13 |
public class BpmModelUpdateReqVO { |
|
14 |
|
|
15 |
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
16 |
@NotEmpty(message = "编号不能为空") |
|
17 |
private String id; |
|
18 |
|
|
19 |
@Schema(description = "流程名称", example = "平台") |
|
20 |
private String name; |
|
21 |
|
|
22 |
@Schema(description = "流程图标", example = "https://www.baidu.com/iailab.jpg") |
|
23 |
@URL(message = "流程图标格式不正确") |
|
24 |
private String icon; |
|
25 |
|
|
26 |
@Schema(description = "流程描述", example = "我是描述") |
|
27 |
private String description; |
|
28 |
|
|
29 |
@Schema(description = "流程分类", example = "1") |
|
30 |
private String category; |
|
31 |
|
|
32 |
@Schema(description = "BPMN XML", requiredMode = Schema.RequiredMode.REQUIRED) |
|
33 |
private String bpmnXml; |
|
34 |
|
|
35 |
@Schema(description = "表单类型-参见 bpm_model_form_type 数据字典", example = "1") |
|
36 |
@InEnum(BpmModelFormTypeEnum.class) |
|
37 |
private Integer formType; |
|
38 |
@Schema(description = "表单编号-在表单类型为 {@link BpmModelFormTypeEnum#CUSTOM} 时,必须非空", example = "1024") |
|
39 |
private Long formId; |
|
40 |
@Schema(description = "自定义表单的提交路径,使用 Vue 的路由地址-在表单类型为 {@link BpmModelFormTypeEnum#CUSTOM} 时,必须非空", |
|
41 |
example = "/bpm/oa/leave/create") |
|
42 |
private String formCustomCreatePath; |
|
43 |
@Schema(description = "自定义表单的查看路径,使用 Vue 的路由地址-在表单类型为 {@link BpmModelFormTypeEnum#CUSTOM} 时,必须非空", |
|
44 |
example = "/bpm/oa/leave/view") |
|
45 |
private String formCustomViewPath; |
|
46 |
|
|
47 |
} |