ホテル管理システム
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
syntax = "proto3";
 
import "datarequest.proto";
import "dataresult.proto";
import "sqlwhere.proto";
import "file.proto";
import "google/protobuf/timestamp.proto";
import "outputitem.proto";
 
package HotelPms.Data.Master;
 
message Output {
  string MachineName = 1;
  string UserName = 2;
  int32 ReportID = 3;
  int32 ID = 4;
  string Name = 5;
  int32 FixedID = 6;
  string Sort = 7;
  string Tag = 8;
  google.protobuf.Timestamp UpdateDate = 9;
  int32 UpdateLoginID = 10;
  string UpdatePcName = 11;
  int32 UpdateID = 12;
  repeated OutputItem Items = 13;
  map<string, string> FieldMap = 14;
  map<int32, string> SelectList = 15;
}
 
message OutputTable {
  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 Output Rows = 8;
}
 
service OutputCore {
  rpc GetData (HotelPms.Data.DataRequest) returns (OutputTable);
  rpc SetData (OutputTable) returns (HotelPms.Data.DataResult);
  rpc Add (Output) returns (HotelPms.Data.DataResult);
  rpc Update (Output) returns (HotelPms.Data.DataResult);
  rpc Remove (HotelPms.Data.SqlWhere) returns (HotelPms.Data.DataResult);
  rpc GetDataStream (stream HotelPms.Data.DataRequest) returns (stream OutputTable);
  rpc SetDataStream (stream OutputTable) returns (stream HotelPms.Data.DataResult);
  rpc AddStream (stream Output) returns (stream HotelPms.Data.DataResult);
  rpc UpdateStream (stream Output) 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);
}