package com.friday.tooldriver.dto.infodator.response;

import com.alibaba.fastjson.annotation.JSONField;
import com.friday.tooldriver.dto.infodator.common.PageParam;
import com.friday.tooldriver.dto.infodator.request.QueryRequestDto;
import lombok.*;

import java.util.List;

@EqualsAndHashCode(callSuper=false)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResponseDto<T> extends PageParam {
    private QueryRequestDto queryRequest;
    @JSONField(name="results")
    private List<T> value;

    @Builder(builderMethodName = "RobotResponseDtoDtoBuilder")
    public ResponseDto(Integer pageNo, Integer pageSize, Integer totalCount, List<T> value){
        super(pageNo,pageSize,totalCount);
        this.value = value;
    }


}
