syntax = "proto3";
|
|
import "datarequest.proto";
|
import "dataresult.proto";
|
import "sqlwhere.proto";
|
import "file.proto";
|
|
import "customTypes.proto";
|
|
package HotelPms.Data.UseInfo;
|
|
message Sale {
|
int32 ID = 1;
|
int32 DetailID = 2;
|
customTypes.Date UseDate = 3;
|
int32 SaleID = 4;
|
int32 ReceiptID = 5;
|
string ItemID = 6;
|
string ItemName = 7;
|
customTypes.DecimalValue Price = 8;
|
int32 Amount = 9;
|
customTypes.DecimalValue Summary = 10;
|
int32 ServiceIOType = 11;
|
customTypes.DecimalValue ServiceSummary = 12;
|
customTypes.DecimalValue ServiceRate = 13;
|
int32 TaxType = 14;
|
int32 TaxIOType = 15;
|
customTypes.DecimalValue TaxSummary = 16;
|
customTypes.DecimalValue TaxRate = 17;
|
int32 BathTaxIOType = 18;
|
int32 BathTaxType = 19;
|
customTypes.DecimalValue BathTaxUnitPrice = 20;
|
customTypes.DecimalValue BathTaxSummary = 21;
|
int32 AccTaxIOType = 22;
|
customTypes.DecimalValue AccTaxSummary = 23;
|
customTypes.DecimalValue TotalSummary = 24;
|
customTypes.DecimalValue DiscountRate = 25;
|
customTypes.DecimalValue DiscountSummary = 26;
|
int32 DiscountID = 27;
|
bool Pack = 28;
|
bool PackChild = 29;
|
int32 PackSaleID = 30;
|
int32 PersonType = 31;
|
int32 PersonCount = 32;
|
int32 InFemale = 33;
|
int32 UseType = 34;
|
int32 BaseAmount = 35;
|
bool PersonRef = 36;
|
string ReceiptItemName = 37;
|
int32 ReceiptPrtType = 38;
|
int32 ReceiptPage = 39;
|
int32 SrcType = 40;
|
string FixturesID = 41;
|
int32 ItemKind = 42;
|
|
}
|
|
message SaleTable {
|
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 Sale Rows = 8;
|
}
|
|
service SaleCore {
|
rpc GetData (HotelPms.Data.DataRequest) returns (SaleTable);
|
rpc SetData (SaleTable) returns (HotelPms.Data.DataResult);
|
rpc Add (Sale) returns (HotelPms.Data.DataResult);
|
rpc Update (Sale) returns (HotelPms.Data.DataResult);
|
rpc Remove (HotelPms.Data.SqlWhere) returns (HotelPms.Data.DataResult);
|
rpc GetDataStream (stream HotelPms.Data.DataRequest) returns (stream SaleTable);
|
rpc SetDataStream (stream SaleTable) returns (stream HotelPms.Data.DataResult);
|
rpc AddStream (stream Sale) returns (stream HotelPms.Data.DataResult);
|
rpc UpdateStream (stream Sale) 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);
|
}
|