SpmkCustomApprovalDto.java 3.27 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
import cn.hutool.json.JSONObject;
import cn.timer.api.bean.spmk.SpmkInitiatorConfig;
14 15 16
import cn.timer.api.config.exception.ValidationMsg;
import cn.timer.api.config.validation.Insert;
import cn.timer.api.config.validation.Update;
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
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;

35
	@NotNull(message = "审批组id不能为空")
36 37 38
	@ApiModelProperty(value = "审批组id 当前用户ID", example = "101")
	private Integer approvalGId;

39
	@NotBlank(message = "审批图标不能为空")
40 41 42
	@ApiModelProperty(value = "审批图标地址 ", example = "审批图标地址")
	private String iconUrl;

43
	@NotBlank(message = "审批名称不能为空")
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
	@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;

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

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

81
	@NotNull(message = "router为空")
82 83
	@ApiModelProperty(value = "审批流程 ", example = "审批流程")
	private Router router;
84

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

}