2025-02-18 17:52:09 +08:00
|
|
|
type FrpcDesktopProxy = FrpcProxyConfig & {};
|
|
|
|
|
2025-02-23 02:11:17 +08:00
|
|
|
interface BaseEntity {
|
|
|
|
_id: string;
|
2025-02-23 21:07:44 +08:00
|
|
|
}
|
2025-02-23 02:11:17 +08:00
|
|
|
|
2025-02-21 18:30:13 +08:00
|
|
|
interface FrpcSystemConfiguration {
|
|
|
|
launchAtStartup: boolean;
|
|
|
|
silentStartup: boolean;
|
|
|
|
autoConnectOnStartup: boolean;
|
|
|
|
}
|
|
|
|
|
2025-02-23 21:07:44 +08:00
|
|
|
type FrpcDesktopServer = BaseEntity &
|
|
|
|
FrpcCommonConfig & {
|
|
|
|
frpcVersion: number;
|
2025-02-24 14:35:11 +08:00
|
|
|
// system: any;
|
2025-02-23 21:07:44 +08:00
|
|
|
};
|
2025-02-21 18:30:13 +08:00
|
|
|
|
2025-02-23 02:11:17 +08:00
|
|
|
type FrpcVersion = BaseEntity & {
|
2025-02-21 18:30:13 +08:00
|
|
|
githubReleaseId: number;
|
|
|
|
githubAssetId: number;
|
|
|
|
githubCreatedAt: string;
|
|
|
|
name: string;
|
|
|
|
assetName: string;
|
|
|
|
versionDownloadCount: number;
|
|
|
|
assetDownloadCount: number;
|
|
|
|
browserDownloadUrl: string;
|
|
|
|
downloaded: boolean;
|
|
|
|
localPath: string;
|
|
|
|
size: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
type OpenSourceFrpcDesktopServer = FrpcDesktopServer & {
|
|
|
|
system: FrpcSystemConfiguration;
|
2025-02-23 21:07:44 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
type FrpcProxy = BaseEntity & FrpcProxyConfig & {
|
|
|
|
status: number; // 0: disable 1: enable
|
2025-02-21 18:30:13 +08:00
|
|
|
};
|