mirror of
https://github.com/netscrawler/protoss.git
synced 2025-05-06 07:59:54 +00:00
26 lines
392 B
Protocol Buffer
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) {
|
|
|
|
}
|
|
}
|
|
|