commit code

This commit is contained in:
2025-05-31 21:44:34 +08:00
parent bfca5d7d0b
commit ca373ad91f
19 changed files with 496 additions and 126 deletions

View File

@ -31,6 +31,9 @@ service Category {
// 根据系统ID获取分类
rpc GetSystemCategories(GetSystemCategoriesRequest) returns (GetSystemCategoriesResponse);
// 获取某一个类别的完整类别(从根类别到当前类别的所有类别)
rpc GetFullCategories(GetCategoryRequest) returns (GetFullCategoriesResponse);
}
// 健康检查请求
@ -88,6 +91,11 @@ message GetCategoryRequest {
string id = 1;
}
// 获取全分类名称的响应
message GetFullCategoriesResponse {
string full_category_name = 1;
}
// 分类信息响应
message CategoryInfoResponse {
CategoryInfo category = 1;

View File

@ -21,7 +21,8 @@ message UploadRequest {
string filename = 1; // 文件名(建议客户端传原始名,服务端会生成唯一名)
string content_type = 2; // 文件类型(如 image/jpeg
bytes content = 3; // 文件二进制内容base64 编码由客户端完成)
string folder = 4; // 可选,文件夹或分类路径,如 "avatars"、"wallpapers"
string folder = 4; // 可选,文件夹或分类路径,支持多级,如 "avatars"、"wallpapers/animals"
string bucket = 5; // bucket name
}
// 上传响应