feat(REQ-3769) - 完善 Builder 注解使用
This commit is contained in:
parent
9b8d213fcb
commit
ca8943a9a4
@ -68,6 +68,7 @@ public class HistoricProcessInstanceSearchForEsDTO {
|
||||
* <p>
|
||||
* 默认是查询开始时间之后
|
||||
*/
|
||||
@Builder.Default
|
||||
private TimeQueryDirection startTimeDirection = TimeQueryDirection.AFTER;
|
||||
|
||||
/**
|
||||
@ -80,16 +81,19 @@ public class HistoricProcessInstanceSearchForEsDTO {
|
||||
* <p>
|
||||
* 默认是查询结束时间点之前
|
||||
*/
|
||||
@Builder.Default
|
||||
private TimeQueryDirection endTimeDirection = TimeQueryDirection.BEFORE;
|
||||
|
||||
/**
|
||||
* 是否包含流程变量
|
||||
*/
|
||||
@Builder.Default
|
||||
private Boolean hasVariables = false;
|
||||
|
||||
/**
|
||||
* 用于覆盖同步逻辑中的PageSize,一般不需要传
|
||||
*/
|
||||
@Builder.Default
|
||||
private Integer overPageSize = 50;
|
||||
|
||||
}
|
||||
|
||||
@ -116,5 +116,6 @@ public class DocCreateDTO implements Serializable {
|
||||
* 租户 ID
|
||||
*/
|
||||
@ApiModelProperty(value = "租户 ID")
|
||||
@Builder.Default
|
||||
private String tenantId = NO_TENANT_ID;
|
||||
}
|
||||
|
||||
@ -39,5 +39,6 @@ public class DocQueryDTO {
|
||||
private String tenantId;
|
||||
|
||||
@ApiModelProperty(value = "是否包含临时文档")
|
||||
@Builder.Default
|
||||
private Boolean tempFile = false;
|
||||
}
|
||||
|
||||
@ -98,5 +98,6 @@ public class BpmnProcessInstanceAbortDTO {
|
||||
* 是否异步执行
|
||||
*/
|
||||
@ApiModelProperty(value = "是否异步", notes = "异步时,只接收请求便返回数据")
|
||||
@Builder.Default
|
||||
private Boolean async = true;
|
||||
}
|
||||
|
||||
@ -60,16 +60,19 @@ public class BpmnProcessInstanceCreateDTO extends BpmnProcessInstanceCreateWithF
|
||||
/**
|
||||
* 流程实例关联的变量
|
||||
*/
|
||||
@Builder.Default
|
||||
private Map<String, Object> variables = new HashMap<>();
|
||||
|
||||
/**
|
||||
* 签署业务定义变量的入参
|
||||
*/
|
||||
@Builder.Default
|
||||
private Map<String, Object> signVariables = new HashMap<>();
|
||||
|
||||
/**
|
||||
* 待办相关的变量,如路由参数, 模板参数等等
|
||||
*/
|
||||
@Builder.Default
|
||||
private Map<String, Object> pendingVariables = new HashMap<>();
|
||||
|
||||
/**
|
||||
@ -106,6 +109,7 @@ public class BpmnProcessInstanceCreateDTO extends BpmnProcessInstanceCreateWithF
|
||||
* 是否异步执行,该异步是引擎的一种运行模式
|
||||
*/
|
||||
@ApiModelProperty(value = "是否异步", notes = "异步时,只接收请求便返回数据")
|
||||
@Builder.Default
|
||||
private Boolean async = true;
|
||||
|
||||
/**
|
||||
|
||||
@ -44,6 +44,7 @@ public class BpmnProcessInstanceLogQueryDTO {
|
||||
* 返回结果中是否包含按钮
|
||||
*/
|
||||
@ApiModelProperty(value = "返回结果中是否包含按钮", notes = "如果访问者为空,该属性为 true 时,同样也不会返回按钮")
|
||||
@Builder.Default
|
||||
private Boolean hasButton = false;
|
||||
|
||||
/**
|
||||
|
||||
@ -36,6 +36,7 @@ public class BpmnActivityTriggerDTO implements Serializable {
|
||||
* 是否异步执行
|
||||
*/
|
||||
@ApiModelProperty(value = "是否异步", notes = "异步时,只接收请求便返回数据")
|
||||
@Builder.Default
|
||||
private Boolean async = true;
|
||||
|
||||
/**
|
||||
|
||||
@ -71,5 +71,6 @@ public class BpmnRobotTaskCompleteDTO {
|
||||
* 是否异步执行
|
||||
*/
|
||||
@ApiModelProperty(value = "是否异步", notes = "异步时,只接收请求便返回数据")
|
||||
@Builder.Default
|
||||
private Boolean async = false;
|
||||
}
|
||||
|
||||
@ -51,5 +51,6 @@ public class BpmnRobotTaskCreateDTO {
|
||||
* 是否异步执行
|
||||
*/
|
||||
@ApiModelProperty(value = "是否异步", notes = "异步时,只接收请求便返回数据")
|
||||
@Builder.Default
|
||||
private Boolean async = false;
|
||||
}
|
||||
|
||||
@ -78,6 +78,7 @@ public class BpmnTaskAuditDTO {
|
||||
* 是否异步执行
|
||||
*/
|
||||
@ApiModelProperty(value = "是否异步", notes = "异步时,只接收请求便返回数据")
|
||||
@Builder.Default
|
||||
private Boolean async = true;
|
||||
|
||||
/**
|
||||
|
||||
@ -77,6 +77,7 @@ public class BpmnTaskCommentDTO implements Serializable {
|
||||
* 是否异步执行
|
||||
*/
|
||||
@ApiModelProperty(value = "是否异步", notes = "异步时,只接收请求便返回数据")
|
||||
@Builder.Default
|
||||
private Boolean async = false;
|
||||
|
||||
}
|
||||
|
||||
@ -89,6 +89,7 @@ public class BpmnTaskCountersignDTO implements Serializable {
|
||||
* 是否异步执行
|
||||
*/
|
||||
@ApiModelProperty(value = "是否异步", notes = "异步时,只接收请求便返回数据")
|
||||
@Builder.Default
|
||||
private Boolean async = true;
|
||||
|
||||
}
|
||||
|
||||
@ -79,6 +79,7 @@ public class BpmnTaskTransferDTO implements Serializable {
|
||||
* 是否异步执行
|
||||
*/
|
||||
@ApiModelProperty(value = "是否异步", notes = "异步时,只接收请求便返回数据")
|
||||
@Builder.Default
|
||||
private Boolean async = true;
|
||||
|
||||
}
|
||||
|
||||
@ -4,7 +4,6 @@ import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@ -34,21 +33,25 @@ public class FormPermissionMetaInfo implements Serializable {
|
||||
/**
|
||||
* 可编辑必填
|
||||
*/
|
||||
@Builder.Default
|
||||
private Boolean required = false;
|
||||
|
||||
/**
|
||||
* 可编辑非必填
|
||||
*/
|
||||
@Builder.Default
|
||||
private Boolean editable = false;
|
||||
|
||||
/**
|
||||
* 只读
|
||||
*/
|
||||
@Builder.Default
|
||||
private Boolean readonly = false;
|
||||
|
||||
/**
|
||||
* 隐藏
|
||||
*/
|
||||
@Builder.Default
|
||||
private Boolean hidden = true;
|
||||
/**
|
||||
* 前端回显字段,后端不做任何消费逻辑
|
||||
|
||||
Loading…
Reference in New Issue
Block a user