import type { TaskDetailData } from '~/api/response/response_task_detail'

export interface ResponseLoverShutDown {
  status: number
  message: string
  data: {
    list: LoverShutDownListItem[]
    total: number
  }
}

export interface LoverShutDownListItem {
  id: string
  task_id: string
  lover_id: string
  statusLabel: string
  ETD: string
  ETA: string
  addTime: string
  duration: string
  distance: string
  created_at: string
  updated_at: string
  task: TaskDetailData
}

export class ResponseLoverShutDownConvert {
  public static toMap(json: string): ResponseLoverShutDown {
    return JSON.parse(json)
  }

  public static toJson(value: ResponseLoverShutDown): string {
    return JSON.stringify(value)
  }
}
