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

Feature/create post #7

Merged
merged 5 commits into from
Dec 10, 2021
Merged

Feature/create post #7

merged 5 commits into from
Dec 10, 2021

Conversation

sunrabbit123
Copy link
Member

게시물 생성에 대한 개발 완료

개발 사항들

  1. writeAlgorithm 생성
  2. 작성자 권한 부여를 위한 인증절차 도입
  3. AlgorithemAlogorithem 으로 되어있는 오탈자 수정
  4. 일부 모델 수정
  5. DB Connect Decorator 생성

관련된 이슈

Copy link
Contributor

@louis7308 louis7308 left a comment

Choose a reason for hiding this comment

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

desc.value 가 의미 하는 값이 무엇인지 궁금합니다

@sunrabbit123
Copy link
Member Author

desc.value 가 의미 하는 값이 무엇인지 궁금합니다
@louis7308

descdescriptor의 준말로 Object.defineProperty() 해당 타입을 참조하게 되는데, 새로 정의하거나 수정하려는 객체값 포함한 타입으로 나타나요.
우리가 데코레이터를 메서드 위에 달기때문에 메서드의 정보들이 들어오는거고요.

참고

그 중 해당 타입의 프로퍼티 중 value의 경우, 객체값을 나타내며 우리의 경우 메서드가 여기에 들어오게 됩니다.
그래서 함수 오버라이드를 위해 desc.value = () => {}의 방식으로 덮어씌우는 방식으로 코드를 짜게 됐습니다.

@sunrabbit123 sunrabbit123 merged commit f366820 into develop Dec 10, 2021
@sunrabbit123 sunrabbit123 deleted the feature/createPost branch December 10, 2021 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants