protos/proto/changeAPI/changeAPI.proto
netscrawler 36e5b935e6 v0.0.1
2024-06-30 21:25:12 +03:00

26 lines
392 B
Protocol Buffer

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) {
}
}