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 吕海泉
 * @create 2020/12/30 13:11
 */

@Data
@TableName("pmg_bat_device_type")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "设备类型", description = "设备类型对象")
public class PmgBatDeviceType extends BasicEntity {


    /**
     * 唯一编码
     */
    @ApiModelProperty(value = "唯一编码")
    private String code;

    /**
     * 名称
     */
    @ApiModelProperty(value = "类型名称")
    @Length(max = 64, message = "类型名称字段超长！")
    private String name;

    /**
     * 分类图标
     */
    @ApiModelProperty(value = "分类图标")
    private String iconSrc;


}
