Skip to content

Commit

Permalink
update: rename group to team
Browse files Browse the repository at this point in the history
  • Loading branch information
asjdf committed Nov 22, 2023
1 parent 857accf commit c53358e
Show file tree
Hide file tree
Showing 13 changed files with 372 additions and 373 deletions.
66 changes: 33 additions & 33 deletions gen/openapi/sync/v1/sync_service.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"format": "date-time"
},
{
"name": "groupId",
"name": "teamId",
"in": "query",
"required": false,
"type": "string"
Expand Down Expand Up @@ -86,15 +86,15 @@
]
}
},
"/gapi/sync/v1/group": {
"/gapi/sync/v1/key_wallet": {
"get": {
"summary": "通过UID获取所有所在组变动信息",
"operationId": "SyncService_SyncGroup",
"summary": "获取用户密钥对",
"operationId": "SyncService_SyncUserKeyWallet",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1SyncGroupResponse"
"$ref": "#/definitions/v1SyncUserKeyWalletResponse"
}
},
"default": {
Expand All @@ -107,6 +107,7 @@
"parameters": [
{
"name": "after",
"description": "获取该时间之后的设置变化,若不设置该字段,则拉取全量配置信息",
"in": "query",
"required": false,
"type": "string",
Expand All @@ -116,17 +117,15 @@
"tags": [
"SyncService"
]
}
},
"/gapi/sync/v1/key_wallet": {
"get": {
"summary": "获取用户密钥对",
"operationId": "SyncService_SyncUserKeyWallet",
},
"post": {
"summary": "修改用户密钥对,修改的时候所有相关组的加密密钥均要替换",
"operationId": "SyncService_UpdateUserKeyWallet",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1SyncUserKeyWalletResponse"
"$ref": "#/definitions/v1UpdateUserKeyWalletResponse"
}
},
"default": {
Expand All @@ -138,26 +137,28 @@
},
"parameters": [
{
"name": "after",
"description": "获取该时间之后的设置变化,若不设置该字段,则拉取全量配置信息",
"in": "query",
"required": false,
"type": "string",
"format": "date-time"
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1UpdateUserKeyWalletRequest"
}
}
],
"tags": [
"SyncService"
]
},
"post": {
"summary": "修改用户密钥对,修改的时候所有相关组的加密密钥均要替换",
"operationId": "SyncService_UpdateUserKeyWallet",
}
},
"/gapi/sync/v1/team": {
"get": {
"summary": "通过UID获取所有所在组变动信息",
"operationId": "SyncService_SyncTeam",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1UpdateUserKeyWalletResponse"
"$ref": "#/definitions/v1SyncTeamResponse"
}
},
"default": {
Expand All @@ -169,12 +170,11 @@
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1UpdateUserKeyWalletRequest"
}
"name": "after",
"in": "query",
"required": false,
"type": "string",
"format": "date-time"
}
],
"tags": [
Expand Down Expand Up @@ -424,14 +424,14 @@
}
}
},
"v1SyncGroupResponse": {
"v1SyncTeamResponse": {
"type": "object",
"properties": {
"serverTime": {
"type": "string",
"format": "date-time"
},
"groups": {
"teams": {
"type": "array",
"items": {
"type": "object",
Expand Down Expand Up @@ -503,7 +503,7 @@
"v1UpdateConfigRequest": {
"type": "object",
"properties": {
"groupId": {
"teamId": {
"type": "string"
},
"host": {
Expand Down Expand Up @@ -584,7 +584,7 @@
"gid": {
"type": "string"
},
"encryptedGroupPrivateKey": {
"encryptedTeamPrivateKey": {
"type": "string"
},
"createdAt": {
Expand Down
2 changes: 1 addition & 1 deletion gen/openapi/team/v1/team_service.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@
"userId": {
"type": "string"
},
"encryptedGroupPrivateKey": {
"encryptedTeamPrivateKey": {
"type": "string",
"title": "使用受邀请用户的公钥加密后的团队私钥"
}
Expand Down
58 changes: 29 additions & 29 deletions gen/proto/sync/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/sync/v1/key_wallet.pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as GoogleProtobufTimestamp from "../../google/protobuf/timestamp.pb"
export type UserKeyWallet = {
uid?: string
gid?: string
encryptedGroupPrivateKey?: string
encryptedTeamPrivateKey?: string
createdAt?: GoogleProtobufTimestamp.Timestamp
updatedAt?: GoogleProtobufTimestamp.Timestamp
deletedAt?: GoogleProtobufTimestamp.Timestamp
Expand Down
Loading

0 comments on commit c53358e

Please sign in to comment.