import api from '../utils/request'

export interface LoginLog {
  id: number
  user_id?: number
  mobile?: string
  ip_address?: string
  location?: string
  user_agent?: string
  login_method: string
  auth_type: string
  is_success: number
  failure_reason?: string
  created_at: string
}

export interface LoginLogQueryParams {
    skip: number
    limit: number
    mobile?: string
    ip_address?: string
    status?: number
    login_method?: string
    auth_type?: string
    start_date?: string
    end_date?: string
}

export const getLoginLogs = (params: LoginLogQueryParams) => {
  return api.get('/login-logs/', { params })
}

