import { GET_RECORD_LIST } from './constant'
import axios from './instance'

import type { PageResult, PageRequest } from './'

export interface Record {
  createTime: string
  logId: number
  logMsg: string
  projectName: string
  projectId: number
  updateTime: string
  userName: string
}

export const fetchRecords = (paging: PageRequest) =>
  axios.post<PageResult>(GET_RECORD_LIST, paging)
