import request from "./request";

// get
import { get } from "./request";
// 定义获取的函数
/**
 * 
 * @param {*} searchKey 
 * @param {*} index 
 * @param {*} size 
 * @returns 
 */



// 获取用户信息
export const getUserApi = (searchKey, index, size) => {
    return get(`/api/user?searchKey=${searchKey}&index=${index}&size=${size}`);
}

// 登录接口
export const getLogin = (loginName, password) => {
    return get(`/api/user/login?loginName=${loginName}&password=${password}`);
}