package com.mmc.pms.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.mmc.pms.model.dto.ModelDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Author small @Date 2023/5/15 16:12 @Version 1.0
 */
@Data
@TableName("model")
@ApiModel("型号")
public class Model {
  @ApiModelProperty("1")
  private Integer id;

  @ApiModelProperty("型号名称")
  private String name;

  public ModelDTO modelDTO() {
    return ModelDTO.builder().id(this.id).name(this.name).build();
  }
}
