2024-04-25 10:57:26 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package codeword;
|
|
|
|
|
2024-04-25 11:23:22 +00:00
|
|
|
option go_package = "./codeword_rpc";
|
|
|
|
|
2024-04-25 10:57:26 +00:00
|
|
|
message Time {
|
|
|
|
int64 from = 1;
|
|
|
|
int64 to = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
service PromoCodeService {
|
|
|
|
rpc GetAllPromoActivations(Time) returns (PromoActivationResp);
|
|
|
|
}
|
|
|
|
|
|
|
|
message PromoActivationResp {
|
2024-04-25 11:23:22 +00:00
|
|
|
message Activations {
|
|
|
|
repeated string values = 1;
|
|
|
|
}
|
|
|
|
map<string, Activations> response = 1;
|
2024-04-25 10:57:26 +00:00
|
|
|
}
|