feat: 新增部门管理demo

This commit is contained in:
xiaoxian521
2022-04-10 23:54:14 +08:00
parent f3f9c12edf
commit c4ebacedfe
11 changed files with 509 additions and 28 deletions

View File

@@ -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 });
};