plug.proto aktualisiert
This commit is contained in:
parent
9cd117f2c2
commit
241db7ceab
20
plug.proto
20
plug.proto
@ -9,6 +9,7 @@ service PlugConnector {
|
|||||||
rpc TaskCancel(PlugTask) returns (PlugTaskStatus);
|
rpc TaskCancel(PlugTask) returns (PlugTaskStatus);
|
||||||
rpc Ping(PingRequest) returns (PongResponse); // Added Ping endpoint
|
rpc Ping(PingRequest) returns (PongResponse); // Added Ping endpoint
|
||||||
rpc SendMessage(SendMessageRequest) returns (SendMessageResponse);
|
rpc SendMessage(SendMessageRequest) returns (SendMessageResponse);
|
||||||
|
rpc GetUserMessages(GetMessagesRequest) returns (GetMessagesResponse);
|
||||||
}
|
}
|
||||||
|
|
||||||
message PingRequest {
|
message PingRequest {
|
||||||
@ -42,13 +43,32 @@ message PlugTaskCreation {
|
|||||||
string user_source_name = 2;
|
string user_source_name = 2;
|
||||||
bool deep_scrape = 3;
|
bool deep_scrape = 3;
|
||||||
string api_key = 4;
|
string api_key = 4;
|
||||||
|
string user_name = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
message SendMessageRequest {
|
message SendMessageRequest {
|
||||||
string user_id = 1;
|
string user_id = 1;
|
||||||
string message = 2;
|
string message = 2;
|
||||||
|
string user_name = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message SendMessageResponse {
|
message SendMessageResponse {
|
||||||
bool success = 1;
|
bool success = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message GetMessagesRequest {
|
||||||
|
string user_id = 1;
|
||||||
|
string user_name = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message GetMessagesResponse {
|
||||||
|
repeated Message messages = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message Message {
|
||||||
|
string from_user_id = 1;
|
||||||
|
string from_user_name = 2;
|
||||||
|
google.protobuf.Timestamp created_at = 3;
|
||||||
|
string body = 4;
|
||||||
|
string title = 5;
|
||||||
}
|
}
|
Reference in New Issue
Block a user