codeword/docs/proto/promo.proto

27 lines
430 B
Protocol Buffer
Raw Normal View History

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