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.
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 ) { }
}
message ModelArg {
//组织机构ID
string OrgId = 1 ;
//整数ID
int32 IdInt = 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 ;
//上级管理单位ID( *一个单位只能有一个上级管理单位)
string ManageOrgId = 11 ;
//直属类型 1: 普通 2: 省直 3: 市直
int32 DirectlyUnderType = 12 ;
//学校办别(学校专有属性)有字典
string Xxbbm = 13 ;
//学校办学类型(学校专有属性)有字典
string Xxbxlxm = 14 ;
//学校城乡类型(学校专有属性)有字典
string Szdcxlxm = 15 ;
//学校举办者(学校专有属性)有字典
string Xxjbzm = 16 ;
//机构负责人ID( *一个单位只能有一个负责人)
string Fzr = 17 ;
//机构法定代表人
string Fddbr = 18 ;
//机构法定代表人电话
string Fddbrdh = 19 ;
//组织机构地址
string Address = 20 ;
//机构联系电话
string Lxdh = 21 ;
//组织机构经度
float OrgLng = 22 ;
//组织机构纬度
float OrgLat = 23 ;
//排序号( 在获取信息时如果排序号大于9999, 前台不显示)
int32 SortId = 24 ;
//是否启用 0: 未启用 1: 启用
int32 BUse = 25 ;
//所在省行政区划码
string ProvinceCode = 26 ;
//所在市行政区划码
string CityCode = 27 ;
//所在区行政区划码
string DistrictCode = 28 ;
//所在行政区划码
string AreaCode = 29 ;
//最后修改时间
string LastUpdatedTime = 30 ;
//需要强制更新的列
repeated string ForceUpdateFields = 31 ;
}
// 查询参数
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 ;
}