Fix: createdAt과 updatedAt으로 api 통일
This commit is contained in:
parent
946f973cd0
commit
dfeba6d1a7
@ -59,7 +59,7 @@ export default function ReviewList({
|
||||
workspaceId={workspaceId}
|
||||
reviewId={item.reviewId}
|
||||
title={item.title}
|
||||
createdTime={item.createAt}
|
||||
createdTime={item.createdAt}
|
||||
creatorName={item.author.nickname}
|
||||
projectId={item.projectId}
|
||||
status={item.status}
|
||||
|
@ -25,8 +25,8 @@ export const reviewHandlers = [
|
||||
dataPath: 'https://example.com/data1.json',
|
||||
},
|
||||
],
|
||||
createAt: new Date().toISOString(),
|
||||
updateAt: new Date().toISOString(),
|
||||
createdAt: new Date().toISOString(),
|
||||
updatedAt: new Date().toISOString(),
|
||||
author: { id: 1, nickname: 'Author', profileImage: '', email: 'author@example.com' },
|
||||
reviewer: { id: 2, nickname: 'Reviewer', profileImage: '', email: 'reviewer@example.com' },
|
||||
};
|
||||
@ -49,8 +49,8 @@ export const reviewHandlers = [
|
||||
title: reviewData.title,
|
||||
content: reviewData.content,
|
||||
status: 'REQUESTED',
|
||||
createAt: new Date().toISOString(),
|
||||
updateAt: new Date().toISOString(),
|
||||
createdAt: new Date().toISOString(),
|
||||
updatedAt: new Date().toISOString(),
|
||||
author: { id: 1, nickname: 'Author', profileImage: '', email: 'author@example.com' },
|
||||
};
|
||||
|
||||
@ -75,8 +75,8 @@ export const reviewHandlers = [
|
||||
title: reviewData.title,
|
||||
content: reviewData.content,
|
||||
status: 'REQUESTED',
|
||||
createAt: new Date().toISOString(),
|
||||
updateAt: new Date().toISOString(),
|
||||
createdAt: new Date().toISOString(),
|
||||
updatedAt: new Date().toISOString(),
|
||||
author: { id: 1, nickname: 'Author', profileImage: '', email: 'author@example.com' },
|
||||
};
|
||||
|
||||
@ -112,8 +112,8 @@ export const reviewHandlers = [
|
||||
title: `Updated Review ${reviewId}`,
|
||||
content: 'Updated content',
|
||||
status: statusRequest.reviewStatus,
|
||||
createAt: new Date().toISOString(),
|
||||
updateAt: new Date().toISOString(),
|
||||
createdAt: new Date().toISOString(),
|
||||
updatedAt: new Date().toISOString(),
|
||||
author: { id: 1, nickname: 'Author', profileImage: '', email: 'author@example.com' },
|
||||
};
|
||||
|
||||
@ -145,9 +145,9 @@ export const reviewHandlers = [
|
||||
reviewId: index + 1,
|
||||
title: `Review ${index + 1}`,
|
||||
content: `Review content ${index + 1}`,
|
||||
status: (reviewStatus || 'REQUESTED') as ReviewStatus,
|
||||
createAt: new Date().toISOString(),
|
||||
updateAt: new Date().toISOString(),
|
||||
status: reviewStatus as ReviewStatus,
|
||||
createdAt: new Date().toISOString(),
|
||||
updatedAt: new Date().toISOString(),
|
||||
author: { id: 1, nickname: 'Author', profileImage: '', email: 'author@example.com' },
|
||||
}));
|
||||
|
||||
|
@ -141,8 +141,8 @@ export const workspaceHandlers = [
|
||||
profileImage: 'reviewer1.jpg',
|
||||
email: 'reviewer1@example.com',
|
||||
},
|
||||
createAt: new Date().toISOString(),
|
||||
updateAt: new Date().toISOString(),
|
||||
createdAt: new Date().toISOString(),
|
||||
updatedAt: new Date().toISOString(),
|
||||
},
|
||||
{
|
||||
reviewId: 2,
|
||||
@ -156,8 +156,8 @@ export const workspaceHandlers = [
|
||||
profileImage: 'reviewer2.jpg',
|
||||
email: 'reviewer2@example.com',
|
||||
},
|
||||
createAt: new Date().toISOString(),
|
||||
updateAt: new Date().toISOString(),
|
||||
createdAt: new Date().toISOString(),
|
||||
updatedAt: new Date().toISOString(),
|
||||
},
|
||||
];
|
||||
|
||||
|
@ -17,8 +17,8 @@ export interface ReviewResponse {
|
||||
content: string;
|
||||
status: ReviewStatus;
|
||||
author: MemberResponse;
|
||||
createAt: string;
|
||||
updateAt: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface ReviewStatusRequest {
|
||||
|
Loading…
Reference in New Issue
Block a user