/**
 * @desc 分页条件查询
 */

import * as defs from '../../baseClass'
import { defHttp } from '/@/utils/http/axios'

export class Params {
    /** 分页条数 */
    pageSize: number
    /** 当前页数 */
    pageNo: number
    /** 排序字段 */
    sortField?: string
    /** 排序方向（ASC|DESC） */
    sortOrder?: string
}

export const init = new defs.ResultPageVoString()

export function request(params: Params, config?: http.RequestConfig<Params>, options?: http.RequestOptions) {
    return defHttp.request(
        {
            url: '/example/page',
            method: 'GET',
            params,

            ...config,
        },
        options,
    )
}
