test.ts 846 B

123456789101112131415161718192021222324252627282930313233
  1. import { usePost, stringify, useGet } from "@/.cool";
  2. export interface SubjectCourseTestResult {
  3. id?: string
  4. name?: string
  5. subjectId?: string
  6. catalogId?: string
  7. courseId?: string
  8. animationPath?: string
  9. animationJavascriptPath?: string
  10. animationCssPath?: string
  11. animationImagePath?: string
  12. sortNum?: string
  13. remark?: string
  14. updateUserId?: string
  15. updateUserName?: string
  16. createdUserId?: string
  17. createdUserName?: string
  18. createdTime?: string
  19. updateTime?: string
  20. lockFlag?: boolean
  21. }
  22. export function querySubjectCourseTest(parameter?: any) {
  23. return useGet(`/subject/test`, parameter) as Promise<SubjectCourseTestResult[]>
  24. }
  25. export function fetchSubjectCourseTest(parameter: any) {
  26. return useGet(`/subject/test/${parameter.id}`) as Promise<SubjectCourseTestResult>
  27. }