2024-05-24 18:11:48 +08:00

39 lines
636 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package dataver
/*
UserIDs 顺序
前500顺序
1,2,3,4,5,6,7,8,9
1,3,5,7,8,9
1.sdk添加一个表记录 docID(后续换名字), version
2.sdk同步先计算idHashapi调用参数idHash, docID, version
3.服务器先判断version变更记录没有直接返回同步成功。
有变更先查版本变更记录在查前500id变更记录只保留前500id中的
根据前500id计算idHash不一致返回会全量id不反悔删除id
全量同步有标识只返回全量id
变更记录只包含id不包括详细信息。
4.sdk通过变更记录同步数据不一致进行重试。
*/