✨ Friends api
This commit is contained in:
31
pkg/grpc/proto/friendships.proto
Normal file
31
pkg/grpc/proto/friendships.proto
Normal file
@ -0,0 +1,31 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = ".;proto";
|
||||
|
||||
package proto;
|
||||
|
||||
service Friendships {
|
||||
rpc ListFriendship(FriendshipLookupRequest) returns (ListFriendshipResponse) {}
|
||||
rpc GetFriendship(FriendshipTwoSideLookupRequest) returns (FriendshipResponse) {}
|
||||
}
|
||||
|
||||
message FriendshipLookupRequest {
|
||||
uint64 account_id = 1;
|
||||
uint32 status = 2;
|
||||
}
|
||||
|
||||
message FriendshipTwoSideLookupRequest {
|
||||
uint64 account_id = 1;
|
||||
uint64 related_id = 2;
|
||||
uint32 status = 3;
|
||||
}
|
||||
|
||||
message ListFriendshipResponse {
|
||||
repeated FriendshipResponse data = 1;
|
||||
}
|
||||
|
||||
message FriendshipResponse {
|
||||
uint64 account_id = 1;
|
||||
uint64 related_id = 2;
|
||||
uint32 status = 3;
|
||||
}
|
Reference in New Issue
Block a user