From 1a1c8e71fcd14858f595029f089b2d4a00202b32 Mon Sep 17 00:00:00 2001
From: ogi <Administrator@S-OGI-PC>
Date: Fri, 05 Dec 2025 09:24:16 +0900
Subject: [PATCH] プロジェクトファイルを追加。

---
 Protos/item.proto |   87 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 87 insertions(+), 0 deletions(-)

diff --git a/Protos/item.proto b/Protos/item.proto
new file mode 100644
index 0000000..949a029
--- /dev/null
+++ b/Protos/item.proto
@@ -0,0 +1,87 @@
+syntax = "proto3";
+
+import "datarequest.proto";
+import "dataresult.proto";
+import "sqlwhere.proto";
+import "file.proto";
+import "google/protobuf/timestamp.proto";
+import "customTypes.proto";
+
+package HotelPms.Data.Master;
+
+message Item {
+  string ID = 1;
+  string Name = 2;
+  string EnName = 3;
+  string Name2 = 4;
+  string ReceiptName = 5;
+  int32 RoomTypeID = 6;
+  int32 PersonCount = 7;
+  customTypes.DecimalValue Price = 8;
+  customTypes.DecimalValue DiscountRate = 9;
+  customTypes.DecimalValue DiscountSummary = 10;
+  int32 DiscountID = 11;
+  int32 ServiceIOType = 12;
+  customTypes.DecimalValue ServiceRate = 13;
+  int32 TaxType = 14;
+  int32 TaxIOType = 15;
+  int32 BathTaxIOType = 16;
+  int32 AccTaxIOType = 17;
+  int32 SaleSectionID = 18;
+  int32 SumSectionID = 19;
+  int32 Kind = 20;
+  bool NextDay = 21;
+  int32 AgentID = 22;
+  int32 AgentBranchID = 23;
+  bool PointFlg = 24;
+  bool PointInTax = 25;
+  customTypes.DecimalValue PointRate = 26;
+  int32 PointPrice = 27;
+  int32 PointSumType = 28;
+  int32 Point = 29;
+  bool DayUse = 30;
+  int32 ReceiptPrtType = 31;
+  bool LongStayFlg = 32;
+  int32 RentalType = 33;
+  int32 TraderID = 34;
+  string TraderMemo = 35;
+  bool PackFlg = 36;
+  int32 SortID = 37;
+  int32 Fraction = 38;
+  bool InRoomSales = 39;
+  int32 MealType = 40;
+  int32 UseType = 41;
+  int32 PersonType = 42;
+  bool Parking = 43;
+  bool HallFee = 44;
+  google.protobuf.Timestamp UpdateDate = 45;
+  int32 UpdateLoginID = 46;
+  string UpdatePcName = 47;
+  int32 UpdateID = 48;
+
+}
+
+message ItemTable {
+  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 Item Rows = 8;
+}
+
+service ItemCore {
+  rpc GetData (HotelPms.Data.DataRequest) returns (ItemTable);
+  rpc SetData (ItemTable) returns (HotelPms.Data.DataResult);
+  rpc Add (Item) returns (HotelPms.Data.DataResult);
+  rpc Update (Item) returns (HotelPms.Data.DataResult);
+  rpc Remove (HotelPms.Data.SqlWhere) returns (HotelPms.Data.DataResult);
+  rpc GetDataStream (stream HotelPms.Data.DataRequest) returns (stream ItemTable);
+  rpc SetDataStream (stream ItemTable) returns (stream HotelPms.Data.DataResult);
+  rpc AddStream (stream Item) returns (stream HotelPms.Data.DataResult);
+  rpc UpdateStream (stream Item) 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);
+}
\ No newline at end of file

--
Gitblit v1.10.0