EVA-Tea/mock/requestRecord.mock.js

86 lines
1.9 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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';
module.exports = {
'GET /stats': {
success: true,
data: {
todayPT: 114, // 今日预填写工单总数
totalPT: 514, // 所有预填写工单
oreo: 93, // 加入 Oreo 工单数
report: 8, // 今日反馈数
allSuccess: 1919, // 所有成功工单(包括 Oreo 内)
all: 2024, // 所有工单(包括 Oreo 内)
},
},
'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,
page: 1,
total: 24,
data: loglist,
},
'GET /admin/reportlist': {
success: true,
page: 1,
total: 24,
data: reportlist,
},
'GET /admin/conclusionlist': {
success: true,
page: 1,
total: 24,
data: conclusionlist,
},
'GET /api/currentUser': {
success: true,
data: {
name: 'Serati Ma',
avatar: 'https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png',
userid: '00000001',
group: '蚂蚁金服某某某事业群某某平台部某某技术部UED',
access: 'admin',
},
},
'POST /api/login/outLogin': { data: {}, success: true },
'POST /api/login/account': {
status: 'ok',
type: 'account',
currentAuthority: 'admin',
},
};