1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- syntax = "proto3";
- option go_package = "git.mokkon.com/sainw/fho_proto";
- option java_multiple_files = true;
- package fho;
- import "google/protobuf/timestamp.proto";
- service ProductService {
- rpc GetProducts(ProductRequest) returns (ProductReply) {}
- rpc GetPriceSchedules(PriceScheduleRequest) returns (PriceScheduleReply) {}
- }
- message Product {
- string id = 1;
- string name = 2;
- string color = 3;
- }
- message ProductRequest { string token = 1; }
- message ProductReply {
- repeated Product products = 1;
- }
- message ProductPrice {
- string id = 1;
- int32 price =2;
- }
- message PriceSchedule {
- enum ScheduleType {
- SCHEDULE_TYPE_UNSPECIFIED = 0;
- IMMEDIATE = 1;
- AFTER_SHIFT_CHANGE = 2;
- }
- string id = 1;
- ScheduleType schedule_type = 2;
- google.protobuf.Timestamp schedule_time = 3;
- repeated ProductPrice product_prices =4;
- }
- message PriceScheduleRequest { string token = 1; }
- message PriceScheduleReply {
- repeated PriceSchedule price_schedules = 1;
- }
|