From 3391bcb2b07054bfa7406764fa0a68865ab98dac Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Thu, 22 Jan 2026 14:59:50 +0800
Subject: [PATCH] feat:app调整

---
 uniapps/work-app/src/api/user/index.js |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/uniapps/work-app/src/api/user/index.js b/uniapps/work-app/src/api/user/index.js
index 5a3fc98..12e344d 100644
--- a/uniapps/work-app/src/api/user/index.js
+++ b/uniapps/work-app/src/api/user/index.js
@@ -22,6 +22,28 @@
 
 /** 退出登录 */
 export const logout = () => post("/user/logout")
+// 工单用户登录接口
+export const ticketLoginInterfaceApi = (tenantId, deptId, roleId, username, password, type, key, code) => {
+  return request({
+    url: '/blade-auth/oauth/token',
+    method: 'post',
+    header: {
+      'Tenant-Id': tenantId,
+      'Dept-Id': website.switchMode ? deptId : '',
+      'Role-Id': website.switchMode ? roleId : '',
+      'Captcha-Key': key,
+      'Captcha-Code': code,
+    },
+    params: {
+      tenantId,
+      username,
+      password,
+      grant_type: 'password',
+      scope: 'all',
+      type,
+    },
+  })
+}
 
 // 用户登录接口
 export const loginByUsername = (tenantId, deptId, roleId, username, password, type, key, code) => {

--
Gitblit v1.9.3