import { request } from 'umi';
import type { CardListItemDataType } from './data.d';
import {TableListItem} from "../../../../../admin/src/pages/course/option/data";

export async function viewMyLearningSubject(params: {
  identity_id: number;
  person_id: number;
  data_id: number;
  data_type: number;
  subject_id: number
}){
  return request(' /dsideal_yy/ypt/careerTraining/learning/viewMyLearningSubject', {
    params,
  });
}

export async function listMyLearningChapterCourse(params: {
  chapter_id: number;
  identity_id: number;
  person_id: number;
  subject_id: number
}){
  return request(' /dsideal_yy/ypt/careerTraining/learning/listMyLearningChapterCourse', {
    params,
  });
}

// export async function listMyLearningChapterCourse(params: {
//   chapter_id: number;
//   identity_id: number;
//   person_id: number;
//   subject_id: number
// }){
//   return request('/dsideal_yy/ypt/careerTraining/learning/listMyLearningChapterCourse', {
//     params,
//   });
// }
