package com.xinelu.manage.vo.nursestation;


import com.xinelu.common.annotation.Excel;
import com.xinelu.common.core.domain.BaseDomain;
import com.xinelu.common.custominterface.Insert;
import com.xinelu.common.custominterface.Update;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author ljh
 * @version 1.0
 * Create by 2022/11/7 10:34
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class NurseStationLabelVO extends BaseDomain implements Serializable {
    private static final long serialVersionUID = -6783958798607978604L;
    /**
     * 主键id
     */
    private Long id;

    /**
     * 护理站主表id
     */
    @ApiModelProperty(value = "护理站主表id")
    @Excel(name = "护理站主表id")
    private Long nurseStationId;

    /**
     * 创建人id
     */
    @ApiModelProperty(value = "创建人id")
    @Excel(name = "创建人id")
    private Long userId;

    /**
     * 标签编码
     */
    @ApiModelProperty(value = "标签编码")
    @Excel(name = "标签编码")
    private String labelCode;

    /**
     * 护理站标签描述
     */
    @ApiModelProperty(value = "护理站标签描述")
    @Excel(name = "护理站标签描述")
    @NotBlank(message = "护理站标签描述不能为空", groups = {Insert.class, Update.class})
    private String labelDescription;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    @Excel(name = "排序")
    @NotNull(message = "护理站标签排序不能为空", groups = {Insert.class, Update.class})
    private Integer labelSort;
}
