mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
feat: webui OB11Config
This commit is contained in:
src/webui/src/api
7
src/webui/src/api/OB11Config.ts
Normal file
7
src/webui/src/api/OB11Config.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { RequestHandler } from "express";
|
||||
import { DataRuntime } from "../helper/Data";
|
||||
const isEmpty = (data: any) => data === undefined || data === null || data === '';
|
||||
export const OB11GetConfigHandler: RequestHandler = async (req, res) => {
|
||||
}
|
||||
export const OB11SetConfigHandler: RequestHandler = async (req, res) => {
|
||||
}
|
@@ -35,7 +35,19 @@ export const QQCheckLoginStatusHandler: RequestHandler = (req, res) => {
|
||||
}
|
||||
});
|
||||
};
|
||||
export const QQQuickLoginHandler: RequestHandler = async (req, res) => {
|
||||
export const QQSetQuickLoginHandler: RequestHandler = async (req, res) => {
|
||||
// 未完成
|
||||
const { token } = req.body;
|
||||
if (token) {
|
||||
const isLogin = await DataRuntime.getQQLoginStatus();
|
||||
}
|
||||
// 未实现
|
||||
res.send({
|
||||
code: 0,
|
||||
message: 'success'
|
||||
});
|
||||
}
|
||||
export const QQGetQuickLoginListHandler: RequestHandler = async (req, res) => {
|
||||
// 未完成
|
||||
const { token } = req.body;
|
||||
if (token) {
|
||||
|
Reference in New Issue
Block a user