package com.yuchen.saas.park.api.entity.park;

import com.baomidou.mybatisplus.annotation.TableName;
import com.thinkunion.park.service.common.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

/**
 * @author 刘通
 * @date 2020/12/11 17:09
 */
@Data
@TableName("pmg_bat_park_manage")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "园区空间管理对象", description = "园区空间管理表")
public class PmgBatParkManage extends BasicEntity {
    /**
     * 节点名称
     */
    @ApiModelProperty(value = "节点名称")
    @Length(max = 150, message = "空间名称输入超长！")
    private String name;
    /**
     * 园区空间主题类型ID
     */
    @ApiModelProperty(value = "园区空间主题类型ID")
    private Long spaceId;
    /**
     * 父级ID
     */
    @ApiModelProperty(value = "父级ID")
    private Long parentId;
    /**
     * 层级
     */
    @ApiModelProperty(value = "层级")
    private String hierarchy;


}
