mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-07 04:09:15 +02:00
feat:#36 added protobuf for golang microservices
This commit is contained in:
41
services/protobuf/modules.proto
Normal file
41
services/protobuf/modules.proto
Normal file
@@ -0,0 +1,41 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "htwkalender/common/modules";
|
||||
|
||||
service ModuleService {
|
||||
rpc GetModule(GetModuleRequest) returns (GetModuleResponse) {}
|
||||
}
|
||||
|
||||
message Event {
|
||||
string uuid = 1;
|
||||
string day = 2;
|
||||
string week = 3;
|
||||
string start = 4;
|
||||
string end = 5;
|
||||
string name = 6;
|
||||
string eventType = 7;
|
||||
string compulsory = 8;
|
||||
string prof = 9;
|
||||
string rooms = 10;
|
||||
string notes = 11;
|
||||
string bookedAt = 12;
|
||||
string course = 13;
|
||||
string semester = 14;
|
||||
}
|
||||
|
||||
message Module {
|
||||
string uuid = 1;
|
||||
string name = 2;
|
||||
string prof = 3;
|
||||
string course = 4;
|
||||
string semester = 5;
|
||||
repeated Event events = 6;
|
||||
}
|
||||
|
||||
message GetModuleRequest {
|
||||
string uuid = 1;
|
||||
}
|
||||
|
||||
message GetModuleResponse {
|
||||
repeated Module module = 1;
|
||||
}
|
Reference in New Issue
Block a user