From 230e3be3fcb3926bb320590ab9ac4d2642c56193 Mon Sep 17 00:00:00 2001 From: ray <1490493387@qq.com> Date: Wed, 28 Aug 2024 00:46:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20:sparkles:=20=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83mock=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mock/user.mock.ts | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/mock/user.mock.ts b/mock/user.mock.ts index da1d2243..3d0163a3 100644 --- a/mock/user.mock.ts +++ b/mock/user.mock.ts @@ -134,8 +134,8 @@ export default defineMock([ // 重置密码 { - url: "users/:userId/password", - method: ["PATCH"], + url: "users/:userId/password/reset", + method: ["PUT"], body({ query }) { return { code: "00000", @@ -177,6 +177,30 @@ export default defineMock([ }, }, }, + + { + url: "users/profile", + method: ["PUT"], + body({ query }) { + return { + code: "00000", + data: null, + msg: "修改个人信息成功", + }; + }, + }, + + { + url: "users/password", + method: ["PUT"], + body({ query }) { + return { + code: "00000", + data: null, + msg: "修改密码成功", + }; + }, + }, ]); // 用户映射表数据