SpmkApprovalTemplateDto.java 2.64 KB
Newer Older
1 2 3
package cn.timer.api.dto.spmk;

import java.util.Date;
4
import java.util.List;
5 6

import javax.persistence.Entity;
7 8 9 10 11
import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
12 13

import cn.hutool.json.JSONObject;
14
import cn.timer.api.config.exception.ValidationMsg;
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

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

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

30
	@NotNull(message = ValidationMsg.NOTNULL)
31 32 33
	@ApiModelProperty(value = "审批模板组id 当前用户ID", example = "101")
	private Integer approvalTemplateGId;

34
	@NotBlank(message = ValidationMsg.NOTBLANK)
35 36 37
	@ApiModelProperty(value = "审批图标地址 ", example = "审批图标地址")
	private String iconUrl;

38
	@NotBlank(message = ValidationMsg.NOTBLANK)
39 40 41 42 43 44 45 46 47 48 49 50
	@ApiModelProperty(value = "审批名称 ", example = "审批名称")
	private String name;

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

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

	@ApiModelProperty(value = "排序 由于区分关键字,命名后缀加s", example = "101")
	private Integer ranks;

51
	@NotBlank(message = ValidationMsg.NOTBLANK)
52 53 54 55 56 57 58 59 60
	@ApiModelProperty(value = "审批意见 是否必填 意见 0是 1否", example = "101")
	private Integer isOpinion;

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

	@ApiModelProperty(value = "创建时间 ", example = "创建时间")
	private Date createTime;
	
61 62 63
	@NotNull(message = ValidationMsg.NOTNULL)
	@DecimalMax(value = "9",message = ValidationMsg.DECIMALMAX +" 只能为 0无 1转正 2离职 3调岗 4招聘 5加班 6请假 7出差 8外出 9补卡 ")
	@DecimalMin(value = "0",message = ValidationMsg.DECIMALMIN +" 只能为 0无 1转正 2离职 3调岗 4招聘 5加班 6请假 7出差 8外出 9补卡 ")
64
	@ApiModelProperty(value = "关联类型 0无 1转正 2离职 3调岗 4加班 5请假 6出差 7外出 8补卡 9调薪", example = "1")
65 66
	private Integer assoType;

67
	@NotEmpty(message = ValidationMsg.NOTEMPTY)
68
	@ApiModelProperty(value = "审批表单 ", example = "审批表单")
69
	private List<JSONObject> froms;
70

71
	@NotNull(message = ValidationMsg.NOTNULL)
72 73 74 75
	@ApiModelProperty(value = "审批流程 ", example = "审批流程")
	private Router router;
	
}