Feat: 썸네일 추가
This commit is contained in:
parent
da504824e8
commit
471c87f4e2
@ -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>
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user