AobaService

use transactions
Added gRPC
This commit is contained in:
2025-04-30 23:26:24 -04:00
parent 4f976fb7af
commit 2a6ef8ca20
10 changed files with 128 additions and 59 deletions

View File

@@ -0,0 +1,30 @@
syntax = "proto3";
service AobaRPC {
rpc GetMedia (Id) returns (MediaModel);
}
message Id{
string idString = 1;
}
message MediaModel {
int32 version = 1;
Id id = 2;
string mediaId = 3;
string fileName = 4;
MediaType mediaType = 5;
string ext = 6;
int32 viewCount = 7;
Id owner = 8;
}
enum MediaType{
Image = 0;
Audio = 1;
Video = 2;
Text = 3;
Code = 4;
Raw = 5;
}