From 7cc754f8b96ed9321754fa492ccd0082ec5397f5 Mon Sep 17 00:00:00 2001 From: AoXuan Date: Fri, 15 Aug 2025 14:35:10 +0800 Subject: [PATCH] =?UTF-8?q?feat(api):=20=E8=A1=A5=E5=85=85=E4=B8=80?= =?UTF-8?q?=E4=B8=8B=E5=B0=91=E6=8F=90=E4=BA=A4=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/models/GeneralConfig.ts | 27 ++++++ frontend/src/api/models/GeneralConfig_Game.ts | 31 +++++++ frontend/src/api/models/GeneralConfig_Info.ts | 15 +++ frontend/src/api/models/GeneralConfig_Run.ts | 19 ++++ .../src/api/models/GeneralConfig_Script.ts | 59 ++++++++++++ frontend/src/api/models/GeneralUserConfig.ts | 22 +++++ .../src/api/models/GeneralUserConfig_Data.ts | 15 +++ .../src/api/models/GeneralUserConfig_Info.ts | 39 ++++++++ frontend/src/api/models/HistoryData.ts | 28 ++++++ frontend/src/api/models/HistoryDataGetIn.ts | 11 +++ frontend/src/api/models/HistoryDataGetOut.ts | 24 +++++ frontend/src/api/models/HistoryIndexItem.ts | 28 ++++++ frontend/src/api/models/HistorySearchIn.ts | 28 ++++++ frontend/src/api/models/HistorySearchOut.ts | 24 +++++ frontend/src/api/models/MaaConfig.ts | 17 ++++ frontend/src/api/models/MaaConfig_Info.ts | 15 +++ frontend/src/api/models/MaaConfig_Run.ts | 35 +++++++ frontend/src/api/models/MaaPlanConfig.ts | 45 +++++++++ frontend/src/api/models/MaaPlanConfig_Info.ts | 15 +++ frontend/src/api/models/MaaPlanConfig_Item.ts | 35 +++++++ frontend/src/api/models/MaaUserConfig.ts | 27 ++++++ frontend/src/api/models/MaaUserConfig_Data.ts | 27 ++++++ frontend/src/api/models/MaaUserConfig_Info.ts | 91 +++++++++++++++++++ frontend/src/api/models/MaaUserConfig_Task.ts | 39 ++++++++ frontend/src/api/models/PlanIndexItem.ts | 15 +++ frontend/src/api/models/QueueConfig.ts | 12 +++ frontend/src/api/models/QueueConfig_Info.ts | 23 +++++ frontend/src/api/models/QueueIndexItem.ts | 15 +++ frontend/src/api/models/QueueItem.ts | 12 +++ frontend/src/api/models/QueueItemGetIn.ts | 15 +++ frontend/src/api/models/QueueItemGetOut.ts | 29 ++++++ frontend/src/api/models/QueueItemIndexItem.ts | 15 +++ frontend/src/api/models/QueueItem_Info.ts | 11 +++ frontend/src/api/models/ScriptIndexItem.ts | 24 +++++ frontend/src/api/models/TimeSet.ts | 12 +++ frontend/src/api/models/TimeSetGetIn.ts | 15 +++ frontend/src/api/models/TimeSetGetOut.ts | 29 ++++++ frontend/src/api/models/TimeSetIndexItem.ts | 15 +++ frontend/src/api/models/TimeSet_Info.ts | 15 +++ frontend/src/api/models/UserConfig_Notify.ts | 43 +++++++++ frontend/src/api/models/UserGetIn.ts | 15 +++ frontend/src/api/models/UserGetOut.ts | 30 ++++++ frontend/src/api/models/UserIndexItem.ts | 24 +++++ 43 files changed, 1085 insertions(+) create mode 100644 frontend/src/api/models/GeneralConfig.ts create mode 100644 frontend/src/api/models/GeneralConfig_Game.ts create mode 100644 frontend/src/api/models/GeneralConfig_Info.ts create mode 100644 frontend/src/api/models/GeneralConfig_Run.ts create mode 100644 frontend/src/api/models/GeneralConfig_Script.ts create mode 100644 frontend/src/api/models/GeneralUserConfig.ts create mode 100644 frontend/src/api/models/GeneralUserConfig_Data.ts create mode 100644 frontend/src/api/models/GeneralUserConfig_Info.ts create mode 100644 frontend/src/api/models/HistoryData.ts create mode 100644 frontend/src/api/models/HistoryDataGetIn.ts create mode 100644 frontend/src/api/models/HistoryDataGetOut.ts create mode 100644 frontend/src/api/models/HistoryIndexItem.ts create mode 100644 frontend/src/api/models/HistorySearchIn.ts create mode 100644 frontend/src/api/models/HistorySearchOut.ts create mode 100644 frontend/src/api/models/MaaConfig.ts create mode 100644 frontend/src/api/models/MaaConfig_Info.ts create mode 100644 frontend/src/api/models/MaaConfig_Run.ts create mode 100644 frontend/src/api/models/MaaPlanConfig.ts create mode 100644 frontend/src/api/models/MaaPlanConfig_Info.ts create mode 100644 frontend/src/api/models/MaaPlanConfig_Item.ts create mode 100644 frontend/src/api/models/MaaUserConfig.ts create mode 100644 frontend/src/api/models/MaaUserConfig_Data.ts create mode 100644 frontend/src/api/models/MaaUserConfig_Info.ts create mode 100644 frontend/src/api/models/MaaUserConfig_Task.ts create mode 100644 frontend/src/api/models/PlanIndexItem.ts create mode 100644 frontend/src/api/models/QueueConfig.ts create mode 100644 frontend/src/api/models/QueueConfig_Info.ts create mode 100644 frontend/src/api/models/QueueIndexItem.ts create mode 100644 frontend/src/api/models/QueueItem.ts create mode 100644 frontend/src/api/models/QueueItemGetIn.ts create mode 100644 frontend/src/api/models/QueueItemGetOut.ts create mode 100644 frontend/src/api/models/QueueItemIndexItem.ts create mode 100644 frontend/src/api/models/QueueItem_Info.ts create mode 100644 frontend/src/api/models/ScriptIndexItem.ts create mode 100644 frontend/src/api/models/TimeSet.ts create mode 100644 frontend/src/api/models/TimeSetGetIn.ts create mode 100644 frontend/src/api/models/TimeSetGetOut.ts create mode 100644 frontend/src/api/models/TimeSetIndexItem.ts create mode 100644 frontend/src/api/models/TimeSet_Info.ts create mode 100644 frontend/src/api/models/UserConfig_Notify.ts create mode 100644 frontend/src/api/models/UserGetIn.ts create mode 100644 frontend/src/api/models/UserGetOut.ts create mode 100644 frontend/src/api/models/UserIndexItem.ts diff --git a/frontend/src/api/models/GeneralConfig.ts b/frontend/src/api/models/GeneralConfig.ts new file mode 100644 index 0000000..1637ffa --- /dev/null +++ b/frontend/src/api/models/GeneralConfig.ts @@ -0,0 +1,27 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { GeneralConfig_Game } from './GeneralConfig_Game'; +import type { GeneralConfig_Info } from './GeneralConfig_Info'; +import type { GeneralConfig_Run } from './GeneralConfig_Run'; +import type { GeneralConfig_Script } from './GeneralConfig_Script'; +export type GeneralConfig = { + /** + * 脚本基础信息 + */ + Info?: (GeneralConfig_Info | null); + /** + * 脚本配置 + */ + Script?: (GeneralConfig_Script | null); + /** + * 游戏配置 + */ + Game?: (GeneralConfig_Game | null); + /** + * 运行配置 + */ + Run?: (GeneralConfig_Run | null); +}; + diff --git a/frontend/src/api/models/GeneralConfig_Game.ts b/frontend/src/api/models/GeneralConfig_Game.ts new file mode 100644 index 0000000..cc415bd --- /dev/null +++ b/frontend/src/api/models/GeneralConfig_Game.ts @@ -0,0 +1,31 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type GeneralConfig_Game = { + /** + * 游戏/模拟器相关功能是否启用 + */ + Enabled?: (boolean | null); + /** + * 类型: 模拟器, PC端 + */ + Type?: ('Emulator' | 'Client' | null); + /** + * 游戏/模拟器程序路径 + */ + Path?: (string | null); + /** + * 游戏/模拟器启动参数 + */ + Arguments?: (string | null); + /** + * 游戏/模拟器等待启动时间 + */ + WaitTime?: (number | null); + /** + * 是否强制关闭游戏/模拟器进程 + */ + IfForceClose?: (boolean | null); +}; + diff --git a/frontend/src/api/models/GeneralConfig_Info.ts b/frontend/src/api/models/GeneralConfig_Info.ts new file mode 100644 index 0000000..866a89c --- /dev/null +++ b/frontend/src/api/models/GeneralConfig_Info.ts @@ -0,0 +1,15 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type GeneralConfig_Info = { + /** + * 脚本名称 + */ + Name?: (string | null); + /** + * 脚本根目录 + */ + RootPath?: (string | null); +}; + diff --git a/frontend/src/api/models/GeneralConfig_Run.ts b/frontend/src/api/models/GeneralConfig_Run.ts new file mode 100644 index 0000000..3de79aa --- /dev/null +++ b/frontend/src/api/models/GeneralConfig_Run.ts @@ -0,0 +1,19 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type GeneralConfig_Run = { + /** + * 每日代理次数限制 + */ + ProxyTimesLimit?: (number | null); + /** + * 重试次数限制 + */ + RunTimesLimit?: (number | null); + /** + * 日志超时限制 + */ + RunTimeLimit?: (number | null); +}; + diff --git a/frontend/src/api/models/GeneralConfig_Script.ts b/frontend/src/api/models/GeneralConfig_Script.ts new file mode 100644 index 0000000..9d1f4d4 --- /dev/null +++ b/frontend/src/api/models/GeneralConfig_Script.ts @@ -0,0 +1,59 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type GeneralConfig_Script = { + /** + * 脚本可执行文件路径 + */ + ScriptPath?: (string | null); + /** + * 脚本启动附加命令参数 + */ + Arguments?: (string | null); + /** + * 是否追踪脚本子进程 + */ + IfTrackProcess?: (boolean | null); + /** + * 配置文件路径 + */ + ConfigPath?: (string | null); + /** + * 配置文件类型: 单个文件, 文件夹 + */ + ConfigPathMode?: ('File' | 'Folder' | null); + /** + * 更新配置时机, 从不, 仅成功时, 仅失败时, 任务结束时 + */ + UpdateConfigMode?: ('Never' | 'Success' | 'Failure' | 'Always' | null); + /** + * 日志文件路径 + */ + LogPath?: (string | null); + /** + * 日志文件名格式 + */ + LogPathFormat?: (string | null); + /** + * 日志时间戳开始位置 + */ + LogTimeStart?: (number | null); + /** + * 日志时间戳结束位置 + */ + LogTimeEnd?: (number | null); + /** + * 日志时间戳格式 + */ + LogTimeFormat?: (string | null); + /** + * 成功时日志 + */ + SuccessLog?: (string | null); + /** + * 错误时日志 + */ + ErrorLog?: (string | null); +}; + diff --git a/frontend/src/api/models/GeneralUserConfig.ts b/frontend/src/api/models/GeneralUserConfig.ts new file mode 100644 index 0000000..0bf20fb --- /dev/null +++ b/frontend/src/api/models/GeneralUserConfig.ts @@ -0,0 +1,22 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { GeneralUserConfig_Data } from './GeneralUserConfig_Data'; +import type { GeneralUserConfig_Info } from './GeneralUserConfig_Info'; +import type { UserConfig_Notify } from './UserConfig_Notify'; +export type GeneralUserConfig = { + /** + * 用户信息 + */ + Info?: (GeneralUserConfig_Info | null); + /** + * 用户数据 + */ + Data?: (GeneralUserConfig_Data | null); + /** + * 单独通知 + */ + Notify?: (UserConfig_Notify | null); +}; + diff --git a/frontend/src/api/models/GeneralUserConfig_Data.ts b/frontend/src/api/models/GeneralUserConfig_Data.ts new file mode 100644 index 0000000..85e0acf --- /dev/null +++ b/frontend/src/api/models/GeneralUserConfig_Data.ts @@ -0,0 +1,15 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type GeneralUserConfig_Data = { + /** + * 上次代理日期 + */ + LastProxyDate?: (string | null); + /** + * 代理次数 + */ + ProxyTimes?: (number | null); +}; + diff --git a/frontend/src/api/models/GeneralUserConfig_Info.ts b/frontend/src/api/models/GeneralUserConfig_Info.ts new file mode 100644 index 0000000..ffc4aa0 --- /dev/null +++ b/frontend/src/api/models/GeneralUserConfig_Info.ts @@ -0,0 +1,39 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type GeneralUserConfig_Info = { + /** + * 用户名 + */ + Name?: (string | null); + /** + * 用户状态 + */ + Status?: (boolean | null); + /** + * 剩余天数 + */ + RemainedDay?: (number | null); + /** + * 是否在任务前执行脚本 + */ + IfScriptBeforeTask?: (boolean | null); + /** + * 任务前脚本路径 + */ + ScriptBeforeTask?: (string | null); + /** + * 是否在任务后执行脚本 + */ + IfScriptAfterTask?: (boolean | null); + /** + * 任务后脚本路径 + */ + ScriptAfterTask?: (string | null); + /** + * 备注 + */ + Notes?: (string | null); +}; + diff --git a/frontend/src/api/models/HistoryData.ts b/frontend/src/api/models/HistoryData.ts new file mode 100644 index 0000000..7c6430c --- /dev/null +++ b/frontend/src/api/models/HistoryData.ts @@ -0,0 +1,28 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { HistoryIndexItem } from './HistoryIndexItem'; +export type HistoryData = { + /** + * 历史记录索引列表 + */ + index?: (Array | null); + /** + * 公招统计数据, key为星级, value为对应的公招数量 + */ + recruit_statistics?: (Record | null); + /** + * 掉落统计数据, 格式为 { '关卡号': { '掉落物': 数量 } } + */ + drop_statistics?: (Record> | null); + /** + * 报错信息, key为时间戳, value为错误描述 + */ + error_info?: (Record | null); + /** + * 日志内容, 仅在提取单条历史记录数据时返回 + */ + log_content?: (string | null); +}; + diff --git a/frontend/src/api/models/HistoryDataGetIn.ts b/frontend/src/api/models/HistoryDataGetIn.ts new file mode 100644 index 0000000..e586908 --- /dev/null +++ b/frontend/src/api/models/HistoryDataGetIn.ts @@ -0,0 +1,11 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type HistoryDataGetIn = { + /** + * 需要提取数据的历史记录JSON文件 + */ + jsonPath: string; +}; + diff --git a/frontend/src/api/models/HistoryDataGetOut.ts b/frontend/src/api/models/HistoryDataGetOut.ts new file mode 100644 index 0000000..35ade25 --- /dev/null +++ b/frontend/src/api/models/HistoryDataGetOut.ts @@ -0,0 +1,24 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { HistoryData } from './HistoryData'; +export type HistoryDataGetOut = { + /** + * 状态码 + */ + code?: number; + /** + * 操作状态 + */ + status?: string; + /** + * 操作消息 + */ + message?: string; + /** + * 历史记录数据 + */ + data: HistoryData; +}; + diff --git a/frontend/src/api/models/HistoryIndexItem.ts b/frontend/src/api/models/HistoryIndexItem.ts new file mode 100644 index 0000000..1b09968 --- /dev/null +++ b/frontend/src/api/models/HistoryIndexItem.ts @@ -0,0 +1,28 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type HistoryIndexItem = { + /** + * 日期 + */ + date: string; + /** + * 状态 + */ + status: HistoryIndexItem.status; + /** + * 对应JSON文件 + */ + jsonFile: string; +}; +export namespace HistoryIndexItem { + /** + * 状态 + */ + export enum status { + DONE = '完成', + ERROR = '异常', + } +} + diff --git a/frontend/src/api/models/HistorySearchIn.ts b/frontend/src/api/models/HistorySearchIn.ts new file mode 100644 index 0000000..adbd4e8 --- /dev/null +++ b/frontend/src/api/models/HistorySearchIn.ts @@ -0,0 +1,28 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type HistorySearchIn = { + /** + * 合并模式 + */ + mode: HistorySearchIn.mode + /** + * 开始日期, 格式YYYY-MM-DD + */ + start_date: string + /** + * 结束日期, 格式YYYY-MM-DD + */ + end_date: string +} +export namespace HistorySearchIn { + /** + * 合并模式 + */ + export enum mode { + DAILY = '按日合并', + WEEKLY = '按周合并', + MONTHLY = '按年月并', + } +} diff --git a/frontend/src/api/models/HistorySearchOut.ts b/frontend/src/api/models/HistorySearchOut.ts new file mode 100644 index 0000000..4665af5 --- /dev/null +++ b/frontend/src/api/models/HistorySearchOut.ts @@ -0,0 +1,24 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { HistoryData } from './HistoryData'; +export type HistorySearchOut = { + /** + * 状态码 + */ + code?: number; + /** + * 操作状态 + */ + status?: string; + /** + * 操作消息 + */ + message?: string; + /** + * 历史记录索引数据字典, 格式为 { '日期': { '用户名': [历史记录信息] } } + */ + data: Record>; +}; + diff --git a/frontend/src/api/models/MaaConfig.ts b/frontend/src/api/models/MaaConfig.ts new file mode 100644 index 0000000..3a8ac25 --- /dev/null +++ b/frontend/src/api/models/MaaConfig.ts @@ -0,0 +1,17 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { MaaConfig_Info } from './MaaConfig_Info'; +import type { MaaConfig_Run } from './MaaConfig_Run'; +export type MaaConfig = { + /** + * 脚本基础信息 + */ + Info?: (MaaConfig_Info | null); + /** + * 脚本运行配置 + */ + Run?: (MaaConfig_Run | null); +}; + diff --git a/frontend/src/api/models/MaaConfig_Info.ts b/frontend/src/api/models/MaaConfig_Info.ts new file mode 100644 index 0000000..534eb5a --- /dev/null +++ b/frontend/src/api/models/MaaConfig_Info.ts @@ -0,0 +1,15 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type MaaConfig_Info = { + /** + * 脚本名称 + */ + Name?: (string | null); + /** + * 脚本路径 + */ + Path?: (string | null); +}; + diff --git a/frontend/src/api/models/MaaConfig_Run.ts b/frontend/src/api/models/MaaConfig_Run.ts new file mode 100644 index 0000000..78af28b --- /dev/null +++ b/frontend/src/api/models/MaaConfig_Run.ts @@ -0,0 +1,35 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type MaaConfig_Run = { + /** + * 简洁任务间切换方式 + */ + TaskTransitionMethod?: ('NoAction' | 'ExitGame' | 'ExitEmulator' | null); + /** + * 每日代理次数限制 + */ + ProxyTimesLimit?: (number | null); + /** + * ADB端口搜索范围 + */ + ADBSearchRange?: (number | null); + /** + * 重试次数限制 + */ + RunTimesLimit?: (number | null); + /** + * 剿灭超时限制 + */ + AnnihilationTimeLimit?: (number | null); + /** + * 日常超时限制 + */ + RoutineTimeLimit?: (number | null); + /** + * 剿灭每周仅代理至上限 + */ + AnnihilationWeeklyLimit?: (boolean | null); +}; + diff --git a/frontend/src/api/models/MaaPlanConfig.ts b/frontend/src/api/models/MaaPlanConfig.ts new file mode 100644 index 0000000..80227cd --- /dev/null +++ b/frontend/src/api/models/MaaPlanConfig.ts @@ -0,0 +1,45 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { MaaPlanConfig_Info } from './MaaPlanConfig_Info'; +import type { MaaPlanConfig_Item } from './MaaPlanConfig_Item'; +export type MaaPlanConfig = { + /** + * 基础信息 + */ + Info?: (MaaPlanConfig_Info | null); + /** + * 全局 + */ + ALL?: (MaaPlanConfig_Item | null); + /** + * 周一 + */ + Monday?: (MaaPlanConfig_Item | null); + /** + * 周二 + */ + Tuesday?: (MaaPlanConfig_Item | null); + /** + * 周三 + */ + Wednesday?: (MaaPlanConfig_Item | null); + /** + * 周四 + */ + Thursday?: (MaaPlanConfig_Item | null); + /** + * 周五 + */ + Friday?: (MaaPlanConfig_Item | null); + /** + * 周六 + */ + Saturday?: (MaaPlanConfig_Item | null); + /** + * 周日 + */ + Sunday?: (MaaPlanConfig_Item | null); +}; + diff --git a/frontend/src/api/models/MaaPlanConfig_Info.ts b/frontend/src/api/models/MaaPlanConfig_Info.ts new file mode 100644 index 0000000..cea0432 --- /dev/null +++ b/frontend/src/api/models/MaaPlanConfig_Info.ts @@ -0,0 +1,15 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type MaaPlanConfig_Info = { + /** + * 计划表名称 + */ + Name?: (string | null); + /** + * 计划表模式 + */ + Mode?: ('ALL' | 'Weekly' | null); +}; + diff --git a/frontend/src/api/models/MaaPlanConfig_Item.ts b/frontend/src/api/models/MaaPlanConfig_Item.ts new file mode 100644 index 0000000..367f15e --- /dev/null +++ b/frontend/src/api/models/MaaPlanConfig_Item.ts @@ -0,0 +1,35 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type MaaPlanConfig_Item = { + /** + * 吃理智药 + */ + MedicineNumb?: (number | null); + /** + * 连战次数 + */ + SeriesNumb?: ('0' | '6' | '5' | '4' | '3' | '2' | '1' | '-1' | null); + /** + * 关卡选择 + */ + Stage?: (string | null); + /** + * 备选关卡 - 1 + */ + Stage_1?: (string | null); + /** + * 备选关卡 - 2 + */ + Stage_2?: (string | null); + /** + * 备选关卡 - 3 + */ + Stage_3?: (string | null); + /** + * 剩余理智关卡 + */ + Stage_Remain?: (string | null); +}; + diff --git a/frontend/src/api/models/MaaUserConfig.ts b/frontend/src/api/models/MaaUserConfig.ts new file mode 100644 index 0000000..a514d50 --- /dev/null +++ b/frontend/src/api/models/MaaUserConfig.ts @@ -0,0 +1,27 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { MaaUserConfig_Data } from './MaaUserConfig_Data'; +import type { MaaUserConfig_Info } from './MaaUserConfig_Info'; +import type { MaaUserConfig_Task } from './MaaUserConfig_Task'; +import type { UserConfig_Notify } from './UserConfig_Notify'; +export type MaaUserConfig = { + /** + * 基础信息 + */ + Info?: (MaaUserConfig_Info | null); + /** + * 用户数据 + */ + Data?: (MaaUserConfig_Data | null); + /** + * 任务列表 + */ + Task?: (MaaUserConfig_Task | null); + /** + * 单独通知 + */ + Notify?: (UserConfig_Notify | null); +}; + diff --git a/frontend/src/api/models/MaaUserConfig_Data.ts b/frontend/src/api/models/MaaUserConfig_Data.ts new file mode 100644 index 0000000..bf9ddf8 --- /dev/null +++ b/frontend/src/api/models/MaaUserConfig_Data.ts @@ -0,0 +1,27 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type MaaUserConfig_Data = { + /** + * 上次代理日期 + */ + LastProxyDate?: (string | null); + /** + * 上次剿灭日期 + */ + LastAnnihilationDate?: (string | null); + /** + * 上次森空岛签到日期 + */ + LastSklandDate?: (string | null); + /** + * 代理次数 + */ + ProxyTimes?: (number | null); + /** + * 是否通过人工排查 + */ + IfPassCheck?: (boolean | null); +}; + diff --git a/frontend/src/api/models/MaaUserConfig_Info.ts b/frontend/src/api/models/MaaUserConfig_Info.ts new file mode 100644 index 0000000..03122ff --- /dev/null +++ b/frontend/src/api/models/MaaUserConfig_Info.ts @@ -0,0 +1,91 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type MaaUserConfig_Info = { + /** + * 用户名 + */ + Name?: (string | null); + /** + * 用户ID + */ + Id?: (string | null); + /** + * 用户配置模式 + */ + Mode?: ('简洁' | '详细' | null); + /** + * 关卡配置模式 + */ + StageMode?: (string | null); + /** + * 服务器 + */ + Server?: ('Official' | 'Bilibili' | 'YoStarEN' | 'YoStarJP' | 'YoStarKR' | 'txwy' | null); + /** + * 用户状态 + */ + Status?: (boolean | null); + /** + * 剩余天数 + */ + RemainedDay?: (number | null); + /** + * 剿灭模式 + */ + Annihilation?: ('Close' | 'Annihilation' | 'Chernobog@Annihilation' | 'LungmenOutskirts@Annihilation' | 'LungmenDowntown@Annihilation' | null); + /** + * 是否启用日常 + */ + Routine?: (boolean | null); + /** + * 基建模式 + */ + InfrastMode?: ('Normal' | 'Rotation' | 'Custom' | null); + /** + * 密码 + */ + Password?: (string | null); + /** + * 备注 + */ + Notes?: (string | null); + /** + * 吃理智药数量 + */ + MedicineNumb?: (number | null); + /** + * 连战次数 + */ + SeriesNumb?: ('0' | '6' | '5' | '4' | '3' | '2' | '1' | '-1' | null); + /** + * 关卡选择 + */ + Stage?: (string | null); + /** + * 备选关卡 - 1 + */ + Stage_1?: (string | null); + /** + * 备选关卡 - 2 + */ + Stage_2?: (string | null); + /** + * 备选关卡 - 3 + */ + Stage_3?: (string | null); + /** + * 剩余理智关卡 + */ + Stage_Remain?: (string | null); + /** + * 是否启用森空岛签到 + */ + IfSkland?: (boolean | null); + /** + * SklandToken + */ + SklandToken?: (string | null); +}; + diff --git a/frontend/src/api/models/MaaUserConfig_Task.ts b/frontend/src/api/models/MaaUserConfig_Task.ts new file mode 100644 index 0000000..87f4455 --- /dev/null +++ b/frontend/src/api/models/MaaUserConfig_Task.ts @@ -0,0 +1,39 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type MaaUserConfig_Task = { + /** + * 开始唤醒 + */ + IfWakeUp?: (boolean | null); + /** + * 自动公招 + */ + IfRecruiting?: (boolean | null); + /** + * 基建换班 + */ + IfBase?: (boolean | null); + /** + * 刷理智 + */ + IfCombat?: (boolean | null); + /** + * 获取信用及购物 + */ + IfMall?: (boolean | null); + /** + * 领取奖励 + */ + IfMission?: (boolean | null); + /** + * 自动肉鸽 + */ + IfAutoRoguelike?: (boolean | null); + /** + * 生息演算 + */ + IfReclamation?: (boolean | null); +}; + diff --git a/frontend/src/api/models/PlanIndexItem.ts b/frontend/src/api/models/PlanIndexItem.ts new file mode 100644 index 0000000..8580db8 --- /dev/null +++ b/frontend/src/api/models/PlanIndexItem.ts @@ -0,0 +1,15 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type PlanIndexItem = { + /** + * 唯一标识符 + */ + uid: string; + /** + * 配置类型 + */ + type: string; +}; + diff --git a/frontend/src/api/models/QueueConfig.ts b/frontend/src/api/models/QueueConfig.ts new file mode 100644 index 0000000..66467b9 --- /dev/null +++ b/frontend/src/api/models/QueueConfig.ts @@ -0,0 +1,12 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { QueueConfig_Info } from './QueueConfig_Info'; +export type QueueConfig = { + /** + * 队列信息 + */ + Info?: (QueueConfig_Info | null); +}; + diff --git a/frontend/src/api/models/QueueConfig_Info.ts b/frontend/src/api/models/QueueConfig_Info.ts new file mode 100644 index 0000000..4993526 --- /dev/null +++ b/frontend/src/api/models/QueueConfig_Info.ts @@ -0,0 +1,23 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type QueueConfig_Info = { + /** + * 队列名称 + */ + Name?: (string | null); + /** + * 是否启用定时 + */ + TimeEnabled?: (boolean | null); + /** + * 是否启动时运行 + */ + StartUpEnabled?: (boolean | null); + /** + * 完成后操作 + */ + AfterAccomplish?: ('NoAction' | 'KillSelf' | 'Sleep' | 'Hibernate' | 'Shutdown' | 'ShutdownForce' | null); +}; + diff --git a/frontend/src/api/models/QueueIndexItem.ts b/frontend/src/api/models/QueueIndexItem.ts new file mode 100644 index 0000000..61ca679 --- /dev/null +++ b/frontend/src/api/models/QueueIndexItem.ts @@ -0,0 +1,15 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type QueueIndexItem = { + /** + * 唯一标识符 + */ + uid: string; + /** + * 配置类型 + */ + type: string; +}; + diff --git a/frontend/src/api/models/QueueItem.ts b/frontend/src/api/models/QueueItem.ts new file mode 100644 index 0000000..58fe39b --- /dev/null +++ b/frontend/src/api/models/QueueItem.ts @@ -0,0 +1,12 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { QueueItem_Info } from './QueueItem_Info'; +export type QueueItem = { + /** + * 队列项 + */ + Info?: (QueueItem_Info | null); +}; + diff --git a/frontend/src/api/models/QueueItemGetIn.ts b/frontend/src/api/models/QueueItemGetIn.ts new file mode 100644 index 0000000..25b99c8 --- /dev/null +++ b/frontend/src/api/models/QueueItemGetIn.ts @@ -0,0 +1,15 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type QueueItemGetIn = { + /** + * 所属队列ID + */ + queueId: string; + /** + * 队列项ID, 未携带时表示获取所有队列项数据 + */ + queueItemId?: (string | null); +}; + diff --git a/frontend/src/api/models/QueueItemGetOut.ts b/frontend/src/api/models/QueueItemGetOut.ts new file mode 100644 index 0000000..6ea96d9 --- /dev/null +++ b/frontend/src/api/models/QueueItemGetOut.ts @@ -0,0 +1,29 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { QueueItem } from './QueueItem'; +import type { QueueItemIndexItem } from './QueueItemIndexItem'; +export type QueueItemGetOut = { + /** + * 状态码 + */ + code?: number; + /** + * 操作状态 + */ + status?: string; + /** + * 操作消息 + */ + message?: string; + /** + * 队列项索引列表 + */ + index: Array; + /** + * 队列项数据字典, key来自于index列表的uid + */ + data: Record; +}; + diff --git a/frontend/src/api/models/QueueItemIndexItem.ts b/frontend/src/api/models/QueueItemIndexItem.ts new file mode 100644 index 0000000..63c2368 --- /dev/null +++ b/frontend/src/api/models/QueueItemIndexItem.ts @@ -0,0 +1,15 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type QueueItemIndexItem = { + /** + * 唯一标识符 + */ + uid: string; + /** + * 配置类型 + */ + type: string; +}; + diff --git a/frontend/src/api/models/QueueItem_Info.ts b/frontend/src/api/models/QueueItem_Info.ts new file mode 100644 index 0000000..0e86ee6 --- /dev/null +++ b/frontend/src/api/models/QueueItem_Info.ts @@ -0,0 +1,11 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type QueueItem_Info = { + /** + * 任务所对应的脚本ID, 为None时表示未选择 + */ + ScriptId?: (string | null); +}; + diff --git a/frontend/src/api/models/ScriptIndexItem.ts b/frontend/src/api/models/ScriptIndexItem.ts new file mode 100644 index 0000000..4d33b27 --- /dev/null +++ b/frontend/src/api/models/ScriptIndexItem.ts @@ -0,0 +1,24 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type ScriptIndexItem = { + /** + * 唯一标识符 + */ + uid: string; + /** + * 配置类型 + */ + type: ScriptIndexItem.type; +}; +export namespace ScriptIndexItem { + /** + * 配置类型 + */ + export enum type { + MAA_CONFIG = 'MaaConfig', + GENERAL_CONFIG = 'GeneralConfig', + } +} + diff --git a/frontend/src/api/models/TimeSet.ts b/frontend/src/api/models/TimeSet.ts new file mode 100644 index 0000000..517c723 --- /dev/null +++ b/frontend/src/api/models/TimeSet.ts @@ -0,0 +1,12 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { TimeSet_Info } from './TimeSet_Info'; +export type TimeSet = { + /** + * 时间项 + */ + Info?: (TimeSet_Info | null); +}; + diff --git a/frontend/src/api/models/TimeSetGetIn.ts b/frontend/src/api/models/TimeSetGetIn.ts new file mode 100644 index 0000000..8ecbf41 --- /dev/null +++ b/frontend/src/api/models/TimeSetGetIn.ts @@ -0,0 +1,15 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type TimeSetGetIn = { + /** + * 所属队列ID + */ + queueId: string; + /** + * 时间设置ID, 未携带时表示获取所有时间设置数据 + */ + timeSetId?: (string | null); +}; + diff --git a/frontend/src/api/models/TimeSetGetOut.ts b/frontend/src/api/models/TimeSetGetOut.ts new file mode 100644 index 0000000..80bc4c0 --- /dev/null +++ b/frontend/src/api/models/TimeSetGetOut.ts @@ -0,0 +1,29 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { TimeSet } from './TimeSet'; +import type { TimeSetIndexItem } from './TimeSetIndexItem'; +export type TimeSetGetOut = { + /** + * 状态码 + */ + code?: number; + /** + * 操作状态 + */ + status?: string; + /** + * 操作消息 + */ + message?: string; + /** + * 时间设置索引列表 + */ + index: Array; + /** + * 时间设置数据字典, key来自于index列表的uid + */ + data: Record; +}; + diff --git a/frontend/src/api/models/TimeSetIndexItem.ts b/frontend/src/api/models/TimeSetIndexItem.ts new file mode 100644 index 0000000..474dbea --- /dev/null +++ b/frontend/src/api/models/TimeSetIndexItem.ts @@ -0,0 +1,15 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type TimeSetIndexItem = { + /** + * 唯一标识符 + */ + uid: string; + /** + * 配置类型 + */ + type: string; +}; + diff --git a/frontend/src/api/models/TimeSet_Info.ts b/frontend/src/api/models/TimeSet_Info.ts new file mode 100644 index 0000000..f9b85fd --- /dev/null +++ b/frontend/src/api/models/TimeSet_Info.ts @@ -0,0 +1,15 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type TimeSet_Info = { + /** + * 是否启用 + */ + Enabled?: (boolean | null); + /** + * 时间设置, 格式为HH:MM + */ + Time?: (string | null); +}; + diff --git a/frontend/src/api/models/UserConfig_Notify.ts b/frontend/src/api/models/UserConfig_Notify.ts new file mode 100644 index 0000000..dfca928 --- /dev/null +++ b/frontend/src/api/models/UserConfig_Notify.ts @@ -0,0 +1,43 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type UserConfig_Notify = { + /** + * 是否启用通知 + */ + Enabled?: (boolean | null); + /** + * 是否发送统计信息 + */ + IfSendStatistic?: (boolean | null); + /** + * 是否发送高资喜报 + */ + IfSendSixStar?: (boolean | null); + /** + * 是否发送邮件通知 + */ + IfSendMail?: (boolean | null); + /** + * 邮件接收地址 + */ + ToAddress?: (string | null); + /** + * 是否使用Server酱推送 + */ + IfServerChan?: (boolean | null); + /** + * ServerChanKey + */ + ServerChanKey?: (string | null); + /** + * 是否使用Webhook推送 + */ + IfCompanyWebHookBot?: (boolean | null); + /** + * 企微Webhook Bot URL + */ + CompanyWebHookBotUrl?: (string | null); +}; + diff --git a/frontend/src/api/models/UserGetIn.ts b/frontend/src/api/models/UserGetIn.ts new file mode 100644 index 0000000..0c7b2c6 --- /dev/null +++ b/frontend/src/api/models/UserGetIn.ts @@ -0,0 +1,15 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type UserGetIn = { + /** + * 所属脚本ID + */ + scriptId: string; + /** + * 用户ID, 未携带时表示获取所有用户数据 + */ + userId?: (string | null); +}; + diff --git a/frontend/src/api/models/UserGetOut.ts b/frontend/src/api/models/UserGetOut.ts new file mode 100644 index 0000000..3b4d7bd --- /dev/null +++ b/frontend/src/api/models/UserGetOut.ts @@ -0,0 +1,30 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { GeneralUserConfig } from './GeneralUserConfig'; +import type { MaaUserConfig } from './MaaUserConfig'; +import type { UserIndexItem } from './UserIndexItem'; +export type UserGetOut = { + /** + * 状态码 + */ + code?: number; + /** + * 操作状态 + */ + status?: string; + /** + * 操作消息 + */ + message?: string; + /** + * 用户索引列表 + */ + index: Array; + /** + * 用户数据字典, key来自于index列表的uid + */ + data: Record; +}; + diff --git a/frontend/src/api/models/UserIndexItem.ts b/frontend/src/api/models/UserIndexItem.ts new file mode 100644 index 0000000..afb424a --- /dev/null +++ b/frontend/src/api/models/UserIndexItem.ts @@ -0,0 +1,24 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type UserIndexItem = { + /** + * 唯一标识符 + */ + uid: string; + /** + * 配置类型 + */ + type: UserIndexItem.type; +}; +export namespace UserIndexItem { + /** + * 配置类型 + */ + export enum type { + MAA_USER_CONFIG = 'MaaUserConfig', + GENERAL_USER_CONFIG = 'GeneralUserConfig', + } +} +