Skip to content
New issue

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

feat: add sync proto #2

Merged
merged 4 commits into from
Sep 18, 2023
Merged

feat: add sync proto #2

merged 4 commits into from
Sep 18, 2023

Conversation

asjdf
Copy link
Member

@asjdf asjdf commented Sep 17, 2023

新增同步相关proto

同步策略

同步策略选择增量同步,通过同步接口获得指定时间点后变动的数据。客户端通过解析数据,对本地数据库进行增量同步。

@asjdf asjdf self-assigned this Sep 17, 2023
@asjdf asjdf mentioned this pull request Sep 17, 2023
@GoldenSheep402
Copy link
Contributor

我觉得可以在Host里面加个SyncMode,比如需要同步到云端设置为1,不要同步到云端之留在本地设置为2,使用一次后立即销毁的设置为3,默认的模式是同步到云端,给用户一个选项可以改同步模式,然后出现把同步到云端的记录改为留在本地的操作的时候向服务器发起删除这个配置的请求,其他登录了这个账号的的客户端同步改成不同步

@asjdf
Copy link
Member Author

asjdf commented Sep 17, 2023

我觉得可以在Host里面加个SyncMode,比如需要同步到云端设置为1,不要同步到云端之留在本地设置为2,使用一次后立即销毁的设置为3,默认的模式是同步到云端,给用户一个选项可以改同步模式,然后出现把同步到云端的记录改为留在本地的操作的时候向服务器发起删除这个配置的请求,其他登录了这个账号的的客户端同步改成不同步

这个需求的主要目的是将部分配置设为不同步是吗?如果是这样的话为什么需要同步本不需要同步的内容,而不是在客户端直接将不需要同步的host过滤掉呢?

@asjdf asjdf merged commit 73a52ef into main Sep 18, 2023
@GoldenSheep402 GoldenSheep402 deleted the feat/sync branch September 26, 2023 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants