Merge branch 'master' of gitlab.fusenpack.com:backend/proto

This commit is contained in:
laodaming@fusen.cn 2023-12-05 16:57:15 +08:00
commit 6070cd8097

View File

@ -18,7 +18,30 @@ service resource {
get: "/api/resource/info"
};
}
//
rpc GetResourceList(GetResourceListReq) returns (basic.Response) {
option (google.api.http) = {
get: "/api/resource/list"
};
}
}
/* 获取资源列表 */
message GetResourceListReq{
optional string resource_id = 1;
optional int64 guest_id =2;
optional int64 user_id =3;
optional string resource_type = 4;
optional string resource_url = 5;
optional string version = 6;
optional int64 api_type = 7;
optional string bucket_name = 8;
optional string source = 9;
optional int64 current_page =100;
optional int64 per_page =200;
}
/* 获取资源列表 */
/* 获取资源详情 */
message GetResourceInfoReq{
@ -32,18 +55,4 @@ message GetResourceInfoReq{
optional string bucket_name = 8;
optional string source = 9;
}
message GetResourceInfoRes {
string resource_id = 1;
int64 guest_id =2;
int64 user_id =3;
string resource_type = 4;
string resource_url = 5;
string version = 6;
int64 api_type = 7;
string bucket_name = 8;
string source = 9;
string uploaded_at = 10;
// google.protobuf.Struct metadata = 11;
google.protobuf.Any metadata =11;
}
/* 获取资源详情 */