Răsfoiți Sursa

add channel_id

visuddhinanda 3 ani în urmă
părinte
comite
e02a974b28
1 a modificat fișierele cu 14 adăugiri și 6 ștergeri
  1. 14 6
      dashboard/src/components/api/Course.ts

+ 14 - 6
dashboard/src/components/api/Course.ts

@@ -1,3 +1,4 @@
+import { IStudio } from "../auth/StudioName";
 import { IUser } from "../auth/User";
 import { IUserRequest, Role } from "./Auth";
 
@@ -12,11 +13,12 @@ export interface ICourseDataRequest {
   id?: string; //课程ID
   title: string; //标题
   subtitle?: string; //副标题
-  content: string;
+  content?: string;
   cover?: string; //封面图片文件名
   teacher_id?: string; //UserID
-  type: number; //类型-公开/内部
+  publicity: number; //类型-公开/内部
   anthology_id?: string; //文集ID
+  channel_id?: string; //标准答案channel
   start_at?: string; //课程开始时间
   end_at?: string; //课程结束时间
 }
@@ -24,14 +26,20 @@ export interface ICourseDataResponse {
   id: string; //课程ID
   title: string; //标题
   subtitle: string; //副标题
-  teacher: IUser; //UserID
-  course_count: number; //课程数
-  type: number; //类型-公开/内部
-  anthology_id: string; //文集ID
+  teacher?: IUser; //UserID
+  course_count?: number; //课程数
+  publicity: number; //类型-公开/内部
+  anthology_id?: string; //文集ID
+  anthology_title?: string; //文集标题
+  anthology_owner?: IStudio; //文集拥有者
+  channel_id: string; //标准答案ID
+  channel_name?: string; //文集标题
+  channel_owner?: IStudio; //文集拥有者
   start_at: string; //课程开始时间
   end_at: string; //课程结束时间
   content: string; //简介
   cover: string; //封面图片文件名
+  member_count: number;
   created_at: string; //创建时间
   updated_at: string; //修改时间
 }