mirror of
https://github.com/jiangrui1994/CloudSaver.git
synced 2026-01-12 16:18:45 +08:00
feat:版本迭代
This commit is contained in:
18
frontend/src/types/douban.ts
Normal file
18
frontend/src/types/douban.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
export interface HotListParams {
|
||||
type: string;
|
||||
tag?: string;
|
||||
page_limit?: string;
|
||||
page_start?: string;
|
||||
}
|
||||
export interface HotListItem {
|
||||
cover: string;
|
||||
cover_x: number;
|
||||
cover_y: number;
|
||||
episodes_info: string;
|
||||
id: string;
|
||||
is_new: boolean;
|
||||
playable: boolean;
|
||||
rate: string;
|
||||
title: string;
|
||||
url: string;
|
||||
}
|
||||
15
frontend/src/types/globals.d.ts
vendored
Normal file
15
frontend/src/types/globals.d.ts
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
declare global {
|
||||
interface Location {
|
||||
// 根据你的需求定义 location 的属性和方法
|
||||
pathname: string;
|
||||
search: string;
|
||||
hash: string;
|
||||
host: string;
|
||||
// 其他属性和方法...
|
||||
}
|
||||
interface Window {
|
||||
location: Location;
|
||||
}
|
||||
}
|
||||
|
||||
export {};
|
||||
@@ -1,14 +1,28 @@
|
||||
export interface Resource {
|
||||
export interface ResourceItem {
|
||||
id: string;
|
||||
title: string;
|
||||
channel: string;
|
||||
channelId?: string;
|
||||
image?: string;
|
||||
cloudLinks: string[];
|
||||
tags?: string[];
|
||||
content?: string;
|
||||
pubDate: string;
|
||||
cloudType: string;
|
||||
messageId?: string;
|
||||
}
|
||||
|
||||
export interface Resource {
|
||||
list: ResourceItem[];
|
||||
displayList?: boolean;
|
||||
channelInfo: {
|
||||
channelId: string;
|
||||
name: string;
|
||||
channelLogo: string;
|
||||
};
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ShareInfo {
|
||||
fileId: string;
|
||||
fileName: string;
|
||||
@@ -17,13 +31,11 @@ export interface ShareInfo {
|
||||
}
|
||||
|
||||
export interface ShareInfoResponse {
|
||||
data: {
|
||||
list: ShareInfo[];
|
||||
pwdId?: string;
|
||||
stoken?: string;
|
||||
shareCode?: string;
|
||||
receiveCode?: string;
|
||||
};
|
||||
list: ShareInfo[];
|
||||
pwdId?: string;
|
||||
stoken?: string;
|
||||
shareCode?: string;
|
||||
receiveCode?: string;
|
||||
}
|
||||
|
||||
export interface Folder {
|
||||
@@ -61,3 +73,23 @@ export interface SaveQuarkFileParams {
|
||||
pdir_fid: string;
|
||||
scene: string;
|
||||
}
|
||||
|
||||
export interface TagColor {
|
||||
baiduPan: string;
|
||||
weiyun: string;
|
||||
aliyun: string;
|
||||
pan115: string;
|
||||
quark: string;
|
||||
}
|
||||
|
||||
export interface GlobalSettingAttributes {
|
||||
httpProxyHost: string;
|
||||
httpProxyPort: number | string;
|
||||
isProxyEnabled: boolean;
|
||||
AdminUserCode: number;
|
||||
CommonUserCode: number;
|
||||
}
|
||||
export interface UserSettingAttributes {
|
||||
cloud115Cookie: string;
|
||||
quarkCookie: string;
|
||||
}
|
||||
|
||||
15
frontend/src/types/response.ts
Normal file
15
frontend/src/types/response.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
export type RequestErrorCode = -1 | 400 | 401 | 402 | 403 | 500 | 501;
|
||||
|
||||
export interface RequestSuccess<T> {
|
||||
code: 0;
|
||||
data: T;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface RequestError<T> {
|
||||
code: RequestErrorCode;
|
||||
message: string;
|
||||
data?: T;
|
||||
}
|
||||
|
||||
export type RequestResult<T> = RequestSuccess<T> | RequestError<T>;
|
||||
6
frontend/src/types/user.ts
Normal file
6
frontend/src/types/user.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { GlobalSettingAttributes, UserSettingAttributes } from "@/types";
|
||||
export interface UserSettingStore {
|
||||
globalSetting?: GlobalSettingAttributes | null;
|
||||
userSettings: UserSettingAttributes;
|
||||
displayStyle?: "table" | "card";
|
||||
}
|
||||
Reference in New Issue
Block a user