customer/api/proto/codeword/promo.proto

24 lines
381 B
Protocol Buffer
Raw Normal View History

2024-04-25 12:23:37 +00:00
syntax = "proto3";
package codeword;
option go_package = "./codeword_rpc";
message Time {
int64 from = 1;
int64 to = 2;
}
service PromoCodeService {
2024-04-28 07:19:32 +00:00
rpc GetAllPromoActivations(Time) returns (stream PromoActivationResp);
2024-04-25 12:23:37 +00:00
}
message PromoActivationResp {
2024-04-25 17:43:02 +00:00
message UserTime {
string UserID = 1;
int64 Time = 2;
}
2024-04-28 07:19:32 +00:00
string ID = 1;
repeated UserTime Users = 2;
2024-04-25 12:23:37 +00:00
}