1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
| import { request } from "@/utils/requestGd/index.js"
| import website from '@/config/website'
|
| // 获取工单列表
| export const getGdList = data => {
| return request({
| url: '/system/user/profile/update',
| method: 'post',
| 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,
| },
| })
| }
|
|