codeword/docs/proto/promo.proto

24 lines
381 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-28 07:11:39 +00:00
rpc GetAllPromoActivations(Time) returns (stream PromoActivationResp);
}
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;
}