-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
51 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
syntax = "proto3"; | ||
|
||
package kritor.process; | ||
|
||
option csharp_namespace = "Kritor.Process"; | ||
option java_multiple_files = true; | ||
option java_package = "io.kritor.process"; | ||
option go_package = "grpc/kritor/process"; | ||
|
||
service ProcessService { | ||
rpc SetFriendApplyResult(SetFriendApplyResultRequest) returns (SetFriendApplyResultResponse); | ||
rpc SetGroupApplyResult(SetGroupApplyResultRequest) returns (SetGroupApplyResultResponse); | ||
rpc SetInvitedJoinGroupResult(SetInvitedJoinGroupResultRequest) returns (SetInvitedJoinGroupResultResponse); | ||
} | ||
|
||
message SetFriendApplyResultRequest { | ||
string request_id = 1; | ||
bool is_approve = 2; | ||
optional string remark = 3; // 同意时可选 | ||
} | ||
|
||
message SetFriendApplyResultResponse { | ||
} | ||
|
||
message SetGroupApplyResultRequest { | ||
string request_id = 1; | ||
bool is_approve = 2; | ||
optional string deny_reason = 3; // 拒绝时可选 | ||
} | ||
|
||
message SetGroupApplyResultResponse { | ||
} | ||
|
||
message SetInvitedJoinGroupResultRequest { | ||
string request_id = 1; | ||
bool is_approve = 2; | ||
} | ||
|
||
message SetInvitedJoinGroupResultResponse { | ||
} |