import { request } from '@/utils/request'

interface HistoryItem {
  nodename: string
  actionname: string
  username: string
  actiontime: string
  memo: string
  comments: string
  workid: string
  flowname: string
  nodeid: string
  action: string
}

interface HistoryResponse {
  total: number
  records: HistoryItem[]
}

export function getHistory(workId: string) {
  return request.get<string>(
    '/api/workflow/process/history', 
    {
      params: {
        workId
      }
    }
  )
} 