mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 17:07:19 +08:00
* refactor: permission * chore: update * chore: update * chore: update * chore: update * chore: update * chore: update * chore: update * chore: update * chore: update * fix: 修复`mix`混合模式导航在生产环境左侧菜单一定机率不显示的问题 * chore: update * chore: update * chore: update * chore: update * chore: update * chore: update * chore: update * chore: update
27 lines
604 B
TypeScript
27 lines
604 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 });
|
|
};
|