course.ts 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import { usePost, stringify, useGet } from "@/.cool";
  2. import type { FileList } from '../types/index'
  3. export interface SubjectCourseResult {
  4. id?: string
  5. subjectId?: string
  6. catalogId?: string
  7. mainTitle?: string
  8. assistantTitle?: string
  9. iconPath?: string
  10. sortNum?: string
  11. remark?: string
  12. updateUserId?: string
  13. updateUserName?: string
  14. createdUserId?: string
  15. createdUserName?: string
  16. createdTime?: string
  17. updateTime?: string
  18. delFlag?: boolean
  19. trialPlay?: boolean
  20. feeType?: number
  21. gameHtmlPath?: string
  22. videoPath?: string
  23. detailItem?: any
  24. practiceList?: any[]
  25. testItem?: any
  26. diaryItem?: any
  27. courseUserProgress?: any
  28. fileList?: FileList[]
  29. }
  30. // export function getSubjectCoursePage(parameter: any) {
  31. // return useGet<GetPage<any>>(`/subject/course/page`, parameter)
  32. // }
  33. // export function addSubjectCourse(parameter: SubjectCourseResult) {
  34. // return usePost<any>(`/subject/course`, parameter)
  35. // }
  36. // export function updateSubjectCourse(parameter: SubjectCourseResult) {
  37. // return usePut<any>(`/subject/course/${parameter.id}`, parameter)
  38. // }
  39. // export function fetchSubjectCourse(parameter: any) {
  40. // return useGet<SubjectCourseResult>(`/subject/course/${parameter.id}`)
  41. // }
  42. // export function fetchSubjectCourseApp(parameter: any) {
  43. // return useGet<any>(`/subject/course/app/query/${parameter.id}`)
  44. // }
  45. // export function deleteSubjectCourses(parameter: string[]) {
  46. // return useDelete<any>(`/subject/course`, parameter)
  47. // }
  48. // export function exportSubjectCourse(parameter: any) {
  49. // return useGet<any>(`/subject/course/export`, parameter, {
  50. // responseType: 'blob',
  51. // headers: {
  52. // 'Content-Type': 'application/json;charset=UTF-8',
  53. // },
  54. // })
  55. // }