syntax = "proto3"; //在web层重新生成pb.go的方法 /* protoc -I Business/SysDict/SysDictProto/ Business/SysDict/SysDictProto/SysDict.proto --go_out=plugins=grpc:Business/SysDict/SysDictProto */ package SysDictProto; option go_package = ".;SysDictProto"; option java_multiple_files = true; option java_package = "com.dsideal.dsmin.base"; option java_outer_classname = "SysDict"; option objc_class_prefix = ""; service SysDictManage { //获取单条 rpc GetSysDict (ModelArg) returns (Reply) {} //增加 rpc AddSysDict (ModelArg) returns (Reply) {} //批量删除 rpc DeleteSysDict (DeleteIdsArg) returns (Reply) {} //修改 rpc UpdateSysDict (ModelArg) returns (Reply) {} //查询(分页) rpc PageSysDict (QueryArg) returns (Reply) {} } message ModelArg { //主键ID int32 DictId = 1; //字典分类 string DictKind = 2; //字典编码 string DictCode = 3; //字典值 string DictValue = 4; //字典备注 string DictRemark = 5; //上级字典ID string DictParent = 6; //排序 int32 SortId = 7; //是否启用 0:未启用 1:启用 int32 BUse = 8; //需要强制更新的列 repeated string ForceUpdateFields = 9; } // 查询参数 message QueryArg{ int32 Page = 1; int32 Limit = 2; } // 查询请求响应 message Reply{ bool Success = 1; string Message = 2; int32 Count = 3; string List = 4; } //删除参数 message DeleteIdsArg { //一个或多个ID repeated string Ids = 1; }