generated from rmcguire/go-server-with-otel
rename and frame out proto
This commit is contained in:
31
proto/class/v1alpha1/class.proto
Normal file
31
proto/class/v1alpha1/class.proto
Normal file
@ -0,0 +1,31 @@
|
||||
syntax = "proto3";
|
||||
package class.v1alpha1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
option go_package = "gitea.libretechconsulting.com/rmcguire/class-server/api/v1alpha1/class";
|
||||
|
||||
enum LogoType {
|
||||
LOGO_TYPE_UNSPECIFIED = 0;
|
||||
LOGO_TYPE_RANDOM = 1;
|
||||
LOGO_TYPE_TECH = 2;
|
||||
}
|
||||
|
||||
message GetClassLogoRequest {
|
||||
LogoType logo_type = 1;
|
||||
// Default is no padding
|
||||
optional uint32 logo_padding = 2;
|
||||
optional bool include_string = 3;
|
||||
}
|
||||
|
||||
message GetClassLogoResponse {
|
||||
bytes logo_bytes = 1;
|
||||
string logo_string = 2;
|
||||
}
|
||||
|
||||
service ClassService {
|
||||
rpc GetClassLogo(GetClassLogoRequest) returns (GetClassLogoResponse) {
|
||||
option (google.api.http) = {get: "/v1alpha1/class/logo"}; // grpc-gateway endpoint
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user