export interface PageQueryParam {
    pageNo: number | string;
    pageSize: number | string;
}

export interface PageResult<T> {
    content: T;
    first: boolean;
    last: boolean;
    number: number;
    numberOfElements: number;
    size: number;
    sort: SortObj;
    totalElements: number;
    totalPages: number;
}

export interface SortObj {
    property: number;
    direction: string;
    ascending: boolean;
    descending: boolean;
    ignoreCase: boolean;
    nullHandling: string;
}

export interface BaseResult {
    code: number;
    data: boolean;
    msg: string;
}
