syntax = "proto3";
|
|
import "datarequest.proto";
|
import "dataresult.proto";
|
import "sqlwhere.proto";
|
import "file.proto";
|
|
import "customTypes.proto";
|
|
package HotelPms.Data.Master;
|
|
message Hotel {
|
int32 ID = 1;
|
string Name = 2;
|
customTypes.Date HotelDate = 3;
|
int32 RoomCount = 4;
|
string ZipCode = 5;
|
string Prefecture = 6;
|
string Address2 = 7;
|
string Address3 = 8;
|
string Address4 = 9;
|
string Tel = 10;
|
string Fax = 11;
|
int32 StartDate = 12;
|
customTypes.Date CreateDate = 13;
|
customTypes.Date SumDate = 14;
|
int32 CloseDate = 15;
|
|
}
|
|
message HotelTable {
|
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 Hotel Rows = 8;
|
}
|
|
service HotelCore {
|
rpc GetData (HotelPms.Data.DataRequest) returns (HotelTable);
|
rpc SetData (HotelTable) returns (HotelPms.Data.DataResult);
|
rpc Add (Hotel) returns (HotelPms.Data.DataResult);
|
rpc Update (Hotel) returns (HotelPms.Data.DataResult);
|
rpc Remove (HotelPms.Data.SqlWhere) returns (HotelPms.Data.DataResult);
|
rpc GetDataStream (stream HotelPms.Data.DataRequest) returns (stream HotelTable);
|
rpc SetDataStream (stream HotelTable) returns (stream HotelPms.Data.DataResult);
|
rpc AddStream (stream Hotel) returns (stream HotelPms.Data.DataResult);
|
rpc UpdateStream (stream Hotel) 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);
|
}
|