mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-06 00:18:51 +08:00
27 lines
603 B
TypeScript
27 lines
603 B
TypeScript
import { http } from "@/utils/http";
|
|
|
|
type Result = {
|
|
success: boolean;
|
|
data?: {
|
|
/** 列表数据 */
|
|
list: Array<any>;
|
|
/** 总数 */
|
|
total?: number;
|
|
};
|
|
};
|
|
|
|
/** 获取用户管理列表 */
|
|
export const getUserList = (data?: object) => {
|
|
return http.request<Result>("post", "/user", { data });
|
|
};
|
|
|
|
/** 获取角色管理列表 */
|
|
export const getRoleList = (data?: object) => {
|
|
return http.request<Result>("post", "/role", { data });
|
|
};
|
|
|
|
/** 获取部门管理列表 */
|
|
export const getDeptList = (data?: object) => {
|
|
return http.request<Result>("post", "/dept", { data });
|
|
};
|