Преглед изворни кода

IStudioApiResponse ->IStudio

visuddhinanda пре 3 година
родитељ
комит
1f18c18770
1 измењених фајлова са 8 додато и 4 уклоњено
  1. 8 4
      dashboard/src/components/api/Channel.ts

+ 8 - 4
dashboard/src/components/api/Channel.ts

@@ -1,5 +1,5 @@
 import { IStudio } from "../auth/StudioName";
-import { IStudioApiResponse, Role } from "./Auth";
+import { IStudioApiResponse, TRole } from "./Auth";
 export type TChannelType =
   | "translation"
   | "nissaya"
@@ -17,19 +17,23 @@ export interface ChannelInfoProps {
   studio: IStudio;
   count?: number;
 }
-
+/**
+ * 句子完成情况
+ * [句子字符数,是否完成]
+ *
+ */
 export type IFinal = [number, boolean];
 export interface IApiResponseChannelData {
   uid: string;
   name: string;
   summary: string;
   type: TChannelType;
-  studio: IStudioApiResponse;
+  studio: IStudio;
   lang: string;
   status: number;
   created_at: string;
   updated_at: string;
-  role?: Role;
+  role?: TRole;
   final?: IFinal[];
 }
 export interface IApiResponseChannel {