jmash.file.file_rpc.proto Maven / Gradle / Ivy
syntax = "proto3";
option go_package="jmash/file;file";
option java_multiple_files = true;
option java_package = "jmash.file";
option java_outer_classname = "FileProto";
import "google/api/annotations.proto";
import "google/protobuf/wrappers.proto";
import "google/protobuf/empty.proto";
import "jmash/protobuf/basic.proto";
import "jmash/protobuf/file_basic.proto";
import "jmash/file/protobuf/file_message.proto";
package jmash.file;
//File Service
service File {
// 枚举值列表
rpc findEnumList(google.protobuf.StringValue) returns (jmash.protobuf.EnumValueList){}
// 枚举值Map
rpc findEnumMap(google.protobuf.StringValue) returns (jmash.protobuf.CustomEnumValueMap){}
// 查询翻页信息
rpc findJmashFilePage(JmashFileReq) returns (JmashFilePage) {
option (google.api.http) = {
get: "/v1/file/jmashfile/page"
};
}
// 查询列表信息
rpc findJmashFileList(JmashFileReq) returns (JmashFileList) {
option (google.api.http) = {
get: "/v1/file/jmashfile/list"
};
}
// 查询
rpc findJmashFileById(JmashFileKey) returns (JmashFileModel){
option (google.api.http) = {
get: "/v1/file/jmashfile/id"
};
}
// 删除
rpc deleteJmashFile(JmashFileKey) returns(JmashFileModel){
option (google.api.http) = {
delete: "/v1/file/jmashfile/id"
};
}
// 批量删除
rpc batchDeleteJmashFile(JmashFileKeyList) returns(google.protobuf.Int32Value){
option (google.api.http) = {
put: "/v1/file/jmashfile/batch"
body: "*"
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy