proto/service/basic.proto

67 lines
1.7 KiB
Protocol Buffer
Raw Permalink Normal View History

2023-11-27 09:36:02 +00:00
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;
}
2023-12-06 10:34:22 +00:00
message ResourceInfo{
2023-12-07 07:49:16 +00:00
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;
2024-01-30 04:09:49 +00:00
bytes metadata = 11;
string trace_id = 12;
2023-12-06 10:34:22 +00:00
}
message Meta {
2024-01-31 07:12:25 +00:00
int64 total_count =1; // 总数
int64 page_count=2; // 总页数
int64 current_page=3; // 当前页码
int64 per_page=4; // 每页数量
}
// 用户信息
message FsUser {
2024-01-31 07:52:52 +00:00
int64 user_id = 7;//用户ID
2024-01-31 07:12:25 +00:00
string email = 1; // 邮箱
string first_name = 2; // 名
string last_name = 3; // 姓
string username = 4; // 用户名称
string company = 5; // 公司
string mobile = 6; // 电话号码
2024-03-04 09:49:22 +00:00
}
message LdapUser {
int64 user_id = 1; //用户id
string user_dn = 2; //用户dn
string user_name = 3; //用户名
string email = 4; //邮箱
string mobile = 5; //手机号
string avatar = 6; //头像地址
int64 employee_type = 7; //雇佣类型 1正式 2实习 3外包
int64 gender = 8; //性别 1男 2女 3未知
string birthday = 9; //生日
repeated string belong_organizations = 10 ;//属于哪些部门
repeated string manage_organizations = 11 ;//管理哪些部门
int64 status = 12 ; //状态 1正常0离职
int64 group_id = 13; //权限分组id
2024-01-23 09:05:17 +00:00
}