package com.jwipc.tender.dto;

import com.jwipc.aggregation.annotation.RelationAggregationField;
import com.jwipc.sys.client.UserClient;
import com.jwipc.sys.client.dto.FileResposeCDTO;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-02-29
 */
@Getter
@Setter
public class TenderQuestionDetailDTO extends TenderQuestionBaseDTO {


    @RelationAggregationField(
            masterIdField = "questionUserId",
            relationIdField = "id",
            relationNameField = "username",
            relationClientClass = UserClient.class,
            relationMethod = "getByUserIds"
    )
    private String supplier;
    @Serial
    private static final long serialVersionUID = -5067292994108623655L;
    List<FileResposeCDTO> files;
}
