All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.front.core-api-index.ts.ftl Maven / Gradle / Ivy

There is a newer version: 2.0.4
Show newest version
import {get, postJ} from "@/request";
import {ILoginParam,ISystemAdmin,IMenu} from "@/apis/core/types";
import {IPageRes} from "@/apis/page";

/**
 * 获取后端菜单
 */
export const getMenuApi = () => get("/${folderName}/admin/getMenuTree")
/**
 * 用户登录
 * @param id 用户data
 */
export const userLoginApi = (data: ILoginParam) => get("/${folderName}/admin/login", data)
/**
 * 获取用户信息
 * @param id
 */
export const getAccountInfoApi = () => get("/${folderName}/admin/getAccountInfo")


/**
* 获取用户列表
*/
export const getSystemAdminApi = (param: ISystemAdmin) => get>("/${folderName}/systemaccount/query", param)
/**
* 添加用户
*/
export const systemAdminCreateApi = (data: ISystemAdmin) => postJ("/${folderName}/systemaccount/create",data)
/**
* 修改用户
*/
export const systemAdminModifyApi = (data: ISystemAdmin) => postJ("/${folderName}/systemaccount/modify",data)
/**
* 删除用户
* @param id 用户id
*/
export const systemAdminRemoveApi = (id: string) => get("/${folderName}/systemaccount/remove/" + id)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy