riceEx / CITS3403-project

repo for project
1 stars 0 forks source link

Backend: Post, Comment And Score #29

Open LDY681 opened 4 months ago

LDY681 commented 4 months ago

Models:

APIs:

Functions:

Websocket:

TODO: APIs:

Functions:

LDY681 commented 4 months ago

30

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

LDY681 commented 4 months ago

31

  1. require logins and fetch current user's id
  2. fix transaction blocked when starting new one
LDY681 commented 4 months ago

Update: like count is confirmed to be comment-level Score calculation is still under discussion

LDY681 commented 3 months ago

TODO update_post API delete_post API add file storage for file(s) upload per post

LDY681 commented 3 months ago

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`

LDY681 commented 3 months ago

added update_post and delete_post without user priviledges

LDY681 commented 3 months ago

file storage and image upload are done. send image as base64 string to backend, see example with addPostImageTest button