|
@@ -0,0 +1,713 @@
|
|
|
+// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
+// versions:
|
|
|
+// protoc-gen-go v1.26.0
|
|
|
+// protoc v3.15.1
|
|
|
+// source: resourcesCenter.proto
|
|
|
+
|
|
|
+package resourcesCenter
|
|
|
+
|
|
|
+import (
|
|
|
+ context "context"
|
|
|
+ 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)
|
|
|
+)
|
|
|
+
|
|
|
+type OrganRequest struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` //组织名称
|
|
|
+ ShortName string `protobuf:"bytes,2,opt,name=shortName,proto3" json:"shortName,omitempty"` //组织简称
|
|
|
+ ContactPerson string `protobuf:"bytes,3,opt,name=contactPerson,proto3" json:"contactPerson,omitempty"` //组织联系人
|
|
|
+ ContactPhone string `protobuf:"bytes,4,opt,name=contactPhone,proto3" json:"contactPhone,omitempty"` //组织联系人手机号
|
|
|
+ ParentId int64 `protobuf:"varint,5,opt,name=parentId,proto3" json:"parentId,omitempty"` //上级部门ID
|
|
|
+ CompanyId int64 `protobuf:"varint,6,opt,name=companyId,proto3" json:"companyId,omitempty"` //企业信息ID
|
|
|
+ Id int64 `protobuf:"varint,7,opt,name=id,proto3" json:"id,omitempty"` //组织ID
|
|
|
+}
|
|
|
+
|
|
|
+func (x *OrganRequest) Reset() {
|
|
|
+ *x = OrganRequest{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_resourcesCenter_proto_msgTypes[0]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *OrganRequest) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*OrganRequest) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *OrganRequest) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_resourcesCenter_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 OrganRequest.ProtoReflect.Descriptor instead.
|
|
|
+func (*OrganRequest) Descriptor() ([]byte, []int) {
|
|
|
+ return file_resourcesCenter_proto_rawDescGZIP(), []int{0}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *OrganRequest) GetName() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Name
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *OrganRequest) GetShortName() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.ShortName
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *OrganRequest) GetContactPerson() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.ContactPerson
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *OrganRequest) GetContactPhone() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.ContactPhone
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *OrganRequest) GetParentId() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.ParentId
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *OrganRequest) GetCompanyId() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.CompanyId
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *OrganRequest) GetId() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.Id
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+type CompanyOrganResponse struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
|
|
|
+ Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
|
|
|
+ Data []*CompanyOrgan `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CompanyOrganResponse) Reset() {
|
|
|
+ *x = CompanyOrganResponse{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_resourcesCenter_proto_msgTypes[1]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CompanyOrganResponse) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*CompanyOrganResponse) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *CompanyOrganResponse) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_resourcesCenter_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 CompanyOrganResponse.ProtoReflect.Descriptor instead.
|
|
|
+func (*CompanyOrganResponse) Descriptor() ([]byte, []int) {
|
|
|
+ return file_resourcesCenter_proto_rawDescGZIP(), []int{1}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CompanyOrganResponse) GetCode() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.Code
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CompanyOrganResponse) GetMessage() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Message
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CompanyOrganResponse) GetData() []*CompanyOrgan {
|
|
|
+ if x != nil {
|
|
|
+ return x.Data
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+type CompanyOrgan struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` //组织名称
|
|
|
+ ShortName string `protobuf:"bytes,2,opt,name=shortName,proto3" json:"shortName,omitempty"` //组织简称
|
|
|
+ ContactPerson string `protobuf:"bytes,3,opt,name=contactPerson,proto3" json:"contactPerson,omitempty"` //组织联系人
|
|
|
+ ContactPhone string `protobuf:"bytes,4,opt,name=contactPhone,proto3" json:"contactPhone,omitempty"` //组织联系人手机号
|
|
|
+ ParentId int64 `protobuf:"varint,5,opt,name=parentId,proto3" json:"parentId,omitempty"` //上级部门ID
|
|
|
+ CompanyId int64 `protobuf:"varint,6,opt,name=companyId,proto3" json:"companyId,omitempty"` //企业信息ID
|
|
|
+ State bool `protobuf:"varint,7,opt,name=state,proto3" json:"state,omitempty"`
|
|
|
+ CreateAt string `protobuf:"bytes,8,opt,name=createAt,proto3" json:"createAt,omitempty"`
|
|
|
+ UpdateAt string `protobuf:"bytes,9,opt,name=updateAt,proto3" json:"updateAt,omitempty"`
|
|
|
+ DeleteAt string `protobuf:"bytes,10,opt,name=deleteAt,proto3" json:"deleteAt,omitempty"`
|
|
|
+ Id int64 `protobuf:"varint,11,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CompanyOrgan) Reset() {
|
|
|
+ *x = CompanyOrgan{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_resourcesCenter_proto_msgTypes[2]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CompanyOrgan) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*CompanyOrgan) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *CompanyOrgan) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_resourcesCenter_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 CompanyOrgan.ProtoReflect.Descriptor instead.
|
|
|
+func (*CompanyOrgan) Descriptor() ([]byte, []int) {
|
|
|
+ return file_resourcesCenter_proto_rawDescGZIP(), []int{2}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CompanyOrgan) GetName() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Name
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CompanyOrgan) GetShortName() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.ShortName
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CompanyOrgan) GetContactPerson() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.ContactPerson
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CompanyOrgan) GetContactPhone() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.ContactPhone
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CompanyOrgan) GetParentId() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.ParentId
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CompanyOrgan) GetCompanyId() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.CompanyId
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CompanyOrgan) GetState() bool {
|
|
|
+ if x != nil {
|
|
|
+ return x.State
|
|
|
+ }
|
|
|
+ return false
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CompanyOrgan) GetCreateAt() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.CreateAt
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CompanyOrgan) GetUpdateAt() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.UpdateAt
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CompanyOrgan) GetDeleteAt() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.DeleteAt
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CompanyOrgan) GetId() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.Id
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+type Organ struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` //组织名称
|
|
|
+ ShortName string `protobuf:"bytes,2,opt,name=shortName,proto3" json:"shortName,omitempty"` //组织简称
|
|
|
+ ContactPerson string `protobuf:"bytes,3,opt,name=contactPerson,proto3" json:"contactPerson,omitempty"` //组织联系人
|
|
|
+ ContactPhone string `protobuf:"bytes,4,opt,name=contactPhone,proto3" json:"contactPhone,omitempty"` //组织联系人手机号
|
|
|
+ ParentId int64 `protobuf:"varint,5,opt,name=parentId,proto3" json:"parentId,omitempty"` //上级部门ID
|
|
|
+ CompanyId int64 `protobuf:"varint,6,opt,name=companyId,proto3" json:"companyId,omitempty"` //企业信息ID
|
|
|
+ State bool `protobuf:"varint,7,opt,name=state,proto3" json:"state,omitempty"`
|
|
|
+ CreateAt string `protobuf:"bytes,8,opt,name=createAt,proto3" json:"createAt,omitempty"`
|
|
|
+ UpdateAt string `protobuf:"bytes,9,opt,name=updateAt,proto3" json:"updateAt,omitempty"`
|
|
|
+ DeleteAt string `protobuf:"bytes,10,opt,name=deleteAt,proto3" json:"deleteAt,omitempty"`
|
|
|
+ Id int64 `protobuf:"varint,11,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
+ Data []*Organ `protobuf:"bytes,12,rep,name=data,proto3" json:"data,omitempty"` //列表
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Organ) Reset() {
|
|
|
+ *x = Organ{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_resourcesCenter_proto_msgTypes[3]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Organ) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*Organ) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *Organ) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_resourcesCenter_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 Organ.ProtoReflect.Descriptor instead.
|
|
|
+func (*Organ) Descriptor() ([]byte, []int) {
|
|
|
+ return file_resourcesCenter_proto_rawDescGZIP(), []int{3}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Organ) GetName() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Name
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Organ) GetShortName() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.ShortName
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Organ) GetContactPerson() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.ContactPerson
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Organ) GetContactPhone() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.ContactPhone
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Organ) GetParentId() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.ParentId
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Organ) GetCompanyId() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.CompanyId
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Organ) GetState() bool {
|
|
|
+ if x != nil {
|
|
|
+ return x.State
|
|
|
+ }
|
|
|
+ return false
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Organ) GetCreateAt() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.CreateAt
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Organ) GetUpdateAt() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.UpdateAt
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Organ) GetDeleteAt() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.DeleteAt
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Organ) GetId() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.Id
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Organ) GetData() []*Organ {
|
|
|
+ if x != nil {
|
|
|
+ return x.Data
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+var File_resourcesCenter_proto protoreflect.FileDescriptor
|
|
|
+
|
|
|
+var file_resourcesCenter_proto_rawDesc = []byte{
|
|
|
+ 0x0a, 0x15, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65,
|
|
|
+ 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
|
|
|
+ 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x22, 0xd4, 0x01, 0x0a, 0x0c, 0x4f, 0x72, 0x67,
|
|
|
+ 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
|
|
|
+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a,
|
|
|
+ 0x09, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
|
+ 0x52, 0x09, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x63,
|
|
|
+ 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01,
|
|
|
+ 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x50, 0x65, 0x72, 0x73, 0x6f,
|
|
|
+ 0x6e, 0x12, 0x22, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x50, 0x68, 0x6f, 0x6e,
|
|
|
+ 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74,
|
|
|
+ 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49,
|
|
|
+ 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49,
|
|
|
+ 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x18, 0x06,
|
|
|
+ 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x12,
|
|
|
+ 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22,
|
|
|
+ 0x77, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x52,
|
|
|
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18,
|
|
|
+ 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d,
|
|
|
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65,
|
|
|
+ 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x31, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20,
|
|
|
+ 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43,
|
|
|
+ 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x4f, 0x72, 0x67,
|
|
|
+ 0x61, 0x6e, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xbe, 0x02, 0x0a, 0x0c, 0x43, 0x6f, 0x6d,
|
|
|
+ 0x70, 0x61, 0x6e, 0x79, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
|
|
|
+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a,
|
|
|
+ 0x09, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
|
+ 0x52, 0x09, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x63,
|
|
|
+ 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01,
|
|
|
+ 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x50, 0x65, 0x72, 0x73, 0x6f,
|
|
|
+ 0x6e, 0x12, 0x22, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x50, 0x68, 0x6f, 0x6e,
|
|
|
+ 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74,
|
|
|
+ 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49,
|
|
|
+ 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49,
|
|
|
+ 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x18, 0x06,
|
|
|
+ 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x12,
|
|
|
+ 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05,
|
|
|
+ 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41,
|
|
|
+ 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41,
|
|
|
+ 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x74, 0x18, 0x09, 0x20,
|
|
|
+ 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x74, 0x12, 0x1a, 0x0a,
|
|
|
+ 0x08, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
+ 0x08, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
|
|
|
+ 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22, 0xe3, 0x02, 0x0a, 0x05, 0x4f, 0x72,
|
|
|
+ 0x67, 0x61, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
+ 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x68, 0x6f, 0x72, 0x74,
|
|
|
+ 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x68, 0x6f, 0x72,
|
|
|
+ 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74,
|
|
|
+ 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f,
|
|
|
+ 0x6e, 0x74, 0x61, 0x63, 0x74, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0c, 0x63,
|
|
|
+ 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
|
|
|
+ 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12,
|
|
|
+ 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28,
|
|
|
+ 0x03, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63,
|
|
|
+ 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
|
|
|
+ 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61,
|
|
|
+ 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12,
|
|
|
+ 0x1a, 0x0a, 0x08, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28,
|
|
|
+ 0x09, 0x52, 0x08, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75,
|
|
|
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75,
|
|
|
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x6c, 0x65, 0x74,
|
|
|
+ 0x65, 0x41, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x65, 0x6c, 0x65, 0x74,
|
|
|
+ 0x65, 0x41, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52,
|
|
|
+ 0x02, 0x69, 0x64, 0x12, 0x2a, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0c, 0x20, 0x03, 0x28,
|
|
|
+ 0x0b, 0x32, 0x16, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e,
|
|
|
+ 0x74, 0x65, 0x72, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32,
|
|
|
+ 0x6b, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74,
|
|
|
+ 0x65, 0x72, 0x12, 0x58, 0x0a, 0x10, 0x66, 0x69, 0x6e, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e,
|
|
|
+ 0x79, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x12, 0x1d, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
|
|
|
+ 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x52, 0x65,
|
|
|
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
|
|
|
+ 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x4f,
|
|
|
+ 0x72, 0x67, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x12, 0x5a, 0x10,
|
|
|
+ 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f,
|
|
|
+ 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
+}
|
|
|
+
|
|
|
+var (
|
|
|
+ file_resourcesCenter_proto_rawDescOnce sync.Once
|
|
|
+ file_resourcesCenter_proto_rawDescData = file_resourcesCenter_proto_rawDesc
|
|
|
+)
|
|
|
+
|
|
|
+func file_resourcesCenter_proto_rawDescGZIP() []byte {
|
|
|
+ file_resourcesCenter_proto_rawDescOnce.Do(func() {
|
|
|
+ file_resourcesCenter_proto_rawDescData = protoimpl.X.CompressGZIP(file_resourcesCenter_proto_rawDescData)
|
|
|
+ })
|
|
|
+ return file_resourcesCenter_proto_rawDescData
|
|
|
+}
|
|
|
+
|
|
|
+var file_resourcesCenter_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
|
+var file_resourcesCenter_proto_goTypes = []interface{}{
|
|
|
+ (*OrganRequest)(nil), // 0: resourcesCenter.OrganRequest
|
|
|
+ (*CompanyOrganResponse)(nil), // 1: resourcesCenter.CompanyOrganResponse
|
|
|
+ (*CompanyOrgan)(nil), // 2: resourcesCenter.CompanyOrgan
|
|
|
+ (*Organ)(nil), // 3: resourcesCenter.Organ
|
|
|
+}
|
|
|
+var file_resourcesCenter_proto_depIdxs = []int32{
|
|
|
+ 2, // 0: resourcesCenter.CompanyOrganResponse.data:type_name -> resourcesCenter.CompanyOrgan
|
|
|
+ 3, // 1: resourcesCenter.Organ.data:type_name -> resourcesCenter.Organ
|
|
|
+ 0, // 2: resourcesCenter.ResourcesCenter.findCompanyOrgan:input_type -> resourcesCenter.OrganRequest
|
|
|
+ 1, // 3: resourcesCenter.ResourcesCenter.findCompanyOrgan:output_type -> resourcesCenter.CompanyOrganResponse
|
|
|
+ 3, // [3:4] is the sub-list for method output_type
|
|
|
+ 2, // [2:3] is the sub-list for method input_type
|
|
|
+ 2, // [2:2] is the sub-list for extension type_name
|
|
|
+ 2, // [2:2] is the sub-list for extension extendee
|
|
|
+ 0, // [0:2] is the sub-list for field type_name
|
|
|
+}
|
|
|
+
|
|
|
+func init() { file_resourcesCenter_proto_init() }
|
|
|
+func file_resourcesCenter_proto_init() {
|
|
|
+ if File_resourcesCenter_proto != nil {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if !protoimpl.UnsafeEnabled {
|
|
|
+ file_resourcesCenter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*OrganRequest); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_resourcesCenter_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*CompanyOrganResponse); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_resourcesCenter_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*CompanyOrgan); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_resourcesCenter_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*Organ); 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_resourcesCenter_proto_rawDesc,
|
|
|
+ NumEnums: 0,
|
|
|
+ NumMessages: 4,
|
|
|
+ NumExtensions: 0,
|
|
|
+ NumServices: 1,
|
|
|
+ },
|
|
|
+ GoTypes: file_resourcesCenter_proto_goTypes,
|
|
|
+ DependencyIndexes: file_resourcesCenter_proto_depIdxs,
|
|
|
+ MessageInfos: file_resourcesCenter_proto_msgTypes,
|
|
|
+ }.Build()
|
|
|
+ File_resourcesCenter_proto = out.File
|
|
|
+ file_resourcesCenter_proto_rawDesc = nil
|
|
|
+ file_resourcesCenter_proto_goTypes = nil
|
|
|
+ file_resourcesCenter_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
|
|
|
+
|
|
|
+// ResourcesCenterClient is the client API for ResourcesCenter service.
|
|
|
+//
|
|
|
+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
+type ResourcesCenterClient interface {
|
|
|
+ //查询用户组织信息
|
|
|
+ FindCompanyOrgan(ctx context.Context, in *OrganRequest, opts ...grpc.CallOption) (*CompanyOrganResponse, error)
|
|
|
+}
|
|
|
+
|
|
|
+type resourcesCenterClient struct {
|
|
|
+ cc grpc.ClientConnInterface
|
|
|
+}
|
|
|
+
|
|
|
+func NewResourcesCenterClient(cc grpc.ClientConnInterface) ResourcesCenterClient {
|
|
|
+ return &resourcesCenterClient{cc}
|
|
|
+}
|
|
|
+
|
|
|
+func (c *resourcesCenterClient) FindCompanyOrgan(ctx context.Context, in *OrganRequest, opts ...grpc.CallOption) (*CompanyOrganResponse, error) {
|
|
|
+ out := new(CompanyOrganResponse)
|
|
|
+ err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/findCompanyOrgan", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
+// ResourcesCenterServer is the server API for ResourcesCenter service.
|
|
|
+type ResourcesCenterServer interface {
|
|
|
+ //查询用户组织信息
|
|
|
+ FindCompanyOrgan(context.Context, *OrganRequest) (*CompanyOrganResponse, error)
|
|
|
+}
|
|
|
+
|
|
|
+// UnimplementedResourcesCenterServer can be embedded to have forward compatible implementations.
|
|
|
+type UnimplementedResourcesCenterServer struct {
|
|
|
+}
|
|
|
+
|
|
|
+func (*UnimplementedResourcesCenterServer) FindCompanyOrgan(context.Context, *OrganRequest) (*CompanyOrganResponse, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method FindCompanyOrgan not implemented")
|
|
|
+}
|
|
|
+
|
|
|
+func RegisterResourcesCenterServer(s *grpc.Server, srv ResourcesCenterServer) {
|
|
|
+ s.RegisterService(&_ResourcesCenter_serviceDesc, srv)
|
|
|
+}
|
|
|
+
|
|
|
+func _ResourcesCenter_FindCompanyOrgan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(OrganRequest)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(ResourcesCenterServer).FindCompanyOrgan(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/resourcesCenter.ResourcesCenter/FindCompanyOrgan",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(ResourcesCenterServer).FindCompanyOrgan(ctx, req.(*OrganRequest))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+var _ResourcesCenter_serviceDesc = grpc.ServiceDesc{
|
|
|
+ ServiceName: "resourcesCenter.ResourcesCenter",
|
|
|
+ HandlerType: (*ResourcesCenterServer)(nil),
|
|
|
+ Methods: []grpc.MethodDesc{
|
|
|
+ {
|
|
|
+ MethodName: "findCompanyOrgan",
|
|
|
+ Handler: _ResourcesCenter_FindCompanyOrgan_Handler,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ Streams: []grpc.StreamDesc{},
|
|
|
+ Metadata: "resourcesCenter.proto",
|
|
|
+}
|