import api from '../utils/request'

export interface OperationLog {
  id: number
  app_id?: number
  operator_id: number
  operator_mobile?: string
  action_type: string
  target_user_id?: number
  target_mobile?: string
  ip_address?: string
  details?: any
  created_at: string
}

export interface LogQueryParams {
    skip: number
    limit: number
    action_type?: string
    keyword?: string
    start_date?: string
    end_date?: string
}

export const getLogs = (params: LogQueryParams) => {
  return api.get('/logs/', { params })
}

