cmc-web/packages/api/system/log.ts

31 lines
696 B
TypeScript
Raw Normal View History

2024-08-20 12:11:31 +00:00
/**
* Created by HaijunZhang on 2019/7/23.
*/
import { request } from '@cmp/cmp-element'
import { wrapperParams, downloadFile } from '@csc/common/utils'
const baseUrl = '/sms/v1/logs'
2024-08-21 01:17:14 +00:00
export function getLog(params: Base.IListParams) {
2024-08-20 12:11:31 +00:00
return request.get(baseUrl, {
params
})
}
export function getLogStats() {
return request.get(`${baseUrl}/stats`)
}
export function getLogView() {
return request.get('/cos/v1/logview')
}
export function exportLog() {
downloadFile('/cos/v1/logfile')
}
export function accessLog(params: any) {
downloadFile('/sms/v1/logs/archive', params)
}
export function getRecords(params: any) {
return request.get('/sms/v1/archives', {
params
})
}