dto.ts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. export interface AssignmentDTO {
  2. assignmentName: string; // 作业名称不能缺失
  3. description: string; // 作业描述不能缺失
  4. descriptionFile?: string; // 作业要求,Word/Pdf文件 (可选)
  5. attachments?: string[]; // 作业附件 (可选)
  6. startTime: string; // 起始时间不能缺失 (ISO 8601 日期时间字符串)
  7. endTime: string; // 结束时间不能缺失 (ISO 8601 日期时间字符串)
  8. }
  9. export interface AssignmentQueryDTO {
  10. assignmentId?: number;
  11. teacherId?: number;
  12. courseId?: number;
  13. assignmentName?: string;
  14. status?: AssignmentStatus;
  15. }
  16. export interface EnrollDTO {
  17. studentId:number;
  18. courseId:number;
  19. enrollCode:string;
  20. }
  21. export interface CourseDTO {
  22. courseName: string; // 课程名不能缺失
  23. teacherIds: number[]; // 老师Id不能缺失
  24. courseImages?: string[]; // 可选
  25. targetGrade?: string; // 可选
  26. startTime: string; // 起始时间不能缺失 (ISO 8601 日期时间字符串)
  27. endTime: string; // 截止时间不能缺失 (ISO 8601 日期时间字符串)
  28. description: string; // 课程描述不能缺失
  29. enrollCode: string; // 选课码不能缺失
  30. }
  31. export interface CourseUpdateDTO {
  32. courseName: string; // 课程名不能缺失
  33. teacherIds: number[]; // 老师Id不能缺失
  34. courseImages?: string[]; // 可选
  35. targetGrade?: string; // 可选
  36. startTime: string; // 起始时间不能缺失 (ISO 8601 日期时间字符串)
  37. endTime: string; // 截止时间不能缺失 (ISO 8601 日期时间字符串)
  38. description: string; // 课程描述不能缺失
  39. enrollCode: string; // 选课码不能缺失
  40. }