rename and frame out proto
All checks were successful
Build and Publish / release (push) Has been skipped
Build and Publish / check-chart (push) Successful in 19s
Build and Publish / helm-release (push) Has been skipped

This commit is contained in:
2025-07-08 14:32:56 -04:00
parent 686cdb80b5
commit bfcebb63c5
12 changed files with 45 additions and 14 deletions

View 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
}
}