fix: 用户管理页面

This commit is contained in:
TsMask
2023-09-05 17:11:22 +08:00
parent 0beb0c278e
commit 1ab5c4f3c6
3 changed files with 71 additions and 180 deletions

View File

@@ -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,