Feat: 썸네일 추가

This commit is contained in:
정현조 2024-09-24 09:17:00 +09:00
parent da504824e8
commit 471c87f4e2
2 changed files with 4 additions and 6 deletions

View File

@ -103,6 +103,7 @@ function ProjectList({ projects, workspaceId }: { projects: ProjectResponse[]; w
title={project.title}
to={`${webPath.workspace()}/${workspaceId}/${project.id}`}
description={project.projectType}
imageUrl={project.thumbnail}
/>
))}
</div>

View File

@ -122,18 +122,15 @@ export interface ProjectRequest {
projectType: 'classification' | 'detection' | 'segmentation';
}
export interface ProjectResponse {
export type ProjectResponse = {
id: number;
title: string;
workspaceId: number;
projectType: 'classification' | 'detection' | 'segmentation';
createdAt: string;
updatedAt: string;
}
export interface ProjectListResponse {
workspaceResponses: ProjectResponse[];
}
thumbnail?: string; // Optional
};
// 댓글 관련 DTO
export interface CommentRequest {