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
设计一种用于同步用户本地数据和服务端时使用的通用协议
The text was updated successfully, but these errors were encountered:
对于用户数据的服务端使用增量存储,在存储时给于每个增量一个唯一数字id,此id为增量的,客户端可以根据本地的id和远程的id之间的差直接知晓需要同步的增量的数量
同步时仅同步当前数据源下的数据
{ "data_id": -1, "data": [ { "data_id": -1, "web_data_source_id": -1, "book_user_data": [ { "id": -1, "last_read_time": "uuuu-MM-ddTHH:mm:ss", "total_read_time": "", "reading_progress": 0.0, "last_read_chapter_id": -1, "last_read_chapter_title": "", "last_read_chapter_progress": 0.0, "read_completed_chapter_ids": [] } ], "book_shelf": [ { "id": -1, "name": "", "sort_type": "", "auto_cache": false, "system_update_reminder": false, "all_book_ids": [], "pinned_book_ids": [], "updatedBookIds": [] } ], "book_shelf_book_metadata": [ { "id": -1, "last_update": "uuuu-MM-ddTHH:mm:ss", "book_shelf_ids": [] } ], "user_data": [ { "path": "", "group": "", "type": "", "value": "" } ] } ] }
同步时客户端向服务器提供一个唯一id,使用此id可以获取,修改数据,之后执行以下步骤
通讯使用post请求方式
Sorry, something went wrong.
yukonisen
dmzz-yyhyy
No branches or pull requests
设计一种用于同步用户本地数据和服务端时使用的通用协议
The text was updated successfully, but these errors were encountered: