refactor: ♻️ 移除 log 和完善 mock 接口

This commit is contained in:
hxr
2024-01-10 23:43:59 +08:00
parent a7233960e3
commit 06c448ebbc
10 changed files with 970 additions and 140 deletions

View File

@@ -30,4 +30,46 @@ export default defineMock([
msg: "一切ok",
},
},
{
url: "/api/v1/dept",
method: ["GET"],
body: {
code: "00000",
data: [
{
id: 1,
parentId: 0,
name: "有来技术",
sort: 1,
status: 1,
children: [
{
id: 2,
parentId: 1,
name: "研发部门",
sort: 1,
status: 1,
children: [],
createTime: null,
updateTime: "2022-04-19 12:46",
},
{
id: 3,
parentId: 1,
name: "测试部门",
sort: 1,
status: 1,
children: [],
createTime: null,
updateTime: "2022-04-19 12:46",
},
],
createTime: null,
updateTime: null,
},
],
msg: "一切ok",
},
},
]);