jmash.file.protobuf.file_message.proto Maven / Gradle / Ivy
syntax = "proto3";
option go_package = "jmash/file;file";
option java_multiple_files = true;
option java_package = "jmash.file.protobuf";
option java_outer_classname = "JmashFileProto";
import "google/protobuf/timestamp.proto";
import "google/protobuf/any.proto";
import "google/protobuf/field_mask.proto";
import "jmash/protobuf/basic.proto";
package jmash.file;
//查询
message JmashFileReq {
//租户.
string tenant = 1;
//当前页码
int32 cur_page = 2;
//页尺寸
int32 page_size = 3;
//排序名称
string order_name = 4;
//是否升序排序
bool order_asc = 5;
}
// 实体
message JmashFileModel {
//文件ID
string file_id = 1;
//文件存储路径
string file_src = 2;
//文件内容类型
string content_type = 3;
//文件后缀
string file_ext = 4;
//文件大小
int64 file_size = 5;
//文件Hash SM3值
bytes hash_sm3 = 6;
//文件Hash SHA256值
bytes hash_sha256 = 7;
//图片/视频宽度
int32 file_width = 8;
//图片/视频高度
int32 file_height = 9;
//音频/视频时长
int32 file_time = 10;
//图片/视频/音频拍摄位置
string file_location = 11;
//经度
string geo_longitude = 12;
//纬度
string geo_latitude = 13;
//精度
int32 geo_accuracy = 14;
//海拔高度
int64 geo_altitude = 15;
//海拔高度精度
int32 geo_altitude_accracy = 16;
//创建时间
google.protobuf.Timestamp create_date = 17;
}
//列表
message JmashFileList {
//当前页内容
repeated JmashFileModel results = 1;
}
// 分页
message JmashFilePage {
//当前页内容
repeated JmashFileModel results = 1;
//当前页码
int32 cur_page = 2;
//页尺寸
int32 page_size = 3;
//总记录数
int32 total_size = 4;
//本页小计
JmashFileModelTotal sub_total_dto = 5;
//合计
JmashFileModelTotal total_dto = 6;
}
// 合计
message JmashFileModelTotal {
//总记录数
int32 total_size = 1;
}
//List
message JmashFileKey {
//租户.
string tenant = 1;
string file_id = 2;
}
//List
message JmashFileKeyList {
//租户.
string tenant = 1;
repeated string file_id = 2;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy