change doc & mock

This commit is contained in:
Dawn1Ocean
2024-05-09 14:54:21 +08:00
parent 8f062b0e8c
commit 44ce17d43d
4 changed files with 129 additions and 23 deletions
+16 -1
View File
@@ -1,9 +1,9 @@
import askleavelist from './askleavelist.json';
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 askleavelist from './askleavelist.json';
module.exports = {
'GET /stats': {
@@ -91,6 +91,21 @@ module.exports = {
total: 24,
data: askleavelist,
},
'POST /login': {
success: true,
data: {
token: 'token_test',
name: '亦可',
avatar: 'https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png',
role: 6,
department: 1,
access: 'admin',
},
},
'POST /logout': {
success: true,
data: {},
},
'GET /api/currentUser': {
success: true,
data: {