text: import { API_PATH } from './_env';
  
  export default [
    // 開設課程 - 選擇科目
    {
      method: 'POST',
      path: `${API_PATH}/training/classes`,
      body: JSON.stringify([
        {
          companyId: '2',
          lessonId: 15,
          name: 'Test',
          instructorId: 61,
          comment: '123',
          systemFileInfoDTOs: [{ fileId: '55', type: '.jpg' }],
          status: null,
          sessions: null,
          needNotify: false,
        },
      ]),
    },
    // 開設課程 - 課程資訊 (選擇科目, 編輯)
    {
      method: 'PUT',
      path: `${API_PATH}/training/classes`,
      body: JSON.stringify({
        classDTOs: [
          {
            id: 60,
            companyId: 2,
            lessonId: 15,
            name: 'Test',
            instructorId: 61,
            comment: '123',
            systemFileInfoDTOs: [
              {
                id: 112,
                linkType: '_SYS_D_J',
                foreighKey: 60,
                foreighDTO: null,
                fileId: 55,
                fileDTO: {
                  id: '55',
                  path:
                    'http://localhost/upload/b5e816a2-d402-498a-ae58-861de93a9df7.jpg',
                  name: 'b5e816a2-d402-498a-ae58-861de93a9df7.jpg',
                  type: '.jpg',
                  description: null,
                  tags: null,
                  size: 43659,
                  originalName: '哈士鵝.jpg',
                  remoteFullPath: null,
                },
                type: '.jpg',
                language: null,
                country: null,
                status: null,
                display: null,
                externalPublished: null,
                description: null,
                comment: null,
                issuedDate: null,
                revisionDate: null,
                lastModifiedDtm: 1562626742000,
                lastModifiedBy: 1,
                uploadedTime: null,
                uploadedBy: null,
                org_ids: null,
                edit_disabled: null,
                orgIds: null,
              },
            ],
            status: '_TRAINING_AG_1',
            sessions: [
              {
                locationId: '10',
                endDtm: '2019-07-09T09:59:00.000Z',
                startDtm: '2019-07-09T07:59:00.000Z',
              },
            ],
            needNotify: false,
          },
        ],
        needCheck: true,
      }),
    },
    // 開設課程 - 受訓員工 - 編輯人員
    {
      method: 'PUT',
      path: `${API_PATH}/training/classes/60/rosters`,
      body: JSON.stringify({
        classRosterDTOs: [
          { classId: 60, employeeId: '49' },
          { classId: 60, employeeId: '88' },
        ],
        needCheck: false,
      }),
    },
    // 開設課程 - 受訓員工
    {
      method: 'POST',
      path: `${API_PATH}/training/classes/60/rosters/list`,
      body: JSON.stringify({
        pagingTool: { currentPage: 1, pageSize: 10 },
        queryOrderBies: [{ columnName: 'employee.code', orderType: 'asc' }],
      }),
    },
    // 開設課程 - 發布
    {
      method: 'POST',
      path: `${API_PATH}/training/classes/60/live`,
      body: JSON.stringify({ needCheck: true }),
    },
    // 搜尋課程
    {
      method: 'POST',
      path: `${API_PATH}/training/classes/list`,
      body: JSON.stringify({
        pagingTool: { currentPage: 1, pageSize: 10 },
        queryCriterias: [],
        queryOrderBies: [{ columnName: 'id', orderType: 'desc' }],
      }),
    },
    // 取消課程
    {
      method: 'POST',
      path: `${API_PATH}/training/classes/60/cancel`,
      body: JSON.stringify({}),
    },
    // 登錄分數
    {
      method: 'GET',
      path: `${API_PATH}/training/classes/59/attendances`,
    },
    // 打分數、勾選出勤
    {
      method: 'PUT',
      path: `${API_PATH}/training/classes/59/attendances`,
      body: JSON.stringify([
        {
          id: 224,
          classId: 59,
          employeeId: 49,
          grade: 55,
          exemptionId: null,
          participation: true,
          comment: null,
          fileIds: [],
          fileDTOs: null,
          status: '_TRAINING_AH_5',
          employee: {
            id: '49',
            code: '012736',
            contractor: 'false',
            first_name: 'Stan',
            last_name: 'Fang',
            gender: null,
            org_ids: '189',
            physical_id: [],
            facility_id: null,
            primary_job: '5',
            primary_job_code: null,
            primary_job_name: null,
            job_grade: null,
            shift_code: null,
            supervisor_id: null,
            hired_date: null,
            identificationCardNumber: null,
            birth_date: null,
            report_start_date: null,
            report_end_date: null,
            status: '_SYS_A9_1',
            statusDesc: null,
            clock_number: null,
            work_phone_number: null,
            email_primary: null,
            service_date: null,
            comment: null,
            org_code: null,
            orgs: [
              {
                id: '189',
                org_type: '_SYS_A8_2',
                code: 'CPU',
                ext_reg_code: null,
                short_name: '電算本部',
                full_name: '電算本部',
                parent_id: '2',
                description: null,
                status: '_SYS_A9_1',
                manager_id: null,
                has_children: null,
                path: null,
                childCorporates: null,
                corporateAttachmentDTOs: null,
                address_line_1: null,
                address_line_2: null,
                city: null,
                province: null,
                zip_code: null,
                country: null,
                county: null,
                domain_name: null,
                short_name_en: null,
                ful_name_en: null,
                ouid: null,
                parent_ouid: null,
                oulevel: null,
                epunit: null,
                punit: null,
                punit2: null,
                top_ouid: null,
                top_ouid2: null,
                full_name2: null,
              },
            ],
            physicals: [],
            supervisor_name: null,
            supervisor_first_name: null,
            supervisor_last_name: null,
            last_name_ch: '方',
            first_name_ch: '國憲',
            full_name: '方國憲 Stan Fang',
            version_count: null,
            second_job_names: null,
            second_job_ids: [],
            second_jobs: [],
            user_info: null,
            user_id: 51,
            employeeAttachmentDTOs: null,
          },
          roster: false,
        },
      ]),
    },
    // 刪除課程
    {
      method: 'DELETE',
      path: `${API_PATH}/training/classes`,
      body: JSON.stringify([60]),
    },
  ];
  