github.com/micro/go-micro/examples@v0.0.0-20210105173217-bf4ab679e18b/booking/srv/rate/proto/rate.proto (about)

     1  syntax = "proto3";
     2  
     3  package rate;
     4  
     5  service Rate {
     6    // GetRates returns rate codes for hotels for a given date range
     7    rpc GetRates(Request) returns (Result);
     8  }
     9  
    10  message Request {
    11    repeated string hotelIds = 1;
    12    string inDate = 2;
    13    string outDate = 3;
    14  }
    15  
    16  message Result {
    17    repeated RatePlan ratePlans = 1;
    18  }
    19  
    20  message RatePlan {
    21    string hotelId = 1;
    22    string code = 2;
    23    string inDate = 3;
    24    string outDate = 4;
    25    RoomType roomType = 5;
    26  }
    27  
    28  message RoomType {
    29    double bookableRate = 1;
    30    double totalRate = 2;
    31    double totalRateInclusive = 3;
    32    string code = 4;
    33    string currency = 5;
    34    string roomDescription = 6;
    35  }