export class DataInput<T = any> {
  data: T | undefined;
  pageNum: number | undefined;
  pageSize: number | undefined;
  param: any;
  searchText: string | undefined;
  sortField: string | undefined;
  sortOrder: string | undefined;
  constructor(
    options: {
      data?: T;
      pageNum?: number;
      pageSize?: number;
      param?: any;
      searchText?: string;
      sortField?: string;
      sortOrder?: string;
    } = {}
  ) {
    this.data = options.data;
    this.pageNum = options.pageNum;
    this.pageSize = options.pageSize;
    this.param = options.param;
    this.searchText = options.searchText;
    this.sortField = options.sortField;
    this.sortOrder = options.sortOrder;
  }
}
