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/hotel.proto | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 54 insertions(+), 0 deletions(-)
diff --git a/Protos/hotel.proto b/Protos/hotel.proto
new file mode 100644
index 0000000..a90f52f
--- /dev/null
+++ b/Protos/hotel.proto
@@ -0,0 +1,54 @@
+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);
+}
\ No newline at end of file
--
Gitblit v1.10.0