declare namespace API {


  type Response<T> = {
    status: number,
    data: T,
    msg: string
  }


  export namespace LearnPlan {

    type Report = {
      userNickName: string,
      profilePhoto: string,
      totalStudyDays: number,
      itemName: string,
      totalDuration: number,
      totalStars: number,
      totalQuantity: number,
      correctQuantity: number,
      accuracy: number,
      task3Image: string,
      task3Audio: string,
      userLearnShareAudio: string,
      exerciseCardResultList: {
        capability: string,
        totalQuantity: number,
        correctQuantity: number
      }[],
      teachDescription: string
    }

    type Task = {
      id: string,
      itemId: string,
      userId: string,
      shared: number,
      report: Report
    }

  }

}