ホテル管理システム
ogi
yesterday 1a1c8e71fcd14858f595029f089b2d4a00202b32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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);
}