| | |
| | | remark: string; |
| | | createTime?: Date; |
| | | } |
| | | |
| | | /** 岗位导入结果 */ |
| | | export interface PostImportRespVO { |
| | | createPostNames?: string[]; // 新增成功的岗位名 |
| | | updatePostNames?: string[]; // 更新成功的岗位名 |
| | | failurePostNames?: Record<string, string>; // 导入失败的岗位名及原因 |
| | | } |
| | | } |
| | | |
| | | /** 查询岗位列表 */ |
| | |
| | | |
| | | /** 导入岗位 */ |
| | | export function importPost(file: File, updateSupport: boolean) { |
| | | return requestClient.upload('/system/post/import', { |
| | | file, |
| | | updateSupport, |
| | | }); |
| | | return requestClient.upload<SystemPostApi.PostImportRespVO>( |
| | | '/system/post/import', |
| | | { |
| | | file, |
| | | updateSupport, |
| | | }, |
| | | ); |
| | | } |