codeword/api/proto/promo.proto
skeris ba92325e08
Some checks failed
Deploy / CreateImage (push) Successful in 3m22s
Deploy / DeployService (push) Successful in 29s
Sync OpenAPI Spec / sync-spec (push) Has been cancelled
chore: rename api dir\nci: fix base image in containerfile
2025-09-21 15:13:55 +03:00

24 lines
381 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 (stream PromoActivationResp);
}
message PromoActivationResp {
message UserTime {
string UserID = 1;
int64 Time = 2;
}
string ID = 1;
repeated UserTime Users = 2;
}