import { request } from "@/utils/request";
import { ExamParams } from "./types/common";
import { SubjectItem } from "./types/base";

export const subjectList = (data: ExamParams): Promise<SubjectItem[]> =>
  request({
    url: "/api/admin/course/list",
    method: "post",
    data,
  });
export const examList = (): Promise<Exam[]> =>
  request({
    url: "/api/admin/course/list",
    method: "post",
    data,
  });
