You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
1.9 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

syntax = "proto3";
//在web层重新生成pb.go的方法
/*
protoc -I Business/BaseGlobal/BaseGlobalProto/ Business/BaseGlobal/BaseGlobalProto/BaseGlobal.proto --go_out=plugins=grpc:Business/BaseGlobal/BaseGlobalProto
*/
package BaseGlobalProto;
option go_package = ".;BaseGlobalProto";
option java_multiple_files = true;
option java_package = "com.dsideal.dsmin.base";
option java_outer_classname = "BaseGlobal";
option objc_class_prefix = "";
service BaseGlobalManage {
//获取单条
rpc GetBaseGlobal (ModelArg) returns (Reply) {}
//增加
rpc AddBaseGlobal (ModelArg) returns (Reply) {}
//批量删除
rpc DeleteBaseGlobal (DeleteIdsArg) returns (Reply) {}
//修改
rpc UpdateBaseGlobal (ModelArg) returns (Reply) {}
//查询(分页)
rpc PageBaseGlobal (QueryArg) returns (Reply) {}
//根据全局变量编码获取全局变量值
rpc GetBaseGlobalByCode (ModelArg) returns (Reply) {}
}
message ModelArg {
//全局变量ID
string GlobalId = 1;
//全局变量分类
int32 GlobalTypeId = 2;
//全局变量代码
string GlobalCode = 3;
//全局变量值
string GlobalValue = 4;
//全局变量备注
string GlobalRemarks = 5;
//排序号
int32 SortId = 6;
//是否启用 0未启用 1启用
int32 BUse = 7;
//需要强制更新的列
repeated string ForceUpdateFields = 8;
//操作人
string ActionPersonId = 9;
//操作IP
string ActionIpAddress = 10;
}
// 查询参数
message QueryArg{
int32 Page = 1;
int32 Limit = 2;
int32 GlobalTypeId = 3;
//操作人
string ActionPersonId = 4;
//操作IP
string ActionIpAddress = 5;
}
// 查询请求响应
message Reply{
bool Success = 1;
string Message = 2;
int32 Count = 3;
string List = 4;
}
//删除参数
message DeleteIdsArg {
//一个或多个ID
repeated string Ids = 1;
//操作人
string ActionPersonId = 2;
//操作IP
string ActionIpAddress = 3;
}