package com.yuchen.saas.park.api.vo.request;

import com.thinkunion.park.service.common.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;


/**
 * @ClassName PmgBatDeviceCategory
 * @Description 园区设备分类表
 * @Author 肖祥
 * @Date 2022/10/5 14:50
 * @Version 1.0。0
 **/
@Data
@ApiModel(value = "园区设备分类更新")
public class DeviceCategoryAddRequest extends BasicEntity {

    /**
     * 分类名称
     */
    @ApiModelProperty(value = "分类名称")
    @NotBlank(message="分类名称不能为空")
    private String name;
    /**
     * 分类父id
     */
    @ApiModelProperty(value = "分类父id")
    private Long parentId;

    /**
     * 分类层级:从0开始
     */
    @ApiModelProperty(value = "分类层级:从0开始")
    private Integer level;

}
