SpmkCustomApprovalDto.java 3.08 KB
Newer Older
1 2 3 4 5
package cn.timer.api.dto.spmk;

import java.util.Date;
import java.util.List;

6 7 8
import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
9 10
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
11

12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
import cn.hutool.json.JSONObject;
import cn.timer.api.bean.spmk.SpmkInitiatorConfig;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SpmkCustomApprovalDto {

	@ApiModelProperty(value = "编号 编号", example = "101")
	private Integer id;

	@ApiModelProperty(value = "企业组织代码 企业组织代码", example = "101")
	private Integer orgCode;

32
	@NotNull(message = "approvalGId为空")
33 34 35
	@ApiModelProperty(value = "审批组id 当前用户ID", example = "101")
	private Integer approvalGId;

36
	@NotBlank(message = "iconUrl为空")
37 38 39
	@ApiModelProperty(value = "审批图标地址 ", example = "审批图标地址")
	private String iconUrl;

40
	@NotBlank(message = "name为空")
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
	@ApiModelProperty(value = "审批名称 ", example = "审批名称")
	private String name;

	@ApiModelProperty(value = "审批说明 ", example = "审批说明")
	private String description;

	@ApiModelProperty(value = "审批开关 0启用 1停用", example = "101")
	private Integer isOpen;

	@ApiModelProperty(value = "排序 排序", example = "101")
	private Integer ranks;

	@ApiModelProperty(value = "审批意见 是否必填 意见 0是 1否", example = "101")
	private Integer isOpinion;

	@ApiModelProperty(value = "更新时间 ", example = "更新时间")
	private Date updateTime;

	@ApiModelProperty(value = "创建时间 ", example = "创建时间")
	private Date createTime;

62 63 64 65
	@NotNull(message = "assoType为空")
	@DecimalMax(value = "9",message = "assoType 只能为 0无 1转正 2离职 3调岗 4招聘 5加班 6请假 7出差 8外出 9补卡 ")
	@DecimalMin(value = "0",message = "assoType 只能为 0无 1转正 2离职 3调岗 4招聘 5加班 6请假 7出差 8外出 9补卡 ")
	@ApiModelProperty(value = "关联类型 0无 1转正 2离职 3调岗 4招聘 5加班 6请假 7出差 8外出 9补卡", example = "1")
66
	private Integer assoType;
67
	
68 69 70 71
	@NotNull(message = "isAllvisible为空")
	@DecimalMax(value = "1",message = "isAllvisible 只能为 0部分可见 1所有可见 2禁用")
	@DecimalMin(value = "0",message = "isAllvisible 只能为 0部分可见 1所有可见 2禁用")
	@ApiModelProperty(value = "可见范围 0部分可见 1所有可见 2禁用", example = "1")
72 73
	private Integer isAllvisible;

74
	@NotEmpty(message = "froms为空")
75
	@ApiModelProperty(value = "审批表单 ", example = "审批表单")
76
	private List<JSONObject> froms;
77

78
	@NotNull(message = "router为空")
79 80
	@ApiModelProperty(value = "审批流程 ", example = "审批流程")
	private Router router;
81

82
	@NotNull(message = "initiatorConfigs为空")
tangzhaoqian committed
83
	@ApiModelProperty(value = "可见发起人配置 ", example = "数组类型")
84 85 86
	private List<SpmkInitiatorConfig> initiatorConfigs;

}