24 lines
654 B
TypeScript
24 lines
654 B
TypeScript
import { PagedResultDto } from '@/proxy'
|
|
import { AuditLogDto } from '@/proxy/auditLog/audit-log'
|
|
import apiService from '@/services/api.service'
|
|
|
|
export interface AuditLogListRequestDto {
|
|
skipCount?: number
|
|
maxResultCount?: number
|
|
sorting?: string
|
|
listFormCode?: string
|
|
entityId?: string
|
|
}
|
|
|
|
class AuditLogService {
|
|
async getList(params?: AuditLogListRequestDto): Promise<PagedResultDto<AuditLogDto>> {
|
|
const response = await apiService.fetchData<PagedResultDto<AuditLogDto>>({
|
|
url: '/api/app/audit-log',
|
|
method: 'GET',
|
|
params,
|
|
})
|
|
return response.data
|
|
}
|
|
}
|
|
|
|
export const auditLogService = new AuditLogService()
|