BeingAppraisalPerson.java 1.24 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
package cn.timer.api.dto.jxgl;

import java.io.Serializable;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import cn.timer.api.config.exception.ValidationMsg;
import cn.timer.api.dto.spmk.User;
11
import io.swagger.annotations.ApiModelProperty;
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BeingAppraisalPerson implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@NotNull(message = ValidationMsg.NOTNULL)
29
	@ApiModelProperty(value = "id", example = "10")
30 31 32 33 34 35 36 37
	private Integer id;

	/**
	 * 0员工 1部门
	 */
	@NotNull(message = ValidationMsg.NOTNULL)
	@Min(value = 0,message = ValidationMsg.MIN)
	@Max(value = 1,message = ValidationMsg.MAX)
38
	@ApiModelProperty(value = "类型 0员工 1部门", example = "0")
39 40 41 42 43 44 45 46
	private Integer type;
	
	/**
	 * 0被考核人 1无需考核人
	 */
	@NotNull(message = ValidationMsg.NOTNULL)
	@Min(value = 0,message = ValidationMsg.MIN)
	@Max(value = 1,message = ValidationMsg.MAX)
47
	@ApiModelProperty(value = "状态 0被考核人 1无需考核人", example = "0")
48 49 50
	private Integer sts;
	
}