codeword/docs/proto/promo.proto
2024-04-26 10:24:48 +03:00

27 lines
430 B
Protocol Buffer

syntax = "proto3";
package codeword;
option go_package = "./codeword_rpc";
message Time {
int64 from = 1;
int64 to = 2;
}
service PromoCodeService {
rpc GetAllPromoActivations(Time) returns (PromoActivationResp);
}
message PromoActivationResp {
message UserTime {
string UserID = 1;
int64 Time = 2;
}
message Activations {
repeated UserTime values = 1;
}
map<string, Activations> response = 1;
}