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 {
|
2024-04-28 07:11:39 +00:00
|
|
|
rpc GetAllPromoActivations(Time) returns (stream PromoActivationResp);
|
2024-04-25 10:57:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message PromoActivationResp {
|
2024-04-25 17:44:32 +00:00
|
|
|
message UserTime {
|
|
|
|
string UserID = 1;
|
|
|
|
int64 Time = 2;
|
|
|
|
}
|
2024-04-28 07:11:39 +00:00
|
|
|
string ID = 1;
|
|
|
|
repeated UserTime Users = 2;
|
2024-04-25 10:57:26 +00:00
|
|
|
}
|