syntax = "proto3"; //在web层重新生成pb.go的方法 /* protoc -I Business/BaseRole/BaseRoleProto/ Business/BaseRole/BaseRoleProto/BaseRole.proto --go_out=plugins=grpc:Business/BaseRole/BaseRoleProto */ package BaseRoleProto; option go_package = ".;BaseRoleProto"; option java_multiple_files = true; option java_package = "com.dsideal.dsmin.base"; option java_outer_classname = "BaseRole"; option objc_class_prefix = ""; service BaseRoleManage { //获取单条 rpc GetBaseRole (ModelArg) returns (Reply) {} //增加 rpc AddBaseRole (ModelArg) returns (Reply) {} //批量删除 rpc DeleteBaseRole (DeleteIdsArg) returns (Reply) {} //修改 rpc UpdateBaseRole (ModelArg) returns (Reply) {} //查询(分页) rpc PageBaseRole (QueryArg) returns (Reply) {} } message ModelArg { //角色ID string RoleId = 1; //整数ID int32 IdInt = 2; //角色名称 string RoleName = 3; //角色编码 string RoleCode = 4; //角色级别 1:超级管理员 2:省级教育局 3:市级教育局 4:区(县)级教育局 5:省级教辅单位 6:市级教辅单位 7:区(县)级教辅单位 8:校级 9:大学区 int32 RoleLevel = 5; //身份ID,对应表t_sys_identity int32 IdentityId = 6; //是否启用 0:未启用 1:启用 int32 BUse = 7; //排序号 int32 SortId = 8; //最后更新时间戳 string LastUpdatedTime = 9; //需要强制更新的列 repeated string ForceUpdateFields = 10; //系统ID 通用传0 repeated string AppIds = 11; } // 查询参数 message QueryArg{ int32 Page = 1; int32 Limit = 2; //系统ID string AppId = 3; //身份ID int32 IdentityId = 4; } // 查询请求响应 message Reply{ bool Success = 1; string Message = 2; int32 Count = 3; string List = 4; } //删除参数 message DeleteIdsArg { //一个或多个ID repeated string Ids = 1; }