Skip to content

Commit

Permalink
feat: improve invite service
Browse files Browse the repository at this point in the history
  • Loading branch information
asjdf committed Nov 23, 2023
1 parent 82a399c commit 423e8fd
Show file tree
Hide file tree
Showing 9 changed files with 1,012 additions and 144 deletions.
130 changes: 129 additions & 1 deletion gen/openapi/team/v1/team_service.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,77 @@
]
}
},
"/gapi/team/v1/team/member/invite/list": {
"get": {
"summary": "列出邀请中列表",
"operationId": "TeamService_ListInvitingMember",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1ListInvitingMemberResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "teamId",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "cursor",
"description": "分页游标",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"TeamService"
]
}
},
"/gapi/team/v1/team/member/invite/revoke": {
"post": {
"summary": "撤回邀请",
"operationId": "TeamService_RevokeInviteMember",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1RevokeInviteMemberResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1RevokeInviteMemberRequest"
}
}
],
"tags": [
"TeamService"
]
}
},
"/gapi/team/v1/team/member/remove": {
"post": {
"summary": "从团队中移除成员",
Expand Down Expand Up @@ -335,6 +406,35 @@
}
}
},
"v1InviteInfo": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"deletedAt": {
"type": "string",
"format": "date-time"
},
"teamId": {
"type": "string"
},
"uid": {
"type": "string"
},
"username": {
"type": "string"
}
}
},
"v1InviteMemberRequest": {
"type": "object",
"properties": {
Expand All @@ -351,7 +451,24 @@
}
},
"v1InviteMemberResponse": {
"type": "object"
"type": "object",
"properties": {
"inviteId": {
"type": "string"
}
}
},
"v1ListInvitingMemberResponse": {
"type": "object",
"properties": {
"inviteMembers": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1InviteInfo"
}
}
}
},
"v1RemoveMemberRequest": {
"type": "object",
Expand All @@ -367,6 +484,17 @@
"v1RemoveMemberResponse": {
"type": "object"
},
"v1RevokeInviteMemberRequest": {
"type": "object",
"properties": {
"inviteId": {
"type": "string"
}
}
},
"v1RevokeInviteMemberResponse": {
"type": "object"
},
"v1Team": {
"type": "object",
"properties": {
Expand Down
160 changes: 144 additions & 16 deletions gen/proto/team/v1/team.pb.go

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

10 changes: 10 additions & 0 deletions gen/proto/team/v1/team.pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,14 @@ export type Team = {
avatar?: string
uid?: string
publicKey?: string
}

export type InviteInfo = {
id?: string
createdAt?: GoogleProtobufTimestamp.Timestamp
updatedAt?: GoogleProtobufTimestamp.Timestamp
deletedAt?: GoogleProtobufTimestamp.Timestamp
teamId?: string
uid?: string
username?: string
}
Loading

0 comments on commit 423e8fd

Please sign in to comment.