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

// 该文件自动生成，请勿手动修改！

// --------------------------------------------------------------------------
// 系统用户服务
// --------------------------------------------------------------------------

import { request } from '@umijs/max';

/** 修改密码 POST /api/sys/user/change-password */
export async function changePassword(
    data: API.ChangeSysUserPasswordInput,
    options?: { [key: string]: any },
) {
    const url = '/api/sys/user/change-password';
    const config = { method: 'POST', data, ...(options || {}) };
    const res = await request<API.ResponseType<any>>(url, config);
    return res?.data;
}

/** 查询简要用户列表 POST /api/sys/user/query-user-simple-page-list */
export async function queryUserSimplePageList(
    data: API.SysUserPageInput,
    options?: { [key: string]: any },
) {
    const url = '/api/sys/user/query-user-simple-page-list';
    const config = { method: 'POST', data, ...(options || {}) };
    const res = await request<API.ResponseType<API.PageResponse<API.SysUserSimpleOutput>>>(
        url,
        config,
    );
    return res?.data;
}

export default {
    /** 修改密码 POST /api/sys/user/change-password */
    changePassword,
    /** 查询简要用户列表 POST /api/sys/user/query-user-simple-page-list */
    queryUserSimplePageList,
};
