mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2026-06-24 23:00:15 +08:00
✨ 添加 Cookie 界面
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user