2024-04-25 12:23:37 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package codeword;
|
|
|
|
|
|
|
|
option go_package = "./codeword_rpc";
|
|
|
|
|
2024-04-25 17:25:19 +00:00
|
|
|
import "google/protobuf/empty.proto";
|
|
|
|
|
2024-04-25 12:23:37 +00:00
|
|
|
message Time {
|
|
|
|
int64 from = 1;
|
|
|
|
int64 to = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
service PromoCodeService {
|
2024-04-25 17:25:19 +00:00
|
|
|
rpc GetAllPromoActivations(google.protobuf.Empty) returns (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-25 12:23:37 +00:00
|
|
|
message Activations {
|
2024-04-25 17:43:02 +00:00
|
|
|
repeated UserTime values = 1;
|
2024-04-25 12:23:37 +00:00
|
|
|
}
|
|
|
|
map<string, Activations> response = 1;
|
|
|
|
}
|