package com.jwipc.tender.dto;

import com.jwipc.aggregation.annotation.RelationAggregationField;
import com.jwipc.sys.client.FileClient;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 招投标附件
 * </p>
 *
 * @author zhangjie
 * @since 2024-03-01
 */
@Getter
@Setter
public class TenderAttachmentDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long fileId;

    @RelationAggregationField(
            masterIdField = "fileId",
            relationIdField = "id",
            relationNameField = "fileName",
            relationClientClass = FileClient.class,
            relationMethod = "getFileInfos"
    )
    private String fileName;
    /**
     * 主数据的id
     */
    private Long masterId;

    private LocalDateTime createTime;

    private String remark;

    /**
     * 类型很多，需要查看代码中的枚举 TenderAttachmentType
     */
    private Integer  type;
}
