This commit is contained in:
netscrawler
2024-06-30 21:25:12 +03:00
parent 4349f03417
commit 36e5b935e6
7 changed files with 430 additions and 2 deletions
+25
View File
@@ -0,0 +1,25 @@
syntax = "proto3";
package cnvrt;
option go_package = "netscrawler.cnvrt.v1;cnvrtv1";
message ConvertRequest {
uint32 amount = 1;
string target_currency = 2;
}
message ConvertResponse {
uint32 base_amount = 1;
uint32 converted_amount = 2;
string converted_currency = 3;
float rate = 4;
}
service Converter {
rpc Convert(ConvertRequest) returns (ConvertResponse) {
}
}