zhengnaiwen_citu 1 год назад
Родитель
Сommit
6b6b058735
1 измененных файлов с 33 добавлено и 0 удалено
  1. 33 0
      src/api/common/index.js

+ 33 - 0
src/api/common/index.js

@@ -14,4 +14,37 @@ export const smsLogin = async (data) => {
     url: '/app-api/menduner/system/auth/sms-login',
     data
   })
+}
+
+
+// 密码登录
+export const passwordLogin = async (data) => {
+  return await request.post({
+    url: '/app-api/menduner/system/auth/login',
+    data
+  })
+}
+
+// 退出登录
+export const logout = async () => {
+  return await request.post({
+    url: '/app-api/menduner/system/auth/logout'
+  })
+}
+
+
+// 修改密码
+export const updatePassword = async (data) => {
+  return await request.post({
+    url: '/app-api/menduner/system/mde-user/update-password',
+    data
+  })
+}
+
+// 重置密码
+export const resetPassword = async (data) => {
+  return await request.post({
+    url: '/admin-api/menduner/system/mde-user/update-password',
+    data
+  })
 }