/**
 * @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.ResultPageVoPermissionVo()

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

            ...config,
        },
        {
            ...options,
        },
    )
}
