Skip to content

Add aes key #38

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
621 changes: 621 additions & 0 deletions aeskey/aesKey.pb.go
36 changes: 36 additions & 0 deletions aeskey/aesKey.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
syntax = "proto3";
package OpenIMServer.aes_key;
option go_package = "github.com/OpenIMSDK/protocol/aesKey";


message AesKey {
string keyConversationsID=1;
string key=2;
int32 conversationType=3;
string ownerUserID=4;
string friendUserID=5;
string groupID=6;
}
message AcquireAesKeyReq {
int32 conversationType=1;
string ownerUserID=2;
string friendUserID=3;
string groupID=4;
}

message AcquireAesKeyResp {
AesKey aesKey=1;
}

message AcquireAesKeysReq {
string UserID=1;
}

message AcquireAesKeysResp {
repeated AesKey aesKeys=1;
}

service aesKey {
rpc AcquireAesKey(AcquireAesKeyReq)returns(AcquireAesKeyResp);
rpc AcquireAesKeys(AcquireAesKeysReq)returns(AcquireAesKeysResp);
}
3 changes: 2 additions & 1 deletion gen.sh
Original file line number Diff line number Diff line change
@@ -24,4 +24,5 @@ protoc --go_out=plugins=grpc:./sdkws --go_opt=module=github.com/OpenIMSDK/protoc
protoc --go_out=plugins=grpc:./third --go_opt=module=github.com/OpenIMSDK/protocol/third third/third.proto
protoc --go_out=plugins=grpc:./user --go_opt=module=github.com/OpenIMSDK/protocol/user user/user.proto
protoc --go_out=plugins=grpc:./wrapperspb --go_opt=module=github.com/OpenIMSDK/protocol/wrapperspb wrapperspb/wrapperspb.proto
protoc --go_out=plugins=grpc:./statistics --go_opt=module=github.com/OpenIMSDK/protocol/statistics statistics/statistics.proto
protoc --go_out=plugins=grpc:./statistics --go_opt=module=github.com/OpenIMSDK/protocol/statistics statistics/statistics.proto
protoc --go_out=plugins=grpc:./aesKey --go_opt=module=github.com/OpenIMSDK/protocol/aesKey aesKey/aesKey.proto