diff --git a/service/resource.proto b/service/resource.proto index 3fae88e..8624b69 100644 --- a/service/resource.proto +++ b/service/resource.proto @@ -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; -} /* 获取资源详情 */ \ No newline at end of file