cml04-printer-robot/pkg/api/api.proto

33 lines
742 B
Protocol Buffer
Raw Normal View History

2024-08-19 02:23:44 +02:00
syntax = "proto3";
package api;
option go_package = "git.espin.casa/albert/cml04-printer-robot/pkg/api;api";
service RobotService {
rpc PrintPackage (PrintPackageReq) returns (PrintPackageRes);
}
message PackageData{
string producto = 1;
string colada = 2;
string matnr = 3;
int32 barras = 4;
double longitud = 5;
string fecha = 6;
string norma_poducto = 7;
string norma_calidad = 8;
string norma_tolerancia = 9;
int64 orden_produccion = 10;
int64 orden_cliente = 11;
string nro_matricula = 100;
}
message PrintPackageReq{
string sender = 1;
PackageData package_data = 2;
string time_stamp = 100;
}
message PrintPackageRes{
string msg = 1;
string time_stamp = 100;
}