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} title={project.title}
to={`${webPath.workspace()}/${workspaceId}/${project.id}`} to={`${webPath.workspace()}/${workspaceId}/${project.id}`}
description={project.projectType} description={project.projectType}
imageUrl={project.thumbnail}
/> />
))} ))}
</div> </div>

View File

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