From a45fa3e2ecb6d9f2ad6c1a5833b19c38aa502a91 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期四, 23 三月 2023 14:02:37 +0800
Subject: [PATCH] update 全新文档 全面上线

---
 ruoyi-ui/src/api/login.js |   43 +++++++++++++++++++++++++++++++++++++------
 1 files changed, 37 insertions(+), 6 deletions(-)

diff --git a/ruoyi-ui/src/api/login.js b/ruoyi-ui/src/api/login.js
index 8b5b6cf..9e878cb 100644
--- a/ruoyi-ui/src/api/login.js
+++ b/ruoyi-ui/src/api/login.js
@@ -1,15 +1,19 @@
 import request from '@/utils/request'
 
 // 鐧诲綍鏂规硶
-export function login(username, password, code, uuid) {
+export function login(tenantId, username, password, code, uuid) {
   const data = {
+    tenantId,
     username,
     password,
     code,
     uuid
   }
   return request({
-    url: '/login',
+    url: '/auth/login',
+    headers: {
+      isToken: false
+    },
     method: 'post',
     data: data
   })
@@ -18,7 +22,7 @@
 // 娉ㄥ唽鏂规硶
 export function register(data) {
   return request({
-    url: '/register',
+    url: '/auth/register',
     headers: {
       isToken: false
     },
@@ -30,7 +34,7 @@
 // 鑾峰彇鐢ㄦ埛璇︾粏淇℃伅
 export function getInfo() {
   return request({
-    url: '/getInfo',
+    url: '/system/user/getInfo',
     method: 'get'
   })
 }
@@ -38,7 +42,7 @@
 // 閫�鍑烘柟娉�
 export function logout() {
   return request({
-    url: '/logout',
+    url: '/auth/logout',
     method: 'post'
   })
 }
@@ -46,7 +50,34 @@
 // 鑾峰彇楠岃瘉鐮�
 export function getCodeImg() {
   return request({
-    url: '/captchaImage',
+    url: '/code',
+    headers: {
+      isToken: false
+    },
+    method: 'get',
+    timeout: 20000
+  })
+}
+
+// 鐭俊楠岃瘉鐮�
+export function getCodeSms() {
+  return request({
+    url: '/sms/code',
+    headers: {
+      isToken: false
+    },
+    method: 'get',
+    timeout: 20000
+  })
+}
+
+// 鑾峰彇绉熸埛鍒楄〃
+export function tenantList() {
+  return request({
+    url: '/auth/tenant/list',
+    headers: {
+      isToken: false
+    },
     method: 'get'
   })
 }

--
Gitblit v1.9.3