新增供应商账号管理功能,包括供应商用户列表、用户信息更新和密码重置功能。

This commit is contained in:
刘倡
2025-07-26 11:29:50 +08:00
parent 0733b0cfaa
commit 0699196eb8
7 changed files with 480 additions and 52 deletions

View File

@ -43,47 +43,18 @@ export async function assignsRoles(params: any) {
data: params,
});
}
// import { TreeDataNode } from 'antd';
// IAM用户列表查询
export async function fetchIamUsers(params: any) {
return request('/api/sys-manager-ebtp-project/v1/sysuser/iam/users', {
method: 'post',
data: params,
});
}
// export function userList(options?: { [key: string]: any }): Promise<{ data: any }> {
// return request('/api/system/userList', {
// method: 'GET',
// ...(options || {}),
// });
// }
// export function treeData(options?: { [key: string]: any }): Promise<{ data: TreeDataNode[] }> {
// return request('/api/system/treeData', {
// method: 'GET',
// ...(options || {}),
// });
// }
// export function fetchUserList(options?: any) {
// return request('/api/sysuser/getPage', {
// method: 'POST',
// data: options,
// });
// }
// //获取用户数据
// export function getUser(userId?: any) {
// return request(`/api/sysuser/${userId}`, {
// method: 'get',
// });
// }
// export function assignsRoles(options?: { [key: string]: any }): Promise<any> {
// return request('/api/sysuser/assignsRoles', {
// method: 'post',
// ...(options || {}),
// });
// }
// //查询用户详情
// export function getOneUserAll(options?: { [key: string]: any }): Promise<{ data: TreeDataNode[] }> {
// return request(`/api/sysuser/getOneUserAll/${options?.id}`, {
// method: 'GET',
// params: options,
// ...(options || {}),
// });
// }
// 同步IAM用户到主表
export async function syncIamUser(user: any) {
return request('/api/sys-manager-ebtp-project/v1/sysuser/sync', {
method: 'post',
data: user,
});
}