|
|
@@ -1,5 +1,5 @@ |
|
|
|
import request from '@/request'; |
|
|
|
import { User, UserVO, UserPageReqVO, PageData } from '@/models'; |
|
|
|
import { User, UserVO, UserPageReqVO, UserExportReqVO, PageData } from '@/models'; |
|
|
|
|
|
|
|
const BASE_URL = '/admin-api/system/user'; |
|
|
|
|
|
|
@@ -11,7 +11,7 @@ export default { |
|
|
|
|
|
|
|
// 查询用户管理列表 |
|
|
|
getUserPageApi: (params: UserPageReqVO) => { |
|
|
|
return request.get<PageData<UserVO>>(`${BASE_URL}/page`, {params}) |
|
|
|
return request.get<PageData<UserVO>>(`${BASE_URL}/page`, { params }) |
|
|
|
}, |
|
|
|
|
|
|
|
// 查询用户详情 |
|
|
@@ -35,14 +35,14 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
// 导出用户 |
|
|
|
// exportUserApi: (params: UserExportReqVO) => { |
|
|
|
// return request.download(`${BASE_URL}/export`, params ) |
|
|
|
// }, |
|
|
|
exportUserApi: (params: UserExportReqVO) => { |
|
|
|
return request.get(`${BASE_URL}/export`, { params, responseType: 'blob' }) |
|
|
|
}, |
|
|
|
|
|
|
|
// 下载用户导入模板 |
|
|
|
// importUserTemplateApi: () => { |
|
|
|
// return request.download(`${BASE_URL}/get-import-template` ) |
|
|
|
// }, |
|
|
|
importUserTemplateApi: () => { |
|
|
|
return request.get(`${BASE_URL}/get-import-template`, { responseType: 'blob' }) |
|
|
|
}, |
|
|
|
|
|
|
|
// 用户密码重置 |
|
|
|
resetUserPwdApi: (id: number, password: string) => { |
|
|
|