From 6eeeb44d39e7afff85ae6ec6f22bf3c48222a84d Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Thu, 22 Jan 2026 15:06:45 +0800
Subject: [PATCH] feat: app-gd

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

diff --git a/uniapps/work-app/src/api/work/index1.js b/uniapps/work-app/src/api/work/index1.js
index 304174d..1109a77 100644
--- a/uniapps/work-app/src/api/work/index1.js
+++ b/uniapps/work-app/src/api/work/index1.js
@@ -1,4 +1,6 @@
 import { request } from "@/utils/requestGd/index.js"
+import website from '@/config/website'
+
 // 获取工单列表
 export const getGdList = data => {
 	return request({
@@ -7,3 +9,25 @@
 		data,
 	});
 };
+// 工单用户登录接口
+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,
+		},
+	})
+}

--
Gitblit v1.9.3