64 lines
1.1 KiB
TypeScript
64 lines
1.1 KiB
TypeScript
import sheetlist from './sheetlist.json';
|
|
import sheet from './sheet.json';
|
|
|
|
const api = {
|
|
'GET /admin/stats': {
|
|
success: true,
|
|
data: {
|
|
notInOreo: 114,
|
|
total: 514,
|
|
},
|
|
},
|
|
'POST /admin/sheet/update': {
|
|
success: true,
|
|
data: {},
|
|
},
|
|
'POST /admin/sheet/create': {
|
|
success: true,
|
|
data: {},
|
|
},
|
|
'GET /admin/sheet/current': {
|
|
success: true,
|
|
data: sheet,
|
|
},
|
|
'GET /admin/sheet/list': {
|
|
success: true,
|
|
data: sheetlist,
|
|
},
|
|
'GET /admin/duty/current': {
|
|
success: true,
|
|
data: {
|
|
isInDuty: true,
|
|
currentDuty: '2',
|
|
inDutyCnt: 3,
|
|
otherDutyTime: '',
|
|
offDutyReason: '',
|
|
place: '204',
|
|
dutyRecoverTime: '',
|
|
},
|
|
},
|
|
'POST /admin/duty/update': {
|
|
success: true,
|
|
data: {},
|
|
},
|
|
'GET /admin/loglist': {
|
|
success: true,
|
|
data: {
|
|
op: '宇航员',
|
|
time: '2024-03-07T19:52:48.523303',
|
|
operation: 2,
|
|
target: 1,
|
|
prev: {
|
|
id: 114,
|
|
info: '马嘉祺',
|
|
},
|
|
curr: {
|
|
id: 514,
|
|
info: '何君琳',
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
export default api;
|