// @ts-ignore
/* eslint-disable */

declare namespace Common {
  type ServiceResult<T> = {
    success: boolean;
    data: T;
    errorCode: string;
    errorMessage: string;
    showType: number;
    traceId: string;
    host: string;
  };

  type IdDto = {
    id: string;
  };

  type RemoveDto = {
    id: string;
  };

  type GraphqlParams = {
    operationName: string | null;
    variables: any;
    query?: string;
  };

  type GraphqlResult = {
    data: any;
    errors: any[];
  };

  type PageParams = {
    current: number;
    pageSize: number;
    sort?: Sort;
  };

  type PageResult<T> = {
    current: number;
    pageSize: number;
    total: number;
    data: T[];
  };

  type GraphqlPage = {
    totalPages: number;
    totalElements: number;
    content: any[];
  };
}
