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

add event2 in IWebhookRequest

visuddhinanda пре 2 година
родитељ
комит
2438faec97
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      dashboard/src/components/api/webhook.ts

+ 3 - 0
dashboard/src/components/api/webhook.ts

@@ -1,5 +1,6 @@
 import { IUser } from "../auth/User";
 import { IUser } from "../auth/User";
 import { TResType } from "../discussion/DiscussionListCard";
 import { TResType } from "../discussion/DiscussionListCard";
+import { IWebhookEvent } from "../webhook/WebhookTpl";
 
 
 export type TReceiverType = "wechat" | "dingtalk";
 export type TReceiverType = "wechat" | "dingtalk";
 
 
@@ -9,6 +10,7 @@ export interface IWebhookRequest {
   url: string;
   url: string;
   receiver: TReceiverType;
   receiver: TReceiverType;
   event?: string[] | null;
   event?: string[] | null;
+  event2?: IWebhookEvent[] | null;
   status?: string;
   status?: string;
 }
 }
 
 
@@ -19,6 +21,7 @@ export interface IWebhookApiData {
   url: string;
   url: string;
   receiver: TReceiverType;
   receiver: TReceiverType;
   event: string[] | null;
   event: string[] | null;
+  event2?: IWebhookEvent[] | null;
   fail: number;
   fail: number;
   success: number;
   success: number;
   status: string;
   status: string;