package com.izouma.zhirongip.dto;

import cn.hutool.core.bean.BeanUtil;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import com.izouma.zhirongip.domain.resource.Digital;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "数据")
public class ProductDTO extends BaseRowModel {
    @ExcelProperty(value = "产品类别")
    private String settingName;

    @ExcelProperty(value = "行业领域")
    private String fieldName;

    @ExcelProperty(value = "产品名称")
    private String name;

    @ExcelProperty(value = "产品所属人")
    private String owner;

    @ExcelProperty(value = "附图")
    private String img;

    @ExcelProperty(value = "描述")
    private String manual;

    public ProductDTO(Digital digital) {
        BeanUtil.copyProperties(digital, this);
    }

}
