|
|
|
@ -0,0 +1,176 @@
|
|
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
|
|
//在web层重新生成pb.go的方法
|
|
|
|
|
/*
|
|
|
|
|
protoc -I Business/BaseOrganization/BaseOrganizationProto/ Business/BaseOrganization/BaseOrganizationProto/BaseOrganization.proto --go_out=plugins=grpc:Business/BaseOrganization/BaseOrganizationProto
|
|
|
|
|
*/
|
|
|
|
|
package BaseOrganizationProto;
|
|
|
|
|
|
|
|
|
|
option go_package = ".;BaseOrganizationProto";
|
|
|
|
|
|
|
|
|
|
option java_multiple_files = true;
|
|
|
|
|
option java_package = "com.dsideal.dsmin.base";
|
|
|
|
|
option java_outer_classname = "BaseOrganization";
|
|
|
|
|
option objc_class_prefix = "";
|
|
|
|
|
|
|
|
|
|
service BaseOrganizationManage {
|
|
|
|
|
//获取单条
|
|
|
|
|
rpc GetBaseOrganization (ModelArg) returns (Reply) {}
|
|
|
|
|
//增加
|
|
|
|
|
rpc AddBaseOrganization (ModelArg) returns (Reply) {}
|
|
|
|
|
//删除
|
|
|
|
|
rpc DeleteBaseOrganization (DeleteIdsArg) returns (Reply) {}
|
|
|
|
|
//修改
|
|
|
|
|
rpc UpdateBaseOrganization (ModelArg) returns (Reply) {}
|
|
|
|
|
//查询(分页)
|
|
|
|
|
rpc PageBaseOrganization (QueryArg) returns (Reply) {}
|
|
|
|
|
//根据一个或多个orgId获取orgName
|
|
|
|
|
rpc GetMultipleBaseOrganization (MultipleQueryArg) returns (Reply) {}
|
|
|
|
|
// 根据单位ID,获取单位及单位下所有的部门,以树状结构体形式返回,配合前端React Ant Design的树状数据结构
|
|
|
|
|
//ModelArg中只传入BureauId一个有用值,因为返回的不是一个List,而是一个JSON数据,所以,扩展了Reply的jsonData字段。
|
|
|
|
|
rpc GetBureauOrgTree (ModelArg) returns (Reply) {}
|
|
|
|
|
//根据一个或多个部门ID获取部门领导
|
|
|
|
|
rpc GetOrgManager (MultipleQueryArg) returns (Reply) {}
|
|
|
|
|
//启用教育局
|
|
|
|
|
rpc SetEnableEdu (MultipleQueryArg) returns (Reply) {}
|
|
|
|
|
//禁用教育局
|
|
|
|
|
rpc SetDisableEdu (MultipleQueryArg) returns (Reply) {}
|
|
|
|
|
//根据单位名称的关键字和管理员的人员ID查询单位列表
|
|
|
|
|
rpc ListOrgInfoByOrgKeyWord (ListOrgArg) returns (Reply) {}
|
|
|
|
|
//根据市的行政区划码获取教育局列表
|
|
|
|
|
rpc ListEduByCityCode (CityCodeArg)returns (Reply) {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message CityCodeArg {
|
|
|
|
|
//市的行政区划码
|
|
|
|
|
string CityCode = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message ListOrgArg {
|
|
|
|
|
//管理员的人员ID
|
|
|
|
|
string PersonId = 1;
|
|
|
|
|
//单位名称关键字
|
|
|
|
|
string OrgKeyWord = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message MultipleQueryArg{
|
|
|
|
|
//一个或多个orgId
|
|
|
|
|
repeated string Ids = 1;
|
|
|
|
|
//操作人
|
|
|
|
|
string ActionPersonId = 2;
|
|
|
|
|
//操作IP
|
|
|
|
|
string ActionIpAddress = 3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message ModelArg {
|
|
|
|
|
//组织机构ID
|
|
|
|
|
string OrgId = 1;
|
|
|
|
|
//整数ID
|
|
|
|
|
int32 OrgIdInt = 2;
|
|
|
|
|
//组织机构编码
|
|
|
|
|
string OrgCode = 3;
|
|
|
|
|
//组织机构名称
|
|
|
|
|
string OrgName = 4;
|
|
|
|
|
//上级部门ID,单位填0
|
|
|
|
|
string ParentId = 5;
|
|
|
|
|
//所在单位ID
|
|
|
|
|
string BureauId = 6;
|
|
|
|
|
//组织机构类型 1:教育局 2:学校 3:部门 4:院 5:系 6:专业 7:教辅单位,8:大学区
|
|
|
|
|
int32 OrgType = 7;
|
|
|
|
|
//教辅单位类型
|
|
|
|
|
int32 EduAssistType = 8;
|
|
|
|
|
//主校类型,1:普通校,2:主校,3:分校
|
|
|
|
|
int32 MainSchoolType = 9;
|
|
|
|
|
//如果是分校,所属主校的ID,如果是主校,是自己的ID,如果是分校,是主校ID,如果是普通校,也是自己的ID
|
|
|
|
|
string MainSchoolId = 10;
|
|
|
|
|
//学校办学类型(学校专有属性)有字典
|
|
|
|
|
string Xxbxlxm = 11;
|
|
|
|
|
//学校城乡类型(学校专有属性)有字典
|
|
|
|
|
string Szdcxlxm = 12;
|
|
|
|
|
//学校举办者(学校专有属性)有字典
|
|
|
|
|
string Xxjbzm = 13;
|
|
|
|
|
//机构负责人ID(*一个单位只能有一个负责人)
|
|
|
|
|
string Fzr = 14;
|
|
|
|
|
//机构法定代表人
|
|
|
|
|
string Fddbr = 15;
|
|
|
|
|
//机构法定代表人电话
|
|
|
|
|
string Fddbrdh = 16;
|
|
|
|
|
//组织机构地址
|
|
|
|
|
string Address = 17;
|
|
|
|
|
//机构联系电话
|
|
|
|
|
string Lxdh = 18;
|
|
|
|
|
//组织机构经度
|
|
|
|
|
float OrgLng = 19;
|
|
|
|
|
//组织机构纬度
|
|
|
|
|
float OrgLat = 20;
|
|
|
|
|
//排序号
|
|
|
|
|
int32 SortId = 21;
|
|
|
|
|
//是否启用 0:未启用 1:启用
|
|
|
|
|
int32 BUse = 22;
|
|
|
|
|
//所在省行政区划码
|
|
|
|
|
string ProvinceCode = 23;
|
|
|
|
|
//所在市行政区划码
|
|
|
|
|
string CityCode = 24;
|
|
|
|
|
//所在区行政区划码
|
|
|
|
|
string DistrictCode = 25;
|
|
|
|
|
//行政区划码 RPC层来判断是哪一级
|
|
|
|
|
string AreaCode = 26;
|
|
|
|
|
//上级管理单位所在行政区划码
|
|
|
|
|
string ManagerAreaCode = 27;
|
|
|
|
|
//最后修改时间
|
|
|
|
|
string LastUpdatedTime = 28;
|
|
|
|
|
//是否为分校 -1:非分校 1:是分校
|
|
|
|
|
int32 IsBranchSchool = 29;
|
|
|
|
|
//部门领导的人员IDS
|
|
|
|
|
repeated string OrgManagerIds = 30;
|
|
|
|
|
//需要强制更新的列
|
|
|
|
|
repeated string ForceUpdateFields = 31;
|
|
|
|
|
//学校附设班办学类型
|
|
|
|
|
repeated string FsbIds = 32;
|
|
|
|
|
//操作人
|
|
|
|
|
string ActionPersonId = 33;
|
|
|
|
|
//操作IP
|
|
|
|
|
string ActionIpAddress = 34;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 查询参数
|
|
|
|
|
message QueryArg{
|
|
|
|
|
int32 Page = 1;
|
|
|
|
|
int32 Limit = 2;
|
|
|
|
|
//行政区划码 RPC层来判断是哪一级
|
|
|
|
|
string AreaCode = 3;
|
|
|
|
|
//启用状态 -1:未启用 1:启用
|
|
|
|
|
int32 BUse = 4;
|
|
|
|
|
//组织机构类型 1:教育局 2:学校 3:部门 4:院 5:系 6:专业 7:教辅单位 8:大学区
|
|
|
|
|
int32 OrgType = 5;
|
|
|
|
|
//机构名称关键字查询
|
|
|
|
|
string OrgName = 6;
|
|
|
|
|
//学校办学类型 0为查询全部
|
|
|
|
|
string Xxbxlxm = 7;
|
|
|
|
|
//单位ID
|
|
|
|
|
string BureauId = 8;
|
|
|
|
|
//是否只查主校 ,true:只查主校 false:查所有学校
|
|
|
|
|
bool IsMainSchool = 9;
|
|
|
|
|
//操作人
|
|
|
|
|
string ActionPersonId = 10;
|
|
|
|
|
//操作IP
|
|
|
|
|
string ActionIpAddress = 11;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 查询请求响应
|
|
|
|
|
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;
|
|
|
|
|
}
|