添加 Cookie 界面

This commit is contained in:
2024-09-22 13:09:16 +08:00
parent 54c9020c36
commit db4b848e3f
7 changed files with 214 additions and 6 deletions
+43
View File
@@ -6,6 +6,7 @@ export interface TokenResp {
}
export interface GlobalConf {
platformConf: AllPlatformConf;
siteConf: AllSiteConf;
loaded: boolean;
}
@@ -13,6 +14,10 @@ export interface AllPlatformConf {
[idx: string]: PlatformConfig;
}
export interface AllSiteConf {
[idx: string]: SiteConfig;
}
export interface CategoryConfig {
[idx: number]: string;
}
@@ -25,6 +30,11 @@ export interface PlatformConfig {
hasTarget: boolean;
}
export interface SiteConfig {
name: string
enable_cookie: string
}
export interface SubscribeConfig {
platformName: string;
target: string;
@@ -69,3 +79,36 @@ export interface PlatformWeightConfigResp {
platform_name: string;
weight: WeightConfig;
}
export interface Target {
platform_name: string;
target_name: string;
target: string;
}
export interface Cookie {
id: number;
site_name: string;
friendly_name: string;
last_usage: Date;
status: string;
cd_milliseconds: number;
is_universal: boolean;
is_anonymous: boolean;
tags: { [key: string]: string };
}
export interface CookieTarget {
target: Target;
cookieId: number;
}
export interface NewCookieParam {
siteName: string
content: string
}
export interface DelCookieParam {
siteName: string
cookieId: string
}