ListBookings 方法

這個方法會傳回使用者日後在任何商家的預訂。這個方法不應傳回過去的預訂或已取消的預訂。

要求

ListBookingsRequest

傳回值

ListBookingsResponse

// Request to list all bookings for a user
message ListBookingsRequest {
  // ID of the user (required)
  string user_id = 1;
}

// Response for the ListBookings RPC with all bookings for the requested user.
message ListBookingsResponse {
  // All bookings of the user (required)
  repeated Booking bookings = 1;
}