Skip to content

Commit 21a2758

Browse files
committed
feat: ✨ 添加个人中心mock接口
1 parent b2da5ff commit 21a2758

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

mock/user.mock.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,27 @@ export default defineMock([
156156
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
157157
},
158158
},
159+
160+
{
161+
url: "users/profile",
162+
method: ["GET"],
163+
body: {
164+
code: "00000",
165+
data: {
166+
id: 2,
167+
username: "admin",
168+
nickname: "系统管理员",
169+
avatar:
170+
"https://foruda.gitee.com/images/1723603502796844527/03cdca2a_716974.gif",
171+
gender: 1,
172+
mobile: "17621210366",
173+
email: null,
174+
deptName: "有来技术",
175+
roleNames: "系统管理员",
176+
createTime: "2019-10-10",
177+
},
178+
},
179+
},
159180
]);
160181

161182
// 用户映射表数据

0 commit comments

Comments
 (0)