package com.mmc.pms.entity;

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

/**
 * @Author small @Date 2023/5/15 20:26 @Version 1.0
 */
@Data
@ApiModel("产品类目")
public class ProductCategory {
  @ApiModelProperty("1")
  private Integer id;

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

  public ProductCategoryDTO productCategoryDTO() {
    return ProductCategoryDTO.builder().id(this.id).name(this.name).build();
  }
}
