package com.mmc.pms.entity;

import com.mmc.pms.model.dto.DeviceCategoryDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Author small @Date 2023/5/15 15:03 @Version 1.0
 */
@Data
public class DeviceCategory extends BaseEntity {
  @ApiModelProperty(name = "id", value = "类目id", example = "1")
  private Integer id;

  @ApiModelProperty(name = "id", value = "类目名称", example = "无人机")
  private String name;

  public DeviceCategoryDTO deviceCategory() {
    return DeviceCategoryDTO.builder().id(this.id).name(this.name).build();
  }
}
