Skip to content

Commit

Permalink
update: add server time into sync response
Browse files Browse the repository at this point in the history
  • Loading branch information
asjdf committed Jan 10, 2024
1 parent 09ca978 commit 861218a
Show file tree
Hide file tree
Showing 17 changed files with 235 additions and 419 deletions.
10 changes: 10 additions & 0 deletions gen/openapi/sync/v1/sync_service.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,11 @@
"v1UpdateConfigResponse": {
"type": "object",
"properties": {
"serverTime": {
"type": "string",
"format": "date-time",
"title": "当前服务器时间,用于给客户端下一次拉取变动时做一个参照,避免因客户端时间偏差导致同步混乱"
},
"host": {
"$ref": "#/definitions/v1Host"
},
Expand Down Expand Up @@ -572,6 +577,11 @@
"type": "object",
"$ref": "#/definitions/v1UserKeyWallet"
}
},
"serverTime": {
"type": "string",
"format": "date-time",
"title": "当前服务器时间,用于给客户端下一次拉取变动时做一个参照,避免因客户端时间偏差导致同步混乱"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion gen/proto/auth/v1/auth_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

204 changes: 34 additions & 170 deletions gen/proto/auth/v1/auth_service.pb.gw.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gen/proto/sync/v1/host.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gen/proto/sync/v1/keychain.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gen/proto/sync/v1/known_hosts.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

286 changes: 156 additions & 130 deletions gen/proto/sync/v1/sync_service.pb.go

Large diffs are not rendered by default.

24 changes: 4 additions & 20 deletions gen/proto/sync/v1/sync_service.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions gen/proto/sync/v1/sync_service.pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export type UpdateConfigRequest = BaseUpdateConfigRequest


type BaseUpdateConfigResponse = {
serverTime?: GoogleProtobufTimestamp.Timestamp
}

export type UpdateConfigResponse = BaseUpdateConfigResponse
Expand Down Expand Up @@ -78,6 +79,7 @@ export type UpdateUserKeyWalletResponse = {
publicKey?: string
encryptedPrivateKey?: string
userKeyWalletSet?: UserV1Key_wallet.UserKeyWallet[]
serverTime?: GoogleProtobufTimestamp.Timestamp
}

export class SyncService {
Expand Down
2 changes: 1 addition & 1 deletion gen/proto/team/v1/team.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gen/proto/team/v1/team_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

84 changes: 14 additions & 70 deletions gen/proto/team/v1/team_service.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gen/proto/user/v1/key_wallet.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gen/proto/user/v1/user.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gen/proto/user/v1/user_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 4 additions & 20 deletions gen/proto/user/v1/user_service.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 861218a

Please sign in to comment.