syntax = "proto3"; //在web层重新生成pb.go的方法 /* protoc -I Business/BaseRolePerson/BaseRolePersonProto/ Business/BaseRolePerson/BaseRolePersonProto/BaseRolePerson.proto --go_out=plugins=grpc:Business/BaseRolePerson/BaseRolePersonProto */ package BaseRolePersonProto; option go_package = ".;BaseRolePersonProto"; option java_multiple_files = true; option java_package = "com.dsideal.dsmin.base"; option java_outer_classname = "BaseRolePerson"; option objc_class_prefix = ""; service BaseRolePersonManage { //获取单条 rpc GetBaseRolePerson (ModelArg) returns (Reply) {} //增加 rpc AddBaseRolePerson (ModelArg) returns (Reply) {} //批量删除 rpc DeleteBaseRolePerson (DeleteIdsArg) returns (Reply) {} //修改 rpc UpdateBaseRolePerson (ModelArg) returns (Reply) {} //查询(分页) rpc PageBaseRolePerson (QueryArg) returns (Reply) {} //根据人员ID获取所管辖的地区信息 rpc GetManageArea (GetManageAreaArg) returns (Reply) {} //判断指定人员权限数组范围内,是不是有指定数据对象的管理权限 rpc CheckDataPrivilege(CheckDataPrivilegeArg) returns(Reply){} } message CheckDataPrivilegeArg{ //当前的操作人员ID string ActionPersonId = 1; //角色数组 repeated string RoleId = 2; //roleId //区域代码 //areaCode --->controller参数,有可能有有可能有 //areaCodes --->controller参数,有可能有有可能有 repeated string AreaCode = 3; //单位+学校+部门 //orgId --->controller参数,有可能有有可能有 //orgIds --->controller参数,有可能有有可能有 repeated string OrgId = 4; //班级 //classId --->controller参数,有可能有有可能有 //classIds --->controller参数,有可能有有可能有 repeated string ClassId = 5; //要处理的人员ID //personId --->controller参数,有可能有有可能有 //personIds --->controller参数,有可能有有可能有 repeated string PersonId = 6; //接口名 string InterName = 7; } message GetManageAreaArg{ //人员ID string PersonId = 1; //地区类型 1:市 2:区 int32 AreaType = 2; //操作人 string ActionPersonId = 3; //操作IP string ActionIpAddress = 4; } message ModelArg { // string Id = 1; //整数ID int32 IdInt = 2; //角色ID string RoleId = 3; //身份ID int32 IdentityId = 4; //人员ID string PersonId = 5; //具体管辖是哪个省、市、区或大学区ID,单位ID string RuleId = 6; //是否启用 0:未启用 1:启用 int32 BUse = 7; //最后修改时间 string LastUpdatedTime = 8; //需要强制更新的列 repeated string ForceUpdateFields = 9; //操作人 string ActionPersonId = 10; //操作IP string ActionIpAddress = 11; } // 查询参数 message QueryArg{ int32 Page = 1; int32 Limit = 2; //人员ID string PersonId = 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; }