Skip to content

Commit

Permalink
feat: entities/feed/model/types.ts를 common.type, report.type, write.t…
Browse files Browse the repository at this point in the history
…ype ts파일로 분리
  • Loading branch information
suhwan2004 committed Nov 5, 2024
1 parent aea5cc1 commit c61d981
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,4 @@ export interface IFeed {
updatedAt: string;
}

export interface IReportFeedReqDTO {
category: string;
content: string;
isBlind: boolean;
}

export interface IWriteFeedReqDTO {
content: string;
images: string[];
scope: TFeedScope;
}

export type TFeedScope = 'public' | 'friends' | 'private';
4 changes: 3 additions & 1 deletion src/entities/feed/model/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export * from './types';
export * from './common.type';
export * from './report.type';
export * from './write.type';
5 changes: 5 additions & 0 deletions src/entities/feed/model/report.type.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export interface IReportFeedReqDTO {
category: string;
content: string;
isBlind: boolean;
}
7 changes: 7 additions & 0 deletions src/entities/feed/model/write.type.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { TFeedScope } from './common.type';

export interface IWriteFeedReqDTO {
content: string;
images: string[];
scope: TFeedScope;
}

0 comments on commit c61d981

Please sign in to comment.