56 lines
994 B
TypeScript
56 lines
994 B
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: {}, //TODO
|
|
},
|
|
},
|
|
};
|
|
|
|
export default api;
|