fix: change dutyinfo api
This commit is contained in:
@@ -26,6 +26,7 @@ const DutyInfo: React.FC = () => {
|
||||
useEffect(() => {
|
||||
getDutyInfo()
|
||||
.then((res) => {
|
||||
console.log(res.data);
|
||||
setDutyInfo(res.data);
|
||||
setLoading(false);
|
||||
})
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
export type Shift = {
|
||||
name: string;
|
||||
range: string[];
|
||||
};
|
||||
|
||||
export type Info = {
|
||||
isNormalDuty: boolean;
|
||||
inDutyCnt: number;
|
||||
currentDuty: string;
|
||||
place: string;
|
||||
otherDutyStart: string;
|
||||
otherDutyEnd: string;
|
||||
otherDutyTime: Shift[];
|
||||
offDutyReason: string;
|
||||
dutyRecoverTime: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user