/*
 * @Author: your name
 * @Date: 2021-02-07 13:40:50
 * @LastEditTime: 2021-12-02 15:59:52
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue3-element-admin\src\api\modules\system.js
 */
// const Mock = require("mockjs"); //引入
const config = require("../config")

module.exports = {
    login: {
        url: config.fly_url + "user/phone",
        type: "post",
    },
    menuList: {
        // uField:["current","size"],
        url: config.fly_url + "user/menuList",
        type: "get",
    },
    menuAdd: {
        query:["name","url"],
        url: config.fly_url + "user/saveOrUpdateMenu",
        type: "post",
    },
    menuEdit: {
        query:["id","name","url"],
        url: config.fly_url + "user/saveOrUpdateMenu",
        type: "post",
    },
    menuDel: {
        query:["id"],
        url: config.fly_url + "user/delMenu",
        type: "post",
    },
    userList:{
        url:config.fly_url + "user/userList",
        type: "get",
    },
    roleList:{
        url:config.fly_url + "user/roleList",
        type: "get",
    },
    roleDel:{
        url:config.fly_url + "user/delRole",
        type: "post",
    }
};
