package com.xinelu.applet.vo.nearbynursingstation;

import com.xinelu.common.annotation.Excel;
import com.xinelu.common.custominterface.Insert;
import com.xinelu.common.custominterface.Update;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

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

/**
 * @author ljh
 * @version 1.0
 * Create by 2023/2/14 15:12
 */
@Data
public class NurseStationClassifyVO implements Serializable {
    private static final long serialVersionUID = -4873271982512244053L;

    /**
     * 护理站的id
     */
    private Long nurseStationId;

    /**
     * 护理项目的id
     */
    private Long nurseClassifyId;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 父级分类id
     */
    @ApiModelProperty(value = "父级分类id")
    @Excel(name = "父级分类id")
    private Long parentId;

    /**
     * 分类编码
     */
    @ApiModelProperty(value = "分类编码")
    @Excel(name = "分类编码")
    private String classifyCode;

    /**
     * 分类名称
     */
    @ApiModelProperty(value = "分类名称")
    @Excel(name = "分类名称")
    @Length(max = 30, message = "分类名称不能超过30个字符", groups = {Insert.class, Update.class})
    @NotBlank(message = "分类名称不能为空", groups = {Insert.class, Update.class})
    private String classifyName;

    /**
     * 分类级别
     */
    @ApiModelProperty(value = "分类级别")
    @Excel(name = "分类级别")
    private Integer classifyLevel;

    /**
     * 分类所属类型，NURSE_AGENCY：护理机构分类，NURSE_ITEM：护理项目分类
     */
    @ApiModelProperty(value = "分类所属类型，NURSE_AGENCY：护理机构分类，NURSE_ITEM：护理项目分类")
    @Excel(name = "分类所属类型，NURSE_AGENCY：护理机构分类，NURSE_ITEM：护理项目分类")
    private String classifyType;

    /**
     * 分类图标存放地址
     */
    @ApiModelProperty(value = "分类图标存放地址")
    @Excel(name = "分类图标存放地址")
    @NotBlank(message = "分类图标不能为空", groups = {Insert.class, Update.class})
    private String classifyPictureUrl;

    /**
     * 分类排序
     */
    @ApiModelProperty(value = "分类排序")
    @Excel(name = "分类排序")
    private Integer classifySort;
}
