package com.mmc.pms.entity;

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

/**
 * @Author small @Date 2023/5/15 15:34 @Version 1.0
 */
@Data
@ApiModel("品牌")
@TableName("brand")
public class Brand extends BaseEntity {
  @ApiModelProperty("1")
  private Integer id;

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

  public BrandDTO brandDTO() {
    return BrandDTO.builder().id(this.id).name(this.name).build();
  }
}
