Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

폴더 목록 및 기본폴더 생성 #40

Closed
wants to merge 2 commits into from

Conversation

Marades
Copy link
Collaborator

@Marades Marades commented Jul 5, 2024

PR 내용

  • 폴더 목록 조회 api 개선
  • 유저 생성 시 기본 폴더 생성
  • Response용 폴더 타입 추가

추가 및 변경 사항

API endpoint와 추가 혹은 변경된 사항을 적어주세요!

PR 중점사항

  • folder list 쪽 하다 좀 화나서 걍 좀 하드하게 해버림..ㅎ

리뷰어가 중점적으로 봐야하는 부분에 대해 적어주세요!

스크린샷

@Marades Marades self-assigned this Jul 5, 2024
@github-actions github-actions bot added document 문서화 관련 작업 수정 및 생성 feature labels Jul 5, 2024
@Marades Marades force-pushed the feat/folder-list-default-folders branch from 01e8d45 to 99a08ed Compare July 5, 2024 18:12
@J-Hoplin
Copy link
Collaborator

J-Hoplin commented Jul 6, 2024

수고했어 형!!

Comment on lines 3 to 8
DEFAULT = 'default',

/** 실제 DB에 들어가지는 않고 클라이언트에 내려주기 위해 있는 값 타입 */
ALL = 'all',
FAVORITE = 'favorite',
}
Copy link
Collaborator

@hye-on hye-on Jul 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

그럼 DEFAULT 인 폴더는 "나중에 읽을 링크" 만 있는건강 궁금쓰

Comment on lines +3 to +9
export class FolderDomain {
userId: string;

name: string;

type: FolderType;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

도메인으로 따로 빼는 기준 궁금쓰

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

없앰 ㅎㅎ

Comment on lines +4 to 8
export interface FolderListServiceDto {
/** */
defaultFolders: any[];
customFolders: any[];
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

파일 이름은 안바뀌나욤?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

바꿈

Comment on lines +57 to +59
type: FolderType.ALL,
userId: new MongooseSchema.Types.ObjectId(userId),
postCount: allPostCount,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MongooseSchema 별칭 쓴 이유 궁금쓰

Comment on lines 18 to +19
constructor(data: FolderDocument) {
this.id = data._id.toString();
this.id = data._id ? data._id.toString() : data.id;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_id가 없으면 data.id 주는거 맞징
근데 FolderDocument에 id가 없는것 같은데(any 타입 넘겨서) 임시로 해둔건가?

Copy link
Collaborator

@hye-on hye-on left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생했어 !!! 👍

@Marades Marades closed this Jul 20, 2024
@J-Hoplin J-Hoplin deleted the feat/folder-list-default-folders branch July 20, 2024 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
document 문서화 관련 작업 수정 및 생성 feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants