syntax = "proto3";
|
|
import "datarequest.proto";
|
import "dataresult.proto";
|
import "sqlwhere.proto";
|
import "file.proto";
|
import "google/protobuf/timestamp.proto";
|
import "outputitem.proto";
|
|
package HotelPms.Data.Master;
|
|
message Output {
|
string MachineName = 1;
|
string UserName = 2;
|
int32 ReportID = 3;
|
int32 ID = 4;
|
string Name = 5;
|
int32 FixedID = 6;
|
string Sort = 7;
|
string Tag = 8;
|
google.protobuf.Timestamp UpdateDate = 9;
|
int32 UpdateLoginID = 10;
|
string UpdatePcName = 11;
|
int32 UpdateID = 12;
|
repeated OutputItem Items = 13;
|
map<string, string> FieldMap = 14;
|
map<int32, string> SelectList = 15;
|
}
|
|
message OutputTable {
|
int32 ErrNo = 1;
|
string ErrData = 2;
|
string Name = 3;
|
int32 UpdateType = 4; //0.なし 1.Insert 2.Update
|
string Tag = 5;
|
bytes BeforeUpdate = 6;
|
bytes AfterUpdate = 7;
|
repeated Output Rows = 8;
|
}
|
|
service OutputCore {
|
rpc GetData (HotelPms.Data.DataRequest) returns (OutputTable);
|
rpc SetData (OutputTable) returns (HotelPms.Data.DataResult);
|
rpc Add (Output) returns (HotelPms.Data.DataResult);
|
rpc Update (Output) returns (HotelPms.Data.DataResult);
|
rpc Remove (HotelPms.Data.SqlWhere) returns (HotelPms.Data.DataResult);
|
rpc GetDataStream (stream HotelPms.Data.DataRequest) returns (stream OutputTable);
|
rpc SetDataStream (stream OutputTable) returns (stream HotelPms.Data.DataResult);
|
rpc AddStream (stream Output) returns (stream HotelPms.Data.DataResult);
|
rpc UpdateStream (stream Output) returns (stream HotelPms.Data.DataResult);
|
rpc RemoveStream (stream HotelPms.Data.SqlWhere) returns (stream HotelPms.Data.DataResult);
|
rpc OutputStream (HotelPms.Data.DataRequest) returns (stream HotelPms.Data.FileGrpcData);
|
}
|