mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-09 13:53:38 +08:00
feat: 新增部门管理demo
This commit is contained in:
@@ -1,12 +1,17 @@
|
||||
import { http } from "../utils/http";
|
||||
|
||||
interface jobType extends Promise<any> {
|
||||
interface postType extends Promise<any> {
|
||||
data?: object;
|
||||
code?: number;
|
||||
msg?: string;
|
||||
}
|
||||
|
||||
// 获取岗位管理列表
|
||||
export const getJobList = (data?: object): jobType => {
|
||||
export const getPostList = (data?: object): postType => {
|
||||
return http.request("post", "/system", { data });
|
||||
};
|
||||
|
||||
// 获取部门管理列表
|
||||
export const getDeptList = (data?: object): postType => {
|
||||
return http.request("post", "/dept", { data });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user