From fde0b78db0bf3abaf270277cdeb852f67806e311 Mon Sep 17 00:00:00 2001 From: wubin Date: Thu, 17 Sep 2020 09:45:46 +0800 Subject: [PATCH] UPDATE --- .../AccessSystemController.go | 4 +- .../BaseOrganization.pb.go | 1691 +++++++++++++++++ .../BaseOrganization.proto | 176 ++ .../BaseOrganizationService.go | 19 + .../BaseOrganizationServiceRpc.go | 32 + dsSupport/docs/docs.go | 6 +- dsSupport/docs/swagger.json | 4 +- dsSupport/docs/swagger.yaml | 4 +- 8 files changed, 1927 insertions(+), 9 deletions(-) create mode 100644 dsSupport/MyModel/AccessSystem/AccessSystemProto/BaseOrganizationProto/BaseOrganization.pb.go create mode 100644 dsSupport/MyModel/AccessSystem/AccessSystemProto/BaseOrganizationProto/BaseOrganization.proto create mode 100644 dsSupport/MyModel/AccessSystem/AccessSystemRpc/BaseOrganizationService/BaseOrganizationService.go create mode 100644 dsSupport/MyModel/AccessSystem/AccessSystemRpc/BaseOrganizationService/BaseOrganizationServiceRpc.go diff --git a/dsSupport/MyModel/AccessSystem/AccessSystemController/AccessSystemController.go b/dsSupport/MyModel/AccessSystem/AccessSystemController/AccessSystemController.go index cc0fe037..8cedbc2f 100644 --- a/dsSupport/MyModel/AccessSystem/AccessSystemController/AccessSystemController.go +++ b/dsSupport/MyModel/AccessSystem/AccessSystemController/AccessSystemController.go @@ -786,8 +786,8 @@ func PageGovArea(c *gin.Context) { }) } -// @Summary 获取行政区划信息 -// @Description 获取行政区划信息 +// @Summary 获取单位列表 +// @Description 获取单位列表 // @Tags 接入系统 // @Accept application/x-www-form-urlencoded // @Produce json diff --git a/dsSupport/MyModel/AccessSystem/AccessSystemProto/BaseOrganizationProto/BaseOrganization.pb.go b/dsSupport/MyModel/AccessSystem/AccessSystemProto/BaseOrganizationProto/BaseOrganization.pb.go new file mode 100644 index 00000000..a642bfd7 --- /dev/null +++ b/dsSupport/MyModel/AccessSystem/AccessSystemProto/BaseOrganizationProto/BaseOrganization.pb.go @@ -0,0 +1,1691 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.21.0 +// protoc v3.11.4 +// source: BaseOrganization.proto + +//在web层重新生成pb.go的方法 + +// +//protoc -I Business/BaseOrganization/BaseOrganizationProto/ Business/BaseOrganization/BaseOrganizationProto/BaseOrganization.proto --go_out=plugins=grpc:Business/BaseOrganization/BaseOrganizationProto + +package BaseOrganizationProto + +import ( + context "context" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type CityCodeArg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + //市的行政区划码 + CityCode string `protobuf:"bytes,1,opt,name=CityCode,proto3" json:"CityCode,omitempty"` +} + +func (x *CityCodeArg) Reset() { + *x = CityCodeArg{} + if protoimpl.UnsafeEnabled { + mi := &file_BaseOrganization_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CityCodeArg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CityCodeArg) ProtoMessage() {} + +func (x *CityCodeArg) ProtoReflect() protoreflect.Message { + mi := &file_BaseOrganization_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CityCodeArg.ProtoReflect.Descriptor instead. +func (*CityCodeArg) Descriptor() ([]byte, []int) { + return file_BaseOrganization_proto_rawDescGZIP(), []int{0} +} + +func (x *CityCodeArg) GetCityCode() string { + if x != nil { + return x.CityCode + } + return "" +} + +type ListOrgArg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + //管理员的人员ID + PersonId string `protobuf:"bytes,1,opt,name=PersonId,proto3" json:"PersonId,omitempty"` + //单位名称关键字 + OrgKeyWord string `protobuf:"bytes,2,opt,name=OrgKeyWord,proto3" json:"OrgKeyWord,omitempty"` +} + +func (x *ListOrgArg) Reset() { + *x = ListOrgArg{} + if protoimpl.UnsafeEnabled { + mi := &file_BaseOrganization_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListOrgArg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListOrgArg) ProtoMessage() {} + +func (x *ListOrgArg) ProtoReflect() protoreflect.Message { + mi := &file_BaseOrganization_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListOrgArg.ProtoReflect.Descriptor instead. +func (*ListOrgArg) Descriptor() ([]byte, []int) { + return file_BaseOrganization_proto_rawDescGZIP(), []int{1} +} + +func (x *ListOrgArg) GetPersonId() string { + if x != nil { + return x.PersonId + } + return "" +} + +func (x *ListOrgArg) GetOrgKeyWord() string { + if x != nil { + return x.OrgKeyWord + } + return "" +} + +type MultipleQueryArg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + //一个或多个orgId + Ids []string `protobuf:"bytes,1,rep,name=Ids,proto3" json:"Ids,omitempty"` + //操作人 + ActionPersonId string `protobuf:"bytes,2,opt,name=ActionPersonId,proto3" json:"ActionPersonId,omitempty"` + //操作IP + ActionIpAddress string `protobuf:"bytes,3,opt,name=ActionIpAddress,proto3" json:"ActionIpAddress,omitempty"` +} + +func (x *MultipleQueryArg) Reset() { + *x = MultipleQueryArg{} + if protoimpl.UnsafeEnabled { + mi := &file_BaseOrganization_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MultipleQueryArg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MultipleQueryArg) ProtoMessage() {} + +func (x *MultipleQueryArg) ProtoReflect() protoreflect.Message { + mi := &file_BaseOrganization_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MultipleQueryArg.ProtoReflect.Descriptor instead. +func (*MultipleQueryArg) Descriptor() ([]byte, []int) { + return file_BaseOrganization_proto_rawDescGZIP(), []int{2} +} + +func (x *MultipleQueryArg) GetIds() []string { + if x != nil { + return x.Ids + } + return nil +} + +func (x *MultipleQueryArg) GetActionPersonId() string { + if x != nil { + return x.ActionPersonId + } + return "" +} + +func (x *MultipleQueryArg) GetActionIpAddress() string { + if x != nil { + return x.ActionIpAddress + } + return "" +} + +type ModelArg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + //组织机构ID + OrgId string `protobuf:"bytes,1,opt,name=OrgId,proto3" json:"OrgId,omitempty"` + //整数ID + OrgIdInt int32 `protobuf:"varint,2,opt,name=OrgIdInt,proto3" json:"OrgIdInt,omitempty"` + //组织机构编码 + OrgCode string `protobuf:"bytes,3,opt,name=OrgCode,proto3" json:"OrgCode,omitempty"` + //组织机构名称 + OrgName string `protobuf:"bytes,4,opt,name=OrgName,proto3" json:"OrgName,omitempty"` + //上级部门ID,单位填0 + ParentId string `protobuf:"bytes,5,opt,name=ParentId,proto3" json:"ParentId,omitempty"` + //所在单位ID + BureauId string `protobuf:"bytes,6,opt,name=BureauId,proto3" json:"BureauId,omitempty"` + //组织机构类型 1:教育局 2:学校 3:部门 4:院 5:系 6:专业 7:教辅单位,8:大学区 + OrgType int32 `protobuf:"varint,7,opt,name=OrgType,proto3" json:"OrgType,omitempty"` + //教辅单位类型 + EduAssistType int32 `protobuf:"varint,8,opt,name=EduAssistType,proto3" json:"EduAssistType,omitempty"` + //主校类型,1:普通校,2:主校,3:分校 + MainSchoolType int32 `protobuf:"varint,9,opt,name=MainSchoolType,proto3" json:"MainSchoolType,omitempty"` + //如果是分校,所属主校的ID,如果是主校,是自己的ID,如果是分校,是主校ID,如果是普通校,也是自己的ID + MainSchoolId string `protobuf:"bytes,10,opt,name=MainSchoolId,proto3" json:"MainSchoolId,omitempty"` + //学校办学类型(学校专有属性)有字典 + Xxbxlxm string `protobuf:"bytes,11,opt,name=Xxbxlxm,proto3" json:"Xxbxlxm,omitempty"` + //学校城乡类型(学校专有属性)有字典 + Szdcxlxm string `protobuf:"bytes,12,opt,name=Szdcxlxm,proto3" json:"Szdcxlxm,omitempty"` + //学校举办者(学校专有属性)有字典 + Xxjbzm string `protobuf:"bytes,13,opt,name=Xxjbzm,proto3" json:"Xxjbzm,omitempty"` + //机构负责人ID(*一个单位只能有一个负责人) + Fzr string `protobuf:"bytes,14,opt,name=Fzr,proto3" json:"Fzr,omitempty"` + //机构法定代表人 + Fddbr string `protobuf:"bytes,15,opt,name=Fddbr,proto3" json:"Fddbr,omitempty"` + //机构法定代表人电话 + Fddbrdh string `protobuf:"bytes,16,opt,name=Fddbrdh,proto3" json:"Fddbrdh,omitempty"` + //组织机构地址 + Address string `protobuf:"bytes,17,opt,name=Address,proto3" json:"Address,omitempty"` + //机构联系电话 + Lxdh string `protobuf:"bytes,18,opt,name=Lxdh,proto3" json:"Lxdh,omitempty"` + //组织机构经度 + OrgLng float32 `protobuf:"fixed32,19,opt,name=OrgLng,proto3" json:"OrgLng,omitempty"` + //组织机构纬度 + OrgLat float32 `protobuf:"fixed32,20,opt,name=OrgLat,proto3" json:"OrgLat,omitempty"` + //排序号 + SortId int32 `protobuf:"varint,21,opt,name=SortId,proto3" json:"SortId,omitempty"` + //是否启用 0:未启用 1:启用 + BUse int32 `protobuf:"varint,22,opt,name=BUse,proto3" json:"BUse,omitempty"` + //所在省行政区划码 + ProvinceCode string `protobuf:"bytes,23,opt,name=ProvinceCode,proto3" json:"ProvinceCode,omitempty"` + //所在市行政区划码 + CityCode string `protobuf:"bytes,24,opt,name=CityCode,proto3" json:"CityCode,omitempty"` + //所在区行政区划码 + DistrictCode string `protobuf:"bytes,25,opt,name=DistrictCode,proto3" json:"DistrictCode,omitempty"` + //行政区划码 RPC层来判断是哪一级 + AreaCode string `protobuf:"bytes,26,opt,name=AreaCode,proto3" json:"AreaCode,omitempty"` + //上级管理单位所在行政区划码 + ManagerAreaCode string `protobuf:"bytes,27,opt,name=ManagerAreaCode,proto3" json:"ManagerAreaCode,omitempty"` + //最后修改时间 + LastUpdatedTime string `protobuf:"bytes,28,opt,name=LastUpdatedTime,proto3" json:"LastUpdatedTime,omitempty"` + //是否为分校 -1:非分校 1:是分校 + IsBranchSchool int32 `protobuf:"varint,29,opt,name=IsBranchSchool,proto3" json:"IsBranchSchool,omitempty"` + //部门领导的人员IDS + OrgManagerIds []string `protobuf:"bytes,30,rep,name=OrgManagerIds,proto3" json:"OrgManagerIds,omitempty"` + //需要强制更新的列 + ForceUpdateFields []string `protobuf:"bytes,31,rep,name=ForceUpdateFields,proto3" json:"ForceUpdateFields,omitempty"` + //学校附设班办学类型 + FsbIds []string `protobuf:"bytes,32,rep,name=FsbIds,proto3" json:"FsbIds,omitempty"` + //操作人 + ActionPersonId string `protobuf:"bytes,33,opt,name=ActionPersonId,proto3" json:"ActionPersonId,omitempty"` + //操作IP + ActionIpAddress string `protobuf:"bytes,34,opt,name=ActionIpAddress,proto3" json:"ActionIpAddress,omitempty"` +} + +func (x *ModelArg) Reset() { + *x = ModelArg{} + if protoimpl.UnsafeEnabled { + mi := &file_BaseOrganization_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ModelArg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModelArg) ProtoMessage() {} + +func (x *ModelArg) ProtoReflect() protoreflect.Message { + mi := &file_BaseOrganization_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ModelArg.ProtoReflect.Descriptor instead. +func (*ModelArg) Descriptor() ([]byte, []int) { + return file_BaseOrganization_proto_rawDescGZIP(), []int{3} +} + +func (x *ModelArg) GetOrgId() string { + if x != nil { + return x.OrgId + } + return "" +} + +func (x *ModelArg) GetOrgIdInt() int32 { + if x != nil { + return x.OrgIdInt + } + return 0 +} + +func (x *ModelArg) GetOrgCode() string { + if x != nil { + return x.OrgCode + } + return "" +} + +func (x *ModelArg) GetOrgName() string { + if x != nil { + return x.OrgName + } + return "" +} + +func (x *ModelArg) GetParentId() string { + if x != nil { + return x.ParentId + } + return "" +} + +func (x *ModelArg) GetBureauId() string { + if x != nil { + return x.BureauId + } + return "" +} + +func (x *ModelArg) GetOrgType() int32 { + if x != nil { + return x.OrgType + } + return 0 +} + +func (x *ModelArg) GetEduAssistType() int32 { + if x != nil { + return x.EduAssistType + } + return 0 +} + +func (x *ModelArg) GetMainSchoolType() int32 { + if x != nil { + return x.MainSchoolType + } + return 0 +} + +func (x *ModelArg) GetMainSchoolId() string { + if x != nil { + return x.MainSchoolId + } + return "" +} + +func (x *ModelArg) GetXxbxlxm() string { + if x != nil { + return x.Xxbxlxm + } + return "" +} + +func (x *ModelArg) GetSzdcxlxm() string { + if x != nil { + return x.Szdcxlxm + } + return "" +} + +func (x *ModelArg) GetXxjbzm() string { + if x != nil { + return x.Xxjbzm + } + return "" +} + +func (x *ModelArg) GetFzr() string { + if x != nil { + return x.Fzr + } + return "" +} + +func (x *ModelArg) GetFddbr() string { + if x != nil { + return x.Fddbr + } + return "" +} + +func (x *ModelArg) GetFddbrdh() string { + if x != nil { + return x.Fddbrdh + } + return "" +} + +func (x *ModelArg) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *ModelArg) GetLxdh() string { + if x != nil { + return x.Lxdh + } + return "" +} + +func (x *ModelArg) GetOrgLng() float32 { + if x != nil { + return x.OrgLng + } + return 0 +} + +func (x *ModelArg) GetOrgLat() float32 { + if x != nil { + return x.OrgLat + } + return 0 +} + +func (x *ModelArg) GetSortId() int32 { + if x != nil { + return x.SortId + } + return 0 +} + +func (x *ModelArg) GetBUse() int32 { + if x != nil { + return x.BUse + } + return 0 +} + +func (x *ModelArg) GetProvinceCode() string { + if x != nil { + return x.ProvinceCode + } + return "" +} + +func (x *ModelArg) GetCityCode() string { + if x != nil { + return x.CityCode + } + return "" +} + +func (x *ModelArg) GetDistrictCode() string { + if x != nil { + return x.DistrictCode + } + return "" +} + +func (x *ModelArg) GetAreaCode() string { + if x != nil { + return x.AreaCode + } + return "" +} + +func (x *ModelArg) GetManagerAreaCode() string { + if x != nil { + return x.ManagerAreaCode + } + return "" +} + +func (x *ModelArg) GetLastUpdatedTime() string { + if x != nil { + return x.LastUpdatedTime + } + return "" +} + +func (x *ModelArg) GetIsBranchSchool() int32 { + if x != nil { + return x.IsBranchSchool + } + return 0 +} + +func (x *ModelArg) GetOrgManagerIds() []string { + if x != nil { + return x.OrgManagerIds + } + return nil +} + +func (x *ModelArg) GetForceUpdateFields() []string { + if x != nil { + return x.ForceUpdateFields + } + return nil +} + +func (x *ModelArg) GetFsbIds() []string { + if x != nil { + return x.FsbIds + } + return nil +} + +func (x *ModelArg) GetActionPersonId() string { + if x != nil { + return x.ActionPersonId + } + return "" +} + +func (x *ModelArg) GetActionIpAddress() string { + if x != nil { + return x.ActionIpAddress + } + return "" +} + +// 查询参数 +type QueryArg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Page int32 `protobuf:"varint,1,opt,name=Page,proto3" json:"Page,omitempty"` + Limit int32 `protobuf:"varint,2,opt,name=Limit,proto3" json:"Limit,omitempty"` + //行政区划码 RPC层来判断是哪一级 + AreaCode string `protobuf:"bytes,3,opt,name=AreaCode,proto3" json:"AreaCode,omitempty"` + //启用状态 -1:未启用 1:启用 + BUse int32 `protobuf:"varint,4,opt,name=BUse,proto3" json:"BUse,omitempty"` + //组织机构类型 1:教育局 2:学校 3:部门 4:院 5:系 6:专业 7:教辅单位 8:大学区 + OrgType int32 `protobuf:"varint,5,opt,name=OrgType,proto3" json:"OrgType,omitempty"` + //机构名称关键字查询 + OrgName string `protobuf:"bytes,6,opt,name=OrgName,proto3" json:"OrgName,omitempty"` + //学校办学类型 0为查询全部 + Xxbxlxm string `protobuf:"bytes,7,opt,name=Xxbxlxm,proto3" json:"Xxbxlxm,omitempty"` + //单位ID + BureauId string `protobuf:"bytes,8,opt,name=BureauId,proto3" json:"BureauId,omitempty"` + //是否只查主校 ,true:只查主校 false:查所有学校 + IsMainSchool bool `protobuf:"varint,9,opt,name=IsMainSchool,proto3" json:"IsMainSchool,omitempty"` + //操作人 + ActionPersonId string `protobuf:"bytes,10,opt,name=ActionPersonId,proto3" json:"ActionPersonId,omitempty"` + //操作IP + ActionIpAddress string `protobuf:"bytes,11,opt,name=ActionIpAddress,proto3" json:"ActionIpAddress,omitempty"` +} + +func (x *QueryArg) Reset() { + *x = QueryArg{} + if protoimpl.UnsafeEnabled { + mi := &file_BaseOrganization_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryArg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryArg) ProtoMessage() {} + +func (x *QueryArg) ProtoReflect() protoreflect.Message { + mi := &file_BaseOrganization_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use QueryArg.ProtoReflect.Descriptor instead. +func (*QueryArg) Descriptor() ([]byte, []int) { + return file_BaseOrganization_proto_rawDescGZIP(), []int{4} +} + +func (x *QueryArg) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *QueryArg) GetLimit() int32 { + if x != nil { + return x.Limit + } + return 0 +} + +func (x *QueryArg) GetAreaCode() string { + if x != nil { + return x.AreaCode + } + return "" +} + +func (x *QueryArg) GetBUse() int32 { + if x != nil { + return x.BUse + } + return 0 +} + +func (x *QueryArg) GetOrgType() int32 { + if x != nil { + return x.OrgType + } + return 0 +} + +func (x *QueryArg) GetOrgName() string { + if x != nil { + return x.OrgName + } + return "" +} + +func (x *QueryArg) GetXxbxlxm() string { + if x != nil { + return x.Xxbxlxm + } + return "" +} + +func (x *QueryArg) GetBureauId() string { + if x != nil { + return x.BureauId + } + return "" +} + +func (x *QueryArg) GetIsMainSchool() bool { + if x != nil { + return x.IsMainSchool + } + return false +} + +func (x *QueryArg) GetActionPersonId() string { + if x != nil { + return x.ActionPersonId + } + return "" +} + +func (x *QueryArg) GetActionIpAddress() string { + if x != nil { + return x.ActionIpAddress + } + return "" +} + +// 查询请求响应 +type Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Success bool `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"` + Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"` + Count int32 `protobuf:"varint,3,opt,name=Count,proto3" json:"Count,omitempty"` + List string `protobuf:"bytes,4,opt,name=List,proto3" json:"List,omitempty"` +} + +func (x *Reply) Reset() { + *x = Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_BaseOrganization_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Reply) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Reply) ProtoMessage() {} + +func (x *Reply) ProtoReflect() protoreflect.Message { + mi := &file_BaseOrganization_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Reply.ProtoReflect.Descriptor instead. +func (*Reply) Descriptor() ([]byte, []int) { + return file_BaseOrganization_proto_rawDescGZIP(), []int{5} +} + +func (x *Reply) GetSuccess() bool { + if x != nil { + return x.Success + } + return false +} + +func (x *Reply) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +func (x *Reply) GetCount() int32 { + if x != nil { + return x.Count + } + return 0 +} + +func (x *Reply) GetList() string { + if x != nil { + return x.List + } + return "" +} + +//删除参数 +type DeleteIdsArg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + //一个或多个ID + Ids []string `protobuf:"bytes,1,rep,name=Ids,proto3" json:"Ids,omitempty"` + //操作人 + ActionPersonId string `protobuf:"bytes,2,opt,name=ActionPersonId,proto3" json:"ActionPersonId,omitempty"` + //操作IP + ActionIpAddress string `protobuf:"bytes,3,opt,name=ActionIpAddress,proto3" json:"ActionIpAddress,omitempty"` +} + +func (x *DeleteIdsArg) Reset() { + *x = DeleteIdsArg{} + if protoimpl.UnsafeEnabled { + mi := &file_BaseOrganization_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteIdsArg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteIdsArg) ProtoMessage() {} + +func (x *DeleteIdsArg) ProtoReflect() protoreflect.Message { + mi := &file_BaseOrganization_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteIdsArg.ProtoReflect.Descriptor instead. +func (*DeleteIdsArg) Descriptor() ([]byte, []int) { + return file_BaseOrganization_proto_rawDescGZIP(), []int{6} +} + +func (x *DeleteIdsArg) GetIds() []string { + if x != nil { + return x.Ids + } + return nil +} + +func (x *DeleteIdsArg) GetActionPersonId() string { + if x != nil { + return x.ActionPersonId + } + return "" +} + +func (x *DeleteIdsArg) GetActionIpAddress() string { + if x != nil { + return x.ActionIpAddress + } + return "" +} + +var File_BaseOrganization_proto protoreflect.FileDescriptor + +var file_BaseOrganization_proto_rawDesc = []byte{ + 0x0a, 0x16, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0x29, 0x0a, 0x0b, 0x43, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x41, 0x72, 0x67, 0x12, 0x1a, + 0x0a, 0x08, 0x43, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x43, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x48, 0x0a, 0x0a, 0x4c, 0x69, + 0x73, 0x74, 0x4f, 0x72, 0x67, 0x41, 0x72, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x50, 0x65, 0x72, 0x73, + 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x50, 0x65, 0x72, 0x73, + 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x4f, 0x72, 0x67, 0x4b, 0x65, 0x79, 0x57, 0x6f, + 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x4f, 0x72, 0x67, 0x4b, 0x65, 0x79, + 0x57, 0x6f, 0x72, 0x64, 0x22, 0x76, 0x0a, 0x10, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x72, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x49, 0x64, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x49, 0x64, 0x73, 0x12, 0x26, 0x0a, 0x0e, 0x41, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, + 0x49, 0x64, 0x12, 0x28, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x70, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x41, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x49, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x88, 0x08, 0x0a, + 0x08, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x4f, 0x72, 0x67, + 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x72, 0x67, 0x49, 0x64, 0x12, + 0x1a, 0x0a, 0x08, 0x4f, 0x72, 0x67, 0x49, 0x64, 0x49, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x08, 0x4f, 0x72, 0x67, 0x49, 0x64, 0x49, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x4f, + 0x72, 0x67, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x4f, 0x72, + 0x67, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x4f, 0x72, 0x67, 0x4e, 0x61, 0x6d, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x4f, 0x72, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x1a, 0x0a, 0x08, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x42, + 0x75, 0x72, 0x65, 0x61, 0x75, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x42, + 0x75, 0x72, 0x65, 0x61, 0x75, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x4f, 0x72, 0x67, 0x54, 0x79, + 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x4f, 0x72, 0x67, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x45, 0x64, 0x75, 0x41, 0x73, 0x73, 0x69, 0x73, 0x74, 0x54, 0x79, + 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x45, 0x64, 0x75, 0x41, 0x73, 0x73, + 0x69, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x4d, 0x61, 0x69, 0x6e, 0x53, + 0x63, 0x68, 0x6f, 0x6f, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x0e, 0x4d, 0x61, 0x69, 0x6e, 0x53, 0x63, 0x68, 0x6f, 0x6f, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x22, 0x0a, 0x0c, 0x4d, 0x61, 0x69, 0x6e, 0x53, 0x63, 0x68, 0x6f, 0x6f, 0x6c, 0x49, 0x64, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x4d, 0x61, 0x69, 0x6e, 0x53, 0x63, 0x68, 0x6f, 0x6f, + 0x6c, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x58, 0x78, 0x62, 0x78, 0x6c, 0x78, 0x6d, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x58, 0x78, 0x62, 0x78, 0x6c, 0x78, 0x6d, 0x12, 0x1a, 0x0a, + 0x08, 0x53, 0x7a, 0x64, 0x63, 0x78, 0x6c, 0x78, 0x6d, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x53, 0x7a, 0x64, 0x63, 0x78, 0x6c, 0x78, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x58, 0x78, 0x6a, + 0x62, 0x7a, 0x6d, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x58, 0x78, 0x6a, 0x62, 0x7a, + 0x6d, 0x12, 0x10, 0x0a, 0x03, 0x46, 0x7a, 0x72, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x46, 0x7a, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x46, 0x64, 0x64, 0x62, 0x72, 0x18, 0x0f, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x46, 0x64, 0x64, 0x62, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x46, 0x64, 0x64, + 0x62, 0x72, 0x64, 0x68, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x46, 0x64, 0x64, 0x62, + 0x72, 0x64, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x11, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, + 0x04, 0x4c, 0x78, 0x64, 0x68, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x4c, 0x78, 0x64, + 0x68, 0x12, 0x16, 0x0a, 0x06, 0x4f, 0x72, 0x67, 0x4c, 0x6e, 0x67, 0x18, 0x13, 0x20, 0x01, 0x28, + 0x02, 0x52, 0x06, 0x4f, 0x72, 0x67, 0x4c, 0x6e, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x4f, 0x72, 0x67, + 0x4c, 0x61, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x02, 0x52, 0x06, 0x4f, 0x72, 0x67, 0x4c, 0x61, + 0x74, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x6f, 0x72, 0x74, 0x49, 0x64, 0x18, 0x15, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x06, 0x53, 0x6f, 0x72, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x42, 0x55, 0x73, + 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x42, 0x55, 0x73, 0x65, 0x12, 0x22, 0x0a, + 0x0c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x17, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x64, + 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x43, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x18, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x43, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x22, 0x0a, + 0x0c, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x19, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x43, 0x6f, 0x64, + 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x41, 0x72, 0x65, 0x61, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x1a, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x41, 0x72, 0x65, 0x61, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x28, 0x0a, + 0x0f, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x41, 0x72, 0x65, 0x61, 0x43, 0x6f, 0x64, 0x65, + 0x18, 0x1b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x41, + 0x72, 0x65, 0x61, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x4c, 0x61, 0x73, 0x74, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0f, 0x4c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, + 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x49, 0x73, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x63, 0x68, + 0x6f, 0x6f, 0x6c, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x49, 0x73, 0x42, 0x72, 0x61, + 0x6e, 0x63, 0x68, 0x53, 0x63, 0x68, 0x6f, 0x6f, 0x6c, 0x12, 0x24, 0x0a, 0x0d, 0x4f, 0x72, 0x67, + 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x49, 0x64, 0x73, 0x18, 0x1e, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0d, 0x4f, 0x72, 0x67, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x49, 0x64, 0x73, 0x12, + 0x2c, 0x0a, 0x11, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x73, 0x18, 0x1f, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x46, 0x6f, 0x72, 0x63, + 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x16, 0x0a, + 0x06, 0x46, 0x73, 0x62, 0x49, 0x64, 0x73, 0x18, 0x20, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x46, + 0x73, 0x62, 0x49, 0x64, 0x73, 0x12, 0x26, 0x0a, 0x0e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, + 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x21, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x41, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x28, 0x0a, + 0x0f, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x22, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x70, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xc4, 0x02, 0x0a, 0x08, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x41, 0x72, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x50, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x04, 0x50, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x4c, 0x69, 0x6d, 0x69, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1a, + 0x0a, 0x08, 0x41, 0x72, 0x65, 0x61, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x41, 0x72, 0x65, 0x61, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x42, 0x55, + 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x42, 0x55, 0x73, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x4f, 0x72, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x07, 0x4f, 0x72, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x4f, 0x72, 0x67, 0x4e, + 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x4f, 0x72, 0x67, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x58, 0x78, 0x62, 0x78, 0x6c, 0x78, 0x6d, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x58, 0x78, 0x62, 0x78, 0x6c, 0x78, 0x6d, 0x12, 0x1a, 0x0a, 0x08, + 0x42, 0x75, 0x72, 0x65, 0x61, 0x75, 0x49, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x42, 0x75, 0x72, 0x65, 0x61, 0x75, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x49, 0x73, 0x4d, 0x61, + 0x69, 0x6e, 0x53, 0x63, 0x68, 0x6f, 0x6f, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, + 0x49, 0x73, 0x4d, 0x61, 0x69, 0x6e, 0x53, 0x63, 0x68, 0x6f, 0x6f, 0x6c, 0x12, 0x26, 0x0a, 0x0e, + 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x73, + 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x70, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x41, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x65, + 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x53, 0x75, 0x63, 0x63, 0x65, + 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x12, 0x18, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x43, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x12, 0x12, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x72, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, + 0x64, 0x73, 0x41, 0x72, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x03, 0x49, 0x64, 0x73, 0x12, 0x26, 0x0a, 0x0e, 0x41, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x12, + 0x28, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x32, 0xdc, 0x08, 0x0a, 0x16, 0x42, 0x61, + 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x12, 0x56, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x42, 0x61, 0x73, 0x65, 0x4f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x2e, 0x42, 0x61, + 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x67, 0x1a, 0x1c, 0x2e, 0x42, + 0x61, 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x56, 0x0a, 0x13, + 0x41, 0x64, 0x64, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, 0x65, + 0x6c, 0x41, 0x72, 0x67, 0x1a, 0x1c, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, + 0x6c, 0x79, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x16, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x61, + 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, + 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x64, 0x73, + 0x41, 0x72, 0x67, 0x1a, 0x1c, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, + 0x79, 0x22, 0x00, 0x12, 0x59, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x73, + 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x2e, + 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x67, 0x1a, 0x1c, + 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x57, + 0x0a, 0x14, 0x50, 0x61, 0x67, 0x65, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, 0x67, + 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x41, 0x72, 0x67, 0x1a, 0x1c, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, + 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x4d, 0x75, + 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, 0x67, + 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, + 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x72, 0x67, 0x1a, + 0x1c, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, + 0x53, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x42, 0x75, 0x72, 0x65, 0x61, 0x75, 0x4f, 0x72, 0x67, 0x54, + 0x72, 0x65, 0x65, 0x12, 0x1f, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, 0x65, + 0x6c, 0x41, 0x72, 0x67, 0x1a, 0x1c, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, + 0x6c, 0x79, 0x22, 0x00, 0x12, 0x58, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x4d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x72, 0x12, 0x27, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x75, + 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x72, 0x67, 0x1a, 0x1c, + 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x57, + 0x0a, 0x0c, 0x53, 0x65, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x64, 0x75, 0x12, 0x27, + 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x41, 0x72, 0x67, 0x1a, 0x1c, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, + 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x58, 0x0a, 0x0d, 0x53, 0x65, 0x74, 0x44, 0x69, + 0x73, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x64, 0x75, 0x12, 0x27, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x72, + 0x67, 0x1a, 0x1c, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, + 0x00, 0x12, 0x5c, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x72, 0x67, 0x49, 0x6e, 0x66, 0x6f, + 0x42, 0x79, 0x4f, 0x72, 0x67, 0x4b, 0x65, 0x79, 0x57, 0x6f, 0x72, 0x64, 0x12, 0x21, 0x2e, 0x42, + 0x61, 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x72, 0x67, 0x41, 0x72, 0x67, 0x1a, + 0x1c, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, + 0x57, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x64, 0x75, 0x42, 0x79, 0x43, 0x69, 0x74, 0x79, + 0x43, 0x6f, 0x64, 0x65, 0x12, 0x22, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x69, 0x74, + 0x79, 0x43, 0x6f, 0x64, 0x65, 0x41, 0x72, 0x67, 0x1a, 0x1c, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x42, 0x48, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, + 0x64, 0x73, 0x69, 0x64, 0x65, 0x61, 0x6c, 0x2e, 0x64, 0x73, 0x6d, 0x69, 0x6e, 0x2e, 0x62, 0x61, + 0x73, 0x65, 0x42, 0x10, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x01, 0x5a, 0x17, 0x2e, 0x3b, 0x42, 0x61, 0x73, 0x65, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0xa2, + 0x02, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_BaseOrganization_proto_rawDescOnce sync.Once + file_BaseOrganization_proto_rawDescData = file_BaseOrganization_proto_rawDesc +) + +func file_BaseOrganization_proto_rawDescGZIP() []byte { + file_BaseOrganization_proto_rawDescOnce.Do(func() { + file_BaseOrganization_proto_rawDescData = protoimpl.X.CompressGZIP(file_BaseOrganization_proto_rawDescData) + }) + return file_BaseOrganization_proto_rawDescData +} + +var file_BaseOrganization_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_BaseOrganization_proto_goTypes = []interface{}{ + (*CityCodeArg)(nil), // 0: BaseOrganizationProto.CityCodeArg + (*ListOrgArg)(nil), // 1: BaseOrganizationProto.ListOrgArg + (*MultipleQueryArg)(nil), // 2: BaseOrganizationProto.MultipleQueryArg + (*ModelArg)(nil), // 3: BaseOrganizationProto.ModelArg + (*QueryArg)(nil), // 4: BaseOrganizationProto.QueryArg + (*Reply)(nil), // 5: BaseOrganizationProto.Reply + (*DeleteIdsArg)(nil), // 6: BaseOrganizationProto.DeleteIdsArg +} +var file_BaseOrganization_proto_depIdxs = []int32{ + 3, // 0: BaseOrganizationProto.BaseOrganizationManage.GetBaseOrganization:input_type -> BaseOrganizationProto.ModelArg + 3, // 1: BaseOrganizationProto.BaseOrganizationManage.AddBaseOrganization:input_type -> BaseOrganizationProto.ModelArg + 6, // 2: BaseOrganizationProto.BaseOrganizationManage.DeleteBaseOrganization:input_type -> BaseOrganizationProto.DeleteIdsArg + 3, // 3: BaseOrganizationProto.BaseOrganizationManage.UpdateBaseOrganization:input_type -> BaseOrganizationProto.ModelArg + 4, // 4: BaseOrganizationProto.BaseOrganizationManage.PageBaseOrganization:input_type -> BaseOrganizationProto.QueryArg + 2, // 5: BaseOrganizationProto.BaseOrganizationManage.GetMultipleBaseOrganization:input_type -> BaseOrganizationProto.MultipleQueryArg + 3, // 6: BaseOrganizationProto.BaseOrganizationManage.GetBureauOrgTree:input_type -> BaseOrganizationProto.ModelArg + 2, // 7: BaseOrganizationProto.BaseOrganizationManage.GetOrgManager:input_type -> BaseOrganizationProto.MultipleQueryArg + 2, // 8: BaseOrganizationProto.BaseOrganizationManage.SetEnableEdu:input_type -> BaseOrganizationProto.MultipleQueryArg + 2, // 9: BaseOrganizationProto.BaseOrganizationManage.SetDisableEdu:input_type -> BaseOrganizationProto.MultipleQueryArg + 1, // 10: BaseOrganizationProto.BaseOrganizationManage.ListOrgInfoByOrgKeyWord:input_type -> BaseOrganizationProto.ListOrgArg + 0, // 11: BaseOrganizationProto.BaseOrganizationManage.ListEduByCityCode:input_type -> BaseOrganizationProto.CityCodeArg + 5, // 12: BaseOrganizationProto.BaseOrganizationManage.GetBaseOrganization:output_type -> BaseOrganizationProto.Reply + 5, // 13: BaseOrganizationProto.BaseOrganizationManage.AddBaseOrganization:output_type -> BaseOrganizationProto.Reply + 5, // 14: BaseOrganizationProto.BaseOrganizationManage.DeleteBaseOrganization:output_type -> BaseOrganizationProto.Reply + 5, // 15: BaseOrganizationProto.BaseOrganizationManage.UpdateBaseOrganization:output_type -> BaseOrganizationProto.Reply + 5, // 16: BaseOrganizationProto.BaseOrganizationManage.PageBaseOrganization:output_type -> BaseOrganizationProto.Reply + 5, // 17: BaseOrganizationProto.BaseOrganizationManage.GetMultipleBaseOrganization:output_type -> BaseOrganizationProto.Reply + 5, // 18: BaseOrganizationProto.BaseOrganizationManage.GetBureauOrgTree:output_type -> BaseOrganizationProto.Reply + 5, // 19: BaseOrganizationProto.BaseOrganizationManage.GetOrgManager:output_type -> BaseOrganizationProto.Reply + 5, // 20: BaseOrganizationProto.BaseOrganizationManage.SetEnableEdu:output_type -> BaseOrganizationProto.Reply + 5, // 21: BaseOrganizationProto.BaseOrganizationManage.SetDisableEdu:output_type -> BaseOrganizationProto.Reply + 5, // 22: BaseOrganizationProto.BaseOrganizationManage.ListOrgInfoByOrgKeyWord:output_type -> BaseOrganizationProto.Reply + 5, // 23: BaseOrganizationProto.BaseOrganizationManage.ListEduByCityCode:output_type -> BaseOrganizationProto.Reply + 12, // [12:24] is the sub-list for method output_type + 0, // [0:12] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_BaseOrganization_proto_init() } +func file_BaseOrganization_proto_init() { + if File_BaseOrganization_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_BaseOrganization_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CityCodeArg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_BaseOrganization_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListOrgArg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_BaseOrganization_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultipleQueryArg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_BaseOrganization_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ModelArg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_BaseOrganization_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryArg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_BaseOrganization_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_BaseOrganization_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteIdsArg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_BaseOrganization_proto_rawDesc, + NumEnums: 0, + NumMessages: 7, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_BaseOrganization_proto_goTypes, + DependencyIndexes: file_BaseOrganization_proto_depIdxs, + MessageInfos: file_BaseOrganization_proto_msgTypes, + }.Build() + File_BaseOrganization_proto = out.File + file_BaseOrganization_proto_rawDesc = nil + file_BaseOrganization_proto_goTypes = nil + file_BaseOrganization_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// BaseOrganizationManageClient is the client API for BaseOrganizationManage service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type BaseOrganizationManageClient interface { + //获取单条 + GetBaseOrganization(ctx context.Context, in *ModelArg, opts ...grpc.CallOption) (*Reply, error) + //增加 + AddBaseOrganization(ctx context.Context, in *ModelArg, opts ...grpc.CallOption) (*Reply, error) + //删除 + DeleteBaseOrganization(ctx context.Context, in *DeleteIdsArg, opts ...grpc.CallOption) (*Reply, error) + //修改 + UpdateBaseOrganization(ctx context.Context, in *ModelArg, opts ...grpc.CallOption) (*Reply, error) + //查询(分页) + PageBaseOrganization(ctx context.Context, in *QueryArg, opts ...grpc.CallOption) (*Reply, error) + //根据一个或多个orgId获取orgName + GetMultipleBaseOrganization(ctx context.Context, in *MultipleQueryArg, opts ...grpc.CallOption) (*Reply, error) + // 根据单位ID,获取单位及单位下所有的部门,以树状结构体形式返回,配合前端React Ant Design的树状数据结构 + //ModelArg中只传入BureauId一个有用值,因为返回的不是一个List,而是一个JSON数据,所以,扩展了Reply的jsonData字段。 + GetBureauOrgTree(ctx context.Context, in *ModelArg, opts ...grpc.CallOption) (*Reply, error) + //根据一个或多个部门ID获取部门领导 + GetOrgManager(ctx context.Context, in *MultipleQueryArg, opts ...grpc.CallOption) (*Reply, error) + //启用教育局 + SetEnableEdu(ctx context.Context, in *MultipleQueryArg, opts ...grpc.CallOption) (*Reply, error) + //禁用教育局 + SetDisableEdu(ctx context.Context, in *MultipleQueryArg, opts ...grpc.CallOption) (*Reply, error) + //根据单位名称的关键字和管理员的人员ID查询单位列表 + ListOrgInfoByOrgKeyWord(ctx context.Context, in *ListOrgArg, opts ...grpc.CallOption) (*Reply, error) + //根据市的行政区划码获取教育局列表 + ListEduByCityCode(ctx context.Context, in *CityCodeArg, opts ...grpc.CallOption) (*Reply, error) +} + +type baseOrganizationManageClient struct { + cc grpc.ClientConnInterface +} + +func NewBaseOrganizationManageClient(cc grpc.ClientConnInterface) BaseOrganizationManageClient { + return &baseOrganizationManageClient{cc} +} + +func (c *baseOrganizationManageClient) GetBaseOrganization(ctx context.Context, in *ModelArg, opts ...grpc.CallOption) (*Reply, error) { + out := new(Reply) + err := c.cc.Invoke(ctx, "/BaseOrganizationProto.BaseOrganizationManage/GetBaseOrganization", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *baseOrganizationManageClient) AddBaseOrganization(ctx context.Context, in *ModelArg, opts ...grpc.CallOption) (*Reply, error) { + out := new(Reply) + err := c.cc.Invoke(ctx, "/BaseOrganizationProto.BaseOrganizationManage/AddBaseOrganization", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *baseOrganizationManageClient) DeleteBaseOrganization(ctx context.Context, in *DeleteIdsArg, opts ...grpc.CallOption) (*Reply, error) { + out := new(Reply) + err := c.cc.Invoke(ctx, "/BaseOrganizationProto.BaseOrganizationManage/DeleteBaseOrganization", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *baseOrganizationManageClient) UpdateBaseOrganization(ctx context.Context, in *ModelArg, opts ...grpc.CallOption) (*Reply, error) { + out := new(Reply) + err := c.cc.Invoke(ctx, "/BaseOrganizationProto.BaseOrganizationManage/UpdateBaseOrganization", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *baseOrganizationManageClient) PageBaseOrganization(ctx context.Context, in *QueryArg, opts ...grpc.CallOption) (*Reply, error) { + out := new(Reply) + err := c.cc.Invoke(ctx, "/BaseOrganizationProto.BaseOrganizationManage/PageBaseOrganization", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *baseOrganizationManageClient) GetMultipleBaseOrganization(ctx context.Context, in *MultipleQueryArg, opts ...grpc.CallOption) (*Reply, error) { + out := new(Reply) + err := c.cc.Invoke(ctx, "/BaseOrganizationProto.BaseOrganizationManage/GetMultipleBaseOrganization", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *baseOrganizationManageClient) GetBureauOrgTree(ctx context.Context, in *ModelArg, opts ...grpc.CallOption) (*Reply, error) { + out := new(Reply) + err := c.cc.Invoke(ctx, "/BaseOrganizationProto.BaseOrganizationManage/GetBureauOrgTree", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *baseOrganizationManageClient) GetOrgManager(ctx context.Context, in *MultipleQueryArg, opts ...grpc.CallOption) (*Reply, error) { + out := new(Reply) + err := c.cc.Invoke(ctx, "/BaseOrganizationProto.BaseOrganizationManage/GetOrgManager", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *baseOrganizationManageClient) SetEnableEdu(ctx context.Context, in *MultipleQueryArg, opts ...grpc.CallOption) (*Reply, error) { + out := new(Reply) + err := c.cc.Invoke(ctx, "/BaseOrganizationProto.BaseOrganizationManage/SetEnableEdu", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *baseOrganizationManageClient) SetDisableEdu(ctx context.Context, in *MultipleQueryArg, opts ...grpc.CallOption) (*Reply, error) { + out := new(Reply) + err := c.cc.Invoke(ctx, "/BaseOrganizationProto.BaseOrganizationManage/SetDisableEdu", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *baseOrganizationManageClient) ListOrgInfoByOrgKeyWord(ctx context.Context, in *ListOrgArg, opts ...grpc.CallOption) (*Reply, error) { + out := new(Reply) + err := c.cc.Invoke(ctx, "/BaseOrganizationProto.BaseOrganizationManage/ListOrgInfoByOrgKeyWord", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *baseOrganizationManageClient) ListEduByCityCode(ctx context.Context, in *CityCodeArg, opts ...grpc.CallOption) (*Reply, error) { + out := new(Reply) + err := c.cc.Invoke(ctx, "/BaseOrganizationProto.BaseOrganizationManage/ListEduByCityCode", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// BaseOrganizationManageServer is the server API for BaseOrganizationManage service. +type BaseOrganizationManageServer interface { + //获取单条 + GetBaseOrganization(context.Context, *ModelArg) (*Reply, error) + //增加 + AddBaseOrganization(context.Context, *ModelArg) (*Reply, error) + //删除 + DeleteBaseOrganization(context.Context, *DeleteIdsArg) (*Reply, error) + //修改 + UpdateBaseOrganization(context.Context, *ModelArg) (*Reply, error) + //查询(分页) + PageBaseOrganization(context.Context, *QueryArg) (*Reply, error) + //根据一个或多个orgId获取orgName + GetMultipleBaseOrganization(context.Context, *MultipleQueryArg) (*Reply, error) + // 根据单位ID,获取单位及单位下所有的部门,以树状结构体形式返回,配合前端React Ant Design的树状数据结构 + //ModelArg中只传入BureauId一个有用值,因为返回的不是一个List,而是一个JSON数据,所以,扩展了Reply的jsonData字段。 + GetBureauOrgTree(context.Context, *ModelArg) (*Reply, error) + //根据一个或多个部门ID获取部门领导 + GetOrgManager(context.Context, *MultipleQueryArg) (*Reply, error) + //启用教育局 + SetEnableEdu(context.Context, *MultipleQueryArg) (*Reply, error) + //禁用教育局 + SetDisableEdu(context.Context, *MultipleQueryArg) (*Reply, error) + //根据单位名称的关键字和管理员的人员ID查询单位列表 + ListOrgInfoByOrgKeyWord(context.Context, *ListOrgArg) (*Reply, error) + //根据市的行政区划码获取教育局列表 + ListEduByCityCode(context.Context, *CityCodeArg) (*Reply, error) +} + +// UnimplementedBaseOrganizationManageServer can be embedded to have forward compatible implementations. +type UnimplementedBaseOrganizationManageServer struct { +} + +func (*UnimplementedBaseOrganizationManageServer) GetBaseOrganization(context.Context, *ModelArg) (*Reply, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetBaseOrganization not implemented") +} +func (*UnimplementedBaseOrganizationManageServer) AddBaseOrganization(context.Context, *ModelArg) (*Reply, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddBaseOrganization not implemented") +} +func (*UnimplementedBaseOrganizationManageServer) DeleteBaseOrganization(context.Context, *DeleteIdsArg) (*Reply, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteBaseOrganization not implemented") +} +func (*UnimplementedBaseOrganizationManageServer) UpdateBaseOrganization(context.Context, *ModelArg) (*Reply, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateBaseOrganization not implemented") +} +func (*UnimplementedBaseOrganizationManageServer) PageBaseOrganization(context.Context, *QueryArg) (*Reply, error) { + return nil, status.Errorf(codes.Unimplemented, "method PageBaseOrganization not implemented") +} +func (*UnimplementedBaseOrganizationManageServer) GetMultipleBaseOrganization(context.Context, *MultipleQueryArg) (*Reply, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetMultipleBaseOrganization not implemented") +} +func (*UnimplementedBaseOrganizationManageServer) GetBureauOrgTree(context.Context, *ModelArg) (*Reply, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetBureauOrgTree not implemented") +} +func (*UnimplementedBaseOrganizationManageServer) GetOrgManager(context.Context, *MultipleQueryArg) (*Reply, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetOrgManager not implemented") +} +func (*UnimplementedBaseOrganizationManageServer) SetEnableEdu(context.Context, *MultipleQueryArg) (*Reply, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetEnableEdu not implemented") +} +func (*UnimplementedBaseOrganizationManageServer) SetDisableEdu(context.Context, *MultipleQueryArg) (*Reply, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetDisableEdu not implemented") +} +func (*UnimplementedBaseOrganizationManageServer) ListOrgInfoByOrgKeyWord(context.Context, *ListOrgArg) (*Reply, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListOrgInfoByOrgKeyWord not implemented") +} +func (*UnimplementedBaseOrganizationManageServer) ListEduByCityCode(context.Context, *CityCodeArg) (*Reply, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListEduByCityCode not implemented") +} + +func RegisterBaseOrganizationManageServer(s *grpc.Server, srv BaseOrganizationManageServer) { + s.RegisterService(&_BaseOrganizationManage_serviceDesc, srv) +} + +func _BaseOrganizationManage_GetBaseOrganization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ModelArg) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BaseOrganizationManageServer).GetBaseOrganization(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/BaseOrganizationProto.BaseOrganizationManage/GetBaseOrganization", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BaseOrganizationManageServer).GetBaseOrganization(ctx, req.(*ModelArg)) + } + return interceptor(ctx, in, info, handler) +} + +func _BaseOrganizationManage_AddBaseOrganization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ModelArg) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BaseOrganizationManageServer).AddBaseOrganization(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/BaseOrganizationProto.BaseOrganizationManage/AddBaseOrganization", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BaseOrganizationManageServer).AddBaseOrganization(ctx, req.(*ModelArg)) + } + return interceptor(ctx, in, info, handler) +} + +func _BaseOrganizationManage_DeleteBaseOrganization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteIdsArg) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BaseOrganizationManageServer).DeleteBaseOrganization(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/BaseOrganizationProto.BaseOrganizationManage/DeleteBaseOrganization", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BaseOrganizationManageServer).DeleteBaseOrganization(ctx, req.(*DeleteIdsArg)) + } + return interceptor(ctx, in, info, handler) +} + +func _BaseOrganizationManage_UpdateBaseOrganization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ModelArg) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BaseOrganizationManageServer).UpdateBaseOrganization(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/BaseOrganizationProto.BaseOrganizationManage/UpdateBaseOrganization", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BaseOrganizationManageServer).UpdateBaseOrganization(ctx, req.(*ModelArg)) + } + return interceptor(ctx, in, info, handler) +} + +func _BaseOrganizationManage_PageBaseOrganization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryArg) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BaseOrganizationManageServer).PageBaseOrganization(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/BaseOrganizationProto.BaseOrganizationManage/PageBaseOrganization", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BaseOrganizationManageServer).PageBaseOrganization(ctx, req.(*QueryArg)) + } + return interceptor(ctx, in, info, handler) +} + +func _BaseOrganizationManage_GetMultipleBaseOrganization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MultipleQueryArg) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BaseOrganizationManageServer).GetMultipleBaseOrganization(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/BaseOrganizationProto.BaseOrganizationManage/GetMultipleBaseOrganization", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BaseOrganizationManageServer).GetMultipleBaseOrganization(ctx, req.(*MultipleQueryArg)) + } + return interceptor(ctx, in, info, handler) +} + +func _BaseOrganizationManage_GetBureauOrgTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ModelArg) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BaseOrganizationManageServer).GetBureauOrgTree(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/BaseOrganizationProto.BaseOrganizationManage/GetBureauOrgTree", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BaseOrganizationManageServer).GetBureauOrgTree(ctx, req.(*ModelArg)) + } + return interceptor(ctx, in, info, handler) +} + +func _BaseOrganizationManage_GetOrgManager_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MultipleQueryArg) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BaseOrganizationManageServer).GetOrgManager(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/BaseOrganizationProto.BaseOrganizationManage/GetOrgManager", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BaseOrganizationManageServer).GetOrgManager(ctx, req.(*MultipleQueryArg)) + } + return interceptor(ctx, in, info, handler) +} + +func _BaseOrganizationManage_SetEnableEdu_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MultipleQueryArg) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BaseOrganizationManageServer).SetEnableEdu(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/BaseOrganizationProto.BaseOrganizationManage/SetEnableEdu", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BaseOrganizationManageServer).SetEnableEdu(ctx, req.(*MultipleQueryArg)) + } + return interceptor(ctx, in, info, handler) +} + +func _BaseOrganizationManage_SetDisableEdu_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MultipleQueryArg) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BaseOrganizationManageServer).SetDisableEdu(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/BaseOrganizationProto.BaseOrganizationManage/SetDisableEdu", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BaseOrganizationManageServer).SetDisableEdu(ctx, req.(*MultipleQueryArg)) + } + return interceptor(ctx, in, info, handler) +} + +func _BaseOrganizationManage_ListOrgInfoByOrgKeyWord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListOrgArg) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BaseOrganizationManageServer).ListOrgInfoByOrgKeyWord(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/BaseOrganizationProto.BaseOrganizationManage/ListOrgInfoByOrgKeyWord", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BaseOrganizationManageServer).ListOrgInfoByOrgKeyWord(ctx, req.(*ListOrgArg)) + } + return interceptor(ctx, in, info, handler) +} + +func _BaseOrganizationManage_ListEduByCityCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CityCodeArg) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BaseOrganizationManageServer).ListEduByCityCode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/BaseOrganizationProto.BaseOrganizationManage/ListEduByCityCode", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BaseOrganizationManageServer).ListEduByCityCode(ctx, req.(*CityCodeArg)) + } + return interceptor(ctx, in, info, handler) +} + +var _BaseOrganizationManage_serviceDesc = grpc.ServiceDesc{ + ServiceName: "BaseOrganizationProto.BaseOrganizationManage", + HandlerType: (*BaseOrganizationManageServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetBaseOrganization", + Handler: _BaseOrganizationManage_GetBaseOrganization_Handler, + }, + { + MethodName: "AddBaseOrganization", + Handler: _BaseOrganizationManage_AddBaseOrganization_Handler, + }, + { + MethodName: "DeleteBaseOrganization", + Handler: _BaseOrganizationManage_DeleteBaseOrganization_Handler, + }, + { + MethodName: "UpdateBaseOrganization", + Handler: _BaseOrganizationManage_UpdateBaseOrganization_Handler, + }, + { + MethodName: "PageBaseOrganization", + Handler: _BaseOrganizationManage_PageBaseOrganization_Handler, + }, + { + MethodName: "GetMultipleBaseOrganization", + Handler: _BaseOrganizationManage_GetMultipleBaseOrganization_Handler, + }, + { + MethodName: "GetBureauOrgTree", + Handler: _BaseOrganizationManage_GetBureauOrgTree_Handler, + }, + { + MethodName: "GetOrgManager", + Handler: _BaseOrganizationManage_GetOrgManager_Handler, + }, + { + MethodName: "SetEnableEdu", + Handler: _BaseOrganizationManage_SetEnableEdu_Handler, + }, + { + MethodName: "SetDisableEdu", + Handler: _BaseOrganizationManage_SetDisableEdu_Handler, + }, + { + MethodName: "ListOrgInfoByOrgKeyWord", + Handler: _BaseOrganizationManage_ListOrgInfoByOrgKeyWord_Handler, + }, + { + MethodName: "ListEduByCityCode", + Handler: _BaseOrganizationManage_ListEduByCityCode_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "BaseOrganization.proto", +} diff --git a/dsSupport/MyModel/AccessSystem/AccessSystemProto/BaseOrganizationProto/BaseOrganization.proto b/dsSupport/MyModel/AccessSystem/AccessSystemProto/BaseOrganizationProto/BaseOrganization.proto new file mode 100644 index 00000000..03f1288f --- /dev/null +++ b/dsSupport/MyModel/AccessSystem/AccessSystemProto/BaseOrganizationProto/BaseOrganization.proto @@ -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; +} \ No newline at end of file diff --git a/dsSupport/MyModel/AccessSystem/AccessSystemRpc/BaseOrganizationService/BaseOrganizationService.go b/dsSupport/MyModel/AccessSystem/AccessSystemRpc/BaseOrganizationService/BaseOrganizationService.go new file mode 100644 index 00000000..1a61b3fb --- /dev/null +++ b/dsSupport/MyModel/AccessSystem/AccessSystemRpc/BaseOrganizationService/BaseOrganizationService.go @@ -0,0 +1,19 @@ +package BaseOrganizationService + +import ( + "dsSupport/MyModel/AccessSystem/AccessSystemProto/BaseOrganizationProto" + "dsSupport/Utils/CommonUtil" +) + +func GetOrganizationList(page int32, limit int32, areaCode string, orgType int32, orgName string) (*BaseOrganizationProto.Reply, error) { + Reply, err := PageBaseOrganization(BaseOrganizationProto.QueryArg{Page: page, Limit: limit, AreaCode: areaCode, OrgName: orgName, OrgType: orgType, BUse: 1}) + handleListStr := CommonUtil.ListMerge(Reply.List, GetOrgTypeArr(), "org_type", "type_id", "org_type_name", "type_name") + Reply.List = handleListStr + return Reply, err +} + +func GetOrgTypeArr() string { + orgTypeArr := "[{\"type_id\":1,\"type_name\":\"教育局\"},{\"type_id\":2,\"type_name\":\"学校\"},{\"type_id\":7,\"type_name\":\"教辅单位\"}]" + return orgTypeArr + +} diff --git a/dsSupport/MyModel/AccessSystem/AccessSystemRpc/BaseOrganizationService/BaseOrganizationServiceRpc.go b/dsSupport/MyModel/AccessSystem/AccessSystemRpc/BaseOrganizationService/BaseOrganizationServiceRpc.go new file mode 100644 index 00000000..d8f8cac3 --- /dev/null +++ b/dsSupport/MyModel/AccessSystem/AccessSystemRpc/BaseOrganizationService/BaseOrganizationServiceRpc.go @@ -0,0 +1,32 @@ +package BaseOrganizationService + +import ( + "context" + "dsSupport/MyModel/AccessSystem/AccessSystemProto/BaseOrganizationProto" + "dsSupport/Utils/GRpcUtil" + "dsSupport/Utils/LogUtil" + "errors" + "time" +) + +/** +功能:获取组织机构列表 +作者:吴缤 +日期:2020-05-22 +*/ +func PageBaseOrganization(queryArg BaseOrganizationProto.QueryArg) (*BaseOrganizationProto.Reply, error) { + //1、准备动作:连接服务器 + ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) + defer cancel() + conn := GRpcUtil.GetConnection() + if conn == nil { + return nil, errors.New("RPC服务未启动!") + } + //2、业务传参 + c := BaseOrganizationProto.NewBaseOrganizationManageClient(conn) + Reply, err := c.PageBaseOrganization(ctx, &queryArg) + if err != nil { + LogUtil.Error("获取组织机构列表错误: ", err.Error()) + } + return Reply, err +} \ No newline at end of file diff --git a/dsSupport/docs/docs.go b/dsSupport/docs/docs.go index 1ef24380..33fe7399 100644 --- a/dsSupport/docs/docs.go +++ b/dsSupport/docs/docs.go @@ -1,6 +1,6 @@ // GENERATED BY THE COMMAND ABOVE; DO NOT EDIT // This file was generated by swaggo/swag at -// 2020-09-17 08:09:16.5994261 +0800 CST m=+0.099943401 +// 2020-09-17 08:24:52.1714344 +0800 CST m=+0.102940801 package docs @@ -558,7 +558,7 @@ var doc = `{ }, "/support/accessSystem/GetOrganizationList": { "get": { - "description": "获取行政区划信息", + "description": "获取单位列表", "consumes": [ "application/x-www-form-urlencoded" ], @@ -568,7 +568,7 @@ var doc = `{ "tags": [ "接入系统" ], - "summary": "获取行政区划信息", + "summary": "获取单位列表", "parameters": [ { "type": "integer", diff --git a/dsSupport/docs/swagger.json b/dsSupport/docs/swagger.json index ca625d65..f4529024 100644 --- a/dsSupport/docs/swagger.json +++ b/dsSupport/docs/swagger.json @@ -541,7 +541,7 @@ }, "/support/accessSystem/GetOrganizationList": { "get": { - "description": "获取行政区划信息", + "description": "获取单位列表", "consumes": [ "application/x-www-form-urlencoded" ], @@ -551,7 +551,7 @@ "tags": [ "接入系统" ], - "summary": "获取行政区划信息", + "summary": "获取单位列表", "parameters": [ { "type": "integer", diff --git a/dsSupport/docs/swagger.yaml b/dsSupport/docs/swagger.yaml index 1b9ac773..4b5a92ea 100644 --- a/dsSupport/docs/swagger.yaml +++ b/dsSupport/docs/swagger.yaml @@ -688,7 +688,7 @@ paths: get: consumes: - application/x-www-form-urlencoded - description: 获取行政区划信息 + description: 获取单位列表 parameters: - description: 第几页 in: query @@ -721,7 +721,7 @@ paths: description: OK schema: $ref: '#/definitions/Model.Res' - summary: 获取行政区划信息 + summary: 获取单位列表 tags: - 接入系统 x-emptylimit: