-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
why like 버튼 동작 시 디비에 저장되어야 함 how - cookie로 사용자 정보 캐치 - 피드 정보에 feedid추가 - feedId로 해당 피드와 사용자 간의 like relation 연결 (중복으로 되지 않도록 merge 로 연결) - cors 설정 참고 unlike는 아직 안함
- Loading branch information
1 parent
3fa72e8
commit fdb1e8e
Showing
11 changed files
with
260 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
export interface Feeds { | ||
feedItems: IFeedItem[]; | ||
} | ||
|
||
export interface Idate { | ||
year: number; | ||
month: number; | ||
day: number; | ||
hour: number; | ||
minute: number; | ||
second: number; | ||
nanosecond: number; | ||
timeZoneOffsetSeconds: number; | ||
timeZoneId: string; | ||
} | ||
|
||
export interface IUser { | ||
nickname: string; | ||
hometown: string; | ||
thumbnail: string; | ||
residence: string; | ||
email: string; | ||
} | ||
export interface Content { | ||
createdAt: Idate; | ||
content: string; | ||
} | ||
|
||
export interface Comment { | ||
id: string; | ||
content: string; | ||
} | ||
|
||
export interface IFeedItem { | ||
searchUser: IUser; | ||
feed: Content; | ||
feedId: number; | ||
totallikes: number; | ||
hasLiked: number; | ||
comments: [Comment]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.