- GOOGLE DRIVE
- Timestamp: Seconds from 01/01/1970 (Unix)
- Lạc Long Quân - Manage users, posts
- Âu Cơ - Manage chats, messages,...
- Users can only block diary from each other if they were a friend
- Block message means block everything, including
- Remove the friend relationship
- Remove all likes, comments
- Only friends can see each other posts, comments, likes
- signup
- login
- logout
- set_request_friend
- get_requested_friend
- set_accept_friend
- get_user_friends
- change_password
- set_block_user
- set_block_diary
- set_user_info
- get_user_info
- set_user_online
- add_post
- get_post
- get_list_posts
- check_new_item
- edit_post
- missing images order
- delete_post
- report
- set_comment
- get_comment
- like
- edit_comment
- del_comment
- search
- get_conversation
- delete_message
- get_list_conversation
- delete_conversation
- TODO (data whatever)
- Tạo connection || ws://localhost:12000/ws ||
- Join room
-
type WsMessage struct { MsgID string `json:"message_id"` // null Event string `json:"event"` // joinroom SenderID string `json:"sender"` // user-id ReceiverID string `json:"receiver"` // receiver-id Created string `json:"created"` // time.Now.UnixMili() Content string `json:"content"` // null }
-
- send message
-
type WsMessage struct { MsgID string `json:"message_id"` // null Event string `json:"event"` // send SenderID string `json:"sender"` // user-id ReceiverID string `json:"receiver"` // receiver-id Created string `json:"created"` // time.Now.UnixMili() Content string `json:"content"` // content }
-
- set_official_account
- check_verify_code
- del_saved_search
- get_list_suggested_friends
- get_verify_code
- get_saved_search
- get_admin_permission
- get_user_list
- set_role
- get_analyst_result
- set_user_state, delete_user
- get_user_basic_info