package com.ho.user.vo.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Description 新增岗位入参
 * Author yule
 * Date 2022/12/1 16:08
 */
@Data
public class PositionAddReqVO {

    @ApiModelProperty(value = "岗位编码")
    @NotBlank(message = "岗位编码不能为空")
    @Length(min = 1, max = 30,message = "岗位编码不能超过30个字符")
    private String postCode;

    @ApiModelProperty(value = "岗位名称")
    @NotBlank(message = "岗位名称不能为空")
    @Length(min = 1, max = 30,message = "岗位名称不能超过30个字符")
    private String name;

    @ApiModelProperty(value = "状态")
    @NotNull(message = "岗位状态不能为空")
    private Integer status;

    @ApiModelProperty(value = "备注")
    @Length(max = 50,message = "备注不能超过50个字符")
    private String desc;


}
