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

post의 tag 목록에 대하여 #10

Open
tictactoeid opened this issue Dec 28, 2020 · 3 comments
Open

post의 tag 목록에 대하여 #10

tictactoeid opened this issue Dec 28, 2020 · 3 comments

Comments

@tictactoeid
Copy link
Contributor

지난번 회의에서 논의한 대로 post model에 tag를 추가하고, post api 중 write, list api의 parameter에도 tag를 추가하여
post 작성 시, 혹은 post 목록을 불러올 때 tag를 이용할 수 있도록 하였습니다.
tag는 일단은 string형으로 해 두었는데,
tag에 아무 string이 올 수 있는 것이 아니라 정해진 목록에서 고르도록 해야 할 것 같은데, 어떻게 생각하시나요?
또한, 만약 이렇게 된다면

  1. tag의 목록
  2. 사용자가 입력한 tag가 valid한지 확인을 frontend에서 할 지 server에서 할 지

2가지를 결정해야 할 것 같습니다.

@ghost ghost added the discussion label Dec 28, 2020
@ghost
Copy link

ghost commented Dec 28, 2020

이 Tag의 경우는 User 가 글을 쓸 때 Post 에 자유롭게 붙일 수 있는 건가요?

@heeedol
Copy link

heeedol commented Dec 28, 2020

tag라는 것이 어느 게시판에서 사용했는지를 알려주는 것인가요?

@tictactoeid
Copy link
Contributor Author

하나의 게시판 안에서도 tag에 따라 글이 분류된다고 보시면 될 것 같습니다.
예를 들어 자유게시판에 글을 쓸 때 유저는 (아마도 정해진) 몇 가지 태그 중 하나를 붙여 글을 쓸 수 있고,
그 게시판에서 특정 태그가 달린 게시글들만을 볼 수도 있습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants