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.

176 lines
5.4 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/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;
}