This commit is contained in:
Dawn1Ocean
2024-04-16 19:30:44 +08:00
parent a6d435a22f
commit 0ea7eff03d
5 changed files with 47 additions and 9 deletions
+9 -5
View File
@@ -1,15 +1,19 @@
import conclusionlist from './conclusionlist.json';
import loglist from './loglist.json';
import reportlist from './reportlist.json';
import sheet from './sheet.json';
import sheetlist from './sheetlist.json';
import reportlist from './reportlist.json';
import conclusionlist from './conclusionlist.json';
module.exports = {
'GET /admin/stats': {
'GET /stats': {
success: true,
data: {
notInOreo: 114,
total: 514,
todayPT: 114, // 今日预填写工单总数
totalPT: 514, // 所有预填写工单
oreo: 93, // 加入 Oreo 工单数
report: 8, // 今日反馈数
allSuccess: 1919, // 所有成功工单(包括 Oreo 内)
all: 2024, // 所有工单(包括 Oreo 内)
},
},
'POST /admin/sheet/update': {
-3
View File
@@ -154,9 +154,6 @@ export default {
access = '';
res.send({ data: {}, success: true });
},
'POST /api/register': (req: Request, res: Response) => {
res.send({ status: 'ok', currentAuthority: 'user', success: true });
},
'GET /api/500': (req: Request, res: Response) => {
res.status(500).send({
timestamp: 1513932555104,