proto/service/basic.proto
menghaiwen@fusen.cn 577e7801ac 调整
2024-01-31 15:52:52 +08:00

51 lines
1.1 KiB
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

syntax = "proto3"; //版本声明使用v3版本
package basic;
option go_package = ".;service";
import "google/protobuf/struct.proto";
// 定义请求消息类型.
message Request {
}
// golang使用一个map返回, 使用这个response
message Response {
google.protobuf.Value data=1;
}
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;
bytes metadata = 11;
string trace_id = 12;
}
message Meta {
int64 total_count =1; // 总数
int64 page_count=2; // 总页数
int64 current_page=3; // 当前页码
int64 per_page=4; // 每页数量
}
// 用户信息
message FsUser {
int64 user_id = 7;//用户ID
string email = 1; // 邮箱
string first_name = 2; // 名
string last_name = 3; // 姓
string username = 4; // 用户名称
string company = 5; // 公司
string mobile = 6; // 电话号码
}