Passport/pkg/proto/friendships.proto

32 lines
635 B
Protocol Buffer
Raw Normal View History

2024-04-05 17:07:36 +00:00
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 FriendshipResponse {
uint64 account_id = 1;
uint64 related_id = 2;
uint32 status = 3;
2024-05-03 17:47:44 +00:00
}
message ListFriendshipResponse {
repeated FriendshipResponse data = 1;
}