add dutyinfo page

This commit is contained in:
Dawn1Ocean
2024-05-07 19:49:48 +08:00
parent 1ff36f366d
commit 8f062b0e8c
5 changed files with 194 additions and 101 deletions
+11 -6
View File
@@ -36,26 +36,31 @@ module.exports = {
'GET /admin/duty/current': {
success: true,
data: {
isNormalDuty: false,
isNormalDuty: true,
currentDuty: 'off',
inDutyCnt: 3,
otherDutyTime: [
{
name: '第一班',
id: 1,
title: '第一班',
place: 'fsaf',
range: ['2024-03-07T19:52:48.523303', '2024-03-07T19:52:48.523303'],
},
{
name: '第二班',
id: 2,
title: '第二班',
place: 'fsdhhv',
range: ['2024-03-07T19:52:48.523303', '2024-03-07T19:52:48.523303'],
},
{
name: '第三班',
id: 3,
title: '第三班',
place: 'fdshq',
range: ['2024-03-07T19:52:48.523303', '2024-03-07T19:52:48.523303'],
},
],
offDutyReason: '期中考试周',
place: '',
dutyRecoverTime: '下周一',
dutyRecoverTime: '2024-03-07T19:52:48.523303',
},
},
'POST /admin/duty/update': {