郑永安
2023-06-19 6ae336af4670a425ae8892aacda560ec2147d8a7
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
import request from '@/utils/request';
 
 
export async function fetchList(query) {
  return request({
    url: `/wisdom/user?&searchusername=${query.searchusername }&searchname=${query.searchname }`,
    method: 'get'
  });
}
 
export function login(data) {
  return request({
    url: '/sso/login',
    method: 'post',
    data
  });
}
 
export function elogin(data) {
  return request({
    url: '/sso/login',
    method: 'post',
    data
  });
}
 
export async function getOnline() {
  return request({
    url: '/wisdom/user/getOnline',
    method: 'get'
  });
}
 
export function getInfo(token) {
  return request({
    url: '/user/info',
    method: 'get',
    params: { token }
  });
}
 
export function logout() {
  return request({
    url: '/sso/logout',
    method: 'get'
  });
}
 
export function getUserList(data) {
  return request({
    url: '/wisdom/user',
    method: 'post',
    data
  });
}
 
export function addUser(data) {
  return request({
    url: '/system/user',
    method: 'post',
    data
  });
}
 
export function deleteUserById(id) {
  return request({
    url: `system/user/${id}`,
    method: 'delete'
  });
}
 
export function updateUser(data) {
  return request({
    url: 'system/user/',
    method: 'put',
    data
  });
}
 
export async function getUserById(id) {
  return request({
    url: `wisdom/getUSerById?userId=`+id,
    method: 'get'
  });
}
export async function getUser(id) {
  return request({
    url: `wisdom/user/getUser`,
    method: 'get'
  });
}
 
 
export async function getUserById1() {
  return request({
    url: `wisdom/user/findpassword`,
    method: 'get'
  });
}
 
 
export function getRoleList() {
  return request({
    url: 'system/role/optionselect',
    method: 'GET',
  });
}