2023-11-27 09:36:02 +00:00
|
|
|
|
syntax = "proto3"; //版本声明,使用v3版本
|
|
|
|
|
|
|
|
|
|
package basic;
|
|
|
|
|
|
|
|
|
|
option go_package = ".;service";
|
|
|
|
|
import "google/protobuf/any.proto";
|
|
|
|
|
import "google/protobuf/struct.proto";
|
|
|
|
|
|
|
|
|
|
// 定义请求消息类型.
|
|
|
|
|
message Request {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// golang使用一个map返回, 使用这个response
|
|
|
|
|
message Response {
|
|
|
|
|
google.protobuf.Value data=1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2023-12-06 10:34:22 +00:00
|
|
|
|
message ResourceInfo{
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message Meta {
|
|
|
|
|
int64 total_count =1;
|
|
|
|
|
int64 page_count=2;
|
|
|
|
|
int64 current_page=3;
|
|
|
|
|
int64 per_page=4;
|
|
|
|
|
}
|