refactor: 优化导出下载功能

This commit is contained in:
秋帆
2024-04-10 22:40:29 +08:00
parent 63da55ab03
commit 2f29a6e81c
6 changed files with 92 additions and 12 deletions

View File

@@ -12,3 +12,11 @@ export function listLog(query: System.LogQuery) {
export function getLog(id: string) {
return http.get<System.LogDetailResp>(`${BASE_URL}/${id}`)
}
/** @desc 导出日志列表 */
export function exportLog(query: System.LogQuery) {
return http.download<any>(`${BASE_URL}/export/login`, query)
}
/**@desc 导出操作日志 */
export function exportOperateLog(query: System.LogQuery) {
return http.download<any>(`${BASE_URL}/export/operation`, query)
}