fix: 用户管理页面
This commit is contained in:
@@ -47,7 +47,7 @@ export function exportUser(query: Record<string, any>) {
|
||||
*/
|
||||
export function listUser(query: Record<string, any>) {
|
||||
return request({
|
||||
url: '/system/user/list',
|
||||
url: '/userManage/v1/users',
|
||||
method: 'get',
|
||||
params: query,
|
||||
});
|
||||
@@ -60,7 +60,7 @@ export function listUser(query: Record<string, any>) {
|
||||
*/
|
||||
export function getUser(userId: string | number = '0') {
|
||||
return request({
|
||||
url: `/system/user/${userId}`,
|
||||
url: `/userManage/v1/user/${userId}`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
@@ -72,7 +72,7 @@ export function getUser(userId: string | number = '0') {
|
||||
*/
|
||||
export function addUser(data: Record<string, any>) {
|
||||
return request({
|
||||
url: '/system/user',
|
||||
url: '/userManage/v1/user',
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
@@ -85,7 +85,7 @@ export function addUser(data: Record<string, any>) {
|
||||
*/
|
||||
export function updateUser(data: Record<string, any>) {
|
||||
return request({
|
||||
url: '/system/user',
|
||||
url: '/userManage/v1/user',
|
||||
method: 'put',
|
||||
data: data,
|
||||
});
|
||||
@@ -98,7 +98,7 @@ export function updateUser(data: Record<string, any>) {
|
||||
*/
|
||||
export function delUser(userId: string | number) {
|
||||
return request({
|
||||
url: `/system/user/${userId}`,
|
||||
url: `/userManage/v1/user/${userId}`,
|
||||
method: 'delete',
|
||||
});
|
||||
}
|
||||
@@ -111,7 +111,7 @@ export function delUser(userId: string | number) {
|
||||
*/
|
||||
export function resetUserPwd(userId: string | number, password: string) {
|
||||
return request({
|
||||
url: '/system/user/resetPwd',
|
||||
url: '/userManage/v1/user/resetPwd',
|
||||
method: 'put',
|
||||
data: {
|
||||
userId,
|
||||
@@ -131,7 +131,7 @@ export function changeUserStatus(
|
||||
status: string | number
|
||||
) {
|
||||
return request({
|
||||
url: '/system/user/changeStatus',
|
||||
url: '/userManage/v1/user/changeStatus',
|
||||
method: 'put',
|
||||
data: {
|
||||
userId,
|
||||
|
||||
Reference in New Issue
Block a user