package com.ho.user.vo.req;

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

import javax.validation.constraints.NotNull;

/**
 * @Description 岗位修改入参
 * Author yule
 * Date 2022/12/2 11:09
 */
@Data
public class PositionUpdateReqVO {

    @ApiModelProperty("岗位编号")
    @NotNull(message = "请选择所要更新的岗位")
    private Integer id;

    @ApiModelProperty(value = "岗位编码")
    @Length(max = 50,message = "岗位编码不能超过50个字符")
    private String postCode;

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

    @ApiModelProperty(value = "状态")
    private Integer status;


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

}
