Open LDY681 opened 4 months ago
rework on score model and functions add_post, create a new post add_comment, create a comment to a post checkGame(): if new comment matches with post content update post status to completed and add score to user create testing for riddle game
Update: like count is confirmed to be comment-level Score calculation is still under discussion
TODO update_post API delete_post API add file storage for file(s) upload per post
added some filters for get_posts, we currently dont have like count so here are the filters to start with for now. get_posts, get post based on filters param word_length, length of the word param language, source language of the hint, default is english param hint, hint to the guessing game param status, status of the post param page_no, page number param page_size, number of posts per page param order, order of the posts, default is descending order`
added update_post and delete_post without user priviledges
file storage and image upload are done. send image as base64 string to backend, see example with addPostImageTest button
Models:
APIs:
Functions:
Websocket:
TODO: APIs:
Functions: