| | |
| | | export interface UserSimple extends User { |
| | | id: number; |
| | | } |
| | | |
| | | /** 用户导入结果 */ |
| | | export interface UserImportRespVO { |
| | | createUsernames?: string[]; // 新增成功的用户名 |
| | | updateUsernames?: string[]; // 更新成功的用户名 |
| | | failureUsernames?: Record<string, string>; // 导入失败的用户名及原因 |
| | | } |
| | | } |
| | | |
| | | /** 查询用户管理列表 */ |
| | |
| | | |
| | | /** 导入用户 */ |
| | | export function importUser(file: File, updateSupport: boolean) { |
| | | return requestClient.upload('/system/user/import', { |
| | | file, |
| | | updateSupport, |
| | | }); |
| | | return requestClient.upload<SystemUserApi.UserImportRespVO>( |
| | | '/system/user/import', |
| | | { |
| | | file, |
| | | updateSupport, |
| | | }, |
| | | ); |
| | | } |
| | | |
| | | /** 用户密码重置 */ |