We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No description provided.
The text was updated successfully, but these errors were encountered:
테이블에 두개의 값이 동시에 가지고있는 값이 있는지 없는지 체크를한다 만약에 없으면 그 테이블에 유저아이디와 이슈/코멘트 아이디를 테이블에 넣는다. 나머지 이모지들은 false로 디폴트. 만약에 있으면 그냥 continue.
유저가 특정한 이슈/코멘트에 대해서 이모지들 목록을 가지고 있다. 현재 유저아이디와 이모지를 넣으려는 이슈/코멘트 아이디를 같이 담아서 리퀘스트한다. Request GET /api/emojis?issue_id=1&user_id=1 Response
GET /api/emojis?issue_id=1&user_id=1
{ ":thumbs_up:": false, ":heart_eyes:": false }
FE 제안 [ { "code": ":thumbs_up:", "selected": false }, { "code": ":thumbs_up:", "selected": false } ]
그 이모지를 눌렀을때 Request PUT /api/emojis
PUT /api/emojis
{ "issue_id": 1, "code": ":thumbs_up:", "selected": true }
Response 200 OK
200 OK
나는 이걸 가지고 emoji 테이블을 탐색한다. issue_id와 code를 가지고 검색해서 where절로 두개가 같이 존재하면 selected 에따라서 +1해주고 200 Ok
존재하지 않으면, 생성해주고 200 OK
Sorry, something went wrong.
[#127] Feat: 이모지 달기 구현
9d68098
kyupid
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: