From 0119505418909341ff17b3bf8dc0ea509fef261d Mon Sep 17 00:00:00 2001 From: "jiaji.H" Date: Sun, 28 Sep 2025 10:03:07 +0800 Subject: [PATCH] =?UTF-8?q?Updata:=E8=B7=9F=E6=96=B0pb=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8E=E8=B7=AF=E7=94=B1=EF=BC=9B=E8=A1=A5=E5=85=85=E7=BC=BA?= =?UTF-8?q?=E5=A4=B1=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/members/members.pb.go | 1944 +++++++++++++++++++++++++++ api/members/members.validator.pb.go | 101 ++ api/members/members_triple.pb.go | 425 ++++++ pkg/router/router.go | 17 + pkg/service/init.go | 3 + pkg/service/members/members.go | 122 ++ 6 files changed, 2612 insertions(+) create mode 100644 api/members/members.pb.go create mode 100644 api/members/members.validator.pb.go create mode 100644 api/members/members_triple.pb.go create mode 100644 pkg/service/members/members.go diff --git a/api/members/members.pb.go b/api/members/members.pb.go new file mode 100644 index 0000000..55967da --- /dev/null +++ b/api/members/members.pb.go @@ -0,0 +1,1944 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.31.0 +// protoc v5.26.0 +// source: api/members/members.proto + +package members + +import ( + 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 AddMemberReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"` //uuid + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` //姓名 + Brief string `protobuf:"bytes,3,opt,name=brief,proto3" json:"brief"` //简介 + Introduction string `protobuf:"bytes,4,opt,name=introduction,proto3" json:"introduction"` //详细介绍 + Operator string `protobuf:"bytes,5,opt,name=operator,proto3" json:"operator"` //操作人 + OperatorId int32 `protobuf:"varint,6,opt,name=operatorId,proto3" json:"operatorId"` //操作人Id +} + +func (x *AddMemberReq) Reset() { + *x = AddMemberReq{} + if protoimpl.UnsafeEnabled { + mi := &file_api_members_members_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddMemberReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddMemberReq) ProtoMessage() {} + +func (x *AddMemberReq) ProtoReflect() protoreflect.Message { + mi := &file_api_members_members_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 AddMemberReq.ProtoReflect.Descriptor instead. +func (*AddMemberReq) Descriptor() ([]byte, []int) { + return file_api_members_members_proto_rawDescGZIP(), []int{0} +} + +func (x *AddMemberReq) GetUuid() string { + if x != nil { + return x.Uuid + } + return "" +} + +func (x *AddMemberReq) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *AddMemberReq) GetBrief() string { + if x != nil { + return x.Brief + } + return "" +} + +func (x *AddMemberReq) GetIntroduction() string { + if x != nil { + return x.Introduction + } + return "" +} + +func (x *AddMemberReq) GetOperator() string { + if x != nil { + return x.Operator + } + return "" +} + +func (x *AddMemberReq) GetOperatorId() int32 { + if x != nil { + return x.OperatorId + } + return 0 +} + +type AddMemberResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg"` +} + +func (x *AddMemberResp) Reset() { + *x = AddMemberResp{} + if protoimpl.UnsafeEnabled { + mi := &file_api_members_members_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddMemberResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddMemberResp) ProtoMessage() {} + +func (x *AddMemberResp) ProtoReflect() protoreflect.Message { + mi := &file_api_members_members_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 AddMemberResp.ProtoReflect.Descriptor instead. +func (*AddMemberResp) Descriptor() ([]byte, []int) { + return file_api_members_members_proto_rawDescGZIP(), []int{1} +} + +func (x *AddMemberResp) GetMsg() string { + if x != nil { + return x.Msg + } + return "" +} + +type EditMemberReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"` //uuid + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` //姓名 + Brief string `protobuf:"bytes,3,opt,name=brief,proto3" json:"brief"` //简介 + Introduction string `protobuf:"bytes,4,opt,name=introduction,proto3" json:"introduction"` //详细介绍 + Sort int32 `protobuf:"varint,5,opt,name=sort,proto3" json:"sort"` //排序 + Operator string `protobuf:"bytes,6,opt,name=operator,proto3" json:"operator"` //操作人 + OperatorId int32 `protobuf:"varint,7,opt,name=operatorId,proto3" json:"operatorId"` //操作人Id +} + +func (x *EditMemberReq) Reset() { + *x = EditMemberReq{} + if protoimpl.UnsafeEnabled { + mi := &file_api_members_members_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EditMemberReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EditMemberReq) ProtoMessage() {} + +func (x *EditMemberReq) ProtoReflect() protoreflect.Message { + mi := &file_api_members_members_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 EditMemberReq.ProtoReflect.Descriptor instead. +func (*EditMemberReq) Descriptor() ([]byte, []int) { + return file_api_members_members_proto_rawDescGZIP(), []int{2} +} + +func (x *EditMemberReq) GetUuid() string { + if x != nil { + return x.Uuid + } + return "" +} + +func (x *EditMemberReq) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *EditMemberReq) GetBrief() string { + if x != nil { + return x.Brief + } + return "" +} + +func (x *EditMemberReq) GetIntroduction() string { + if x != nil { + return x.Introduction + } + return "" +} + +func (x *EditMemberReq) GetSort() int32 { + if x != nil { + return x.Sort + } + return 0 +} + +func (x *EditMemberReq) GetOperator() string { + if x != nil { + return x.Operator + } + return "" +} + +func (x *EditMemberReq) GetOperatorId() int32 { + if x != nil { + return x.OperatorId + } + return 0 +} + +type EditMemberResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg"` +} + +func (x *EditMemberResp) Reset() { + *x = EditMemberResp{} + if protoimpl.UnsafeEnabled { + mi := &file_api_members_members_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EditMemberResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EditMemberResp) ProtoMessage() {} + +func (x *EditMemberResp) ProtoReflect() protoreflect.Message { + mi := &file_api_members_members_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 EditMemberResp.ProtoReflect.Descriptor instead. +func (*EditMemberResp) Descriptor() ([]byte, []int) { + return file_api_members_members_proto_rawDescGZIP(), []int{3} +} + +func (x *EditMemberResp) GetMsg() string { + if x != nil { + return x.Msg + } + return "" +} + +type DeleteMemberReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"` //uuid +} + +func (x *DeleteMemberReq) Reset() { + *x = DeleteMemberReq{} + if protoimpl.UnsafeEnabled { + mi := &file_api_members_members_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteMemberReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteMemberReq) ProtoMessage() {} + +func (x *DeleteMemberReq) ProtoReflect() protoreflect.Message { + mi := &file_api_members_members_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 DeleteMemberReq.ProtoReflect.Descriptor instead. +func (*DeleteMemberReq) Descriptor() ([]byte, []int) { + return file_api_members_members_proto_rawDescGZIP(), []int{4} +} + +func (x *DeleteMemberReq) GetUuid() string { + if x != nil { + return x.Uuid + } + return "" +} + +type DeleteMemberResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg"` +} + +func (x *DeleteMemberResp) Reset() { + *x = DeleteMemberResp{} + if protoimpl.UnsafeEnabled { + mi := &file_api_members_members_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteMemberResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteMemberResp) ProtoMessage() {} + +func (x *DeleteMemberResp) ProtoReflect() protoreflect.Message { + mi := &file_api_members_members_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 DeleteMemberResp.ProtoReflect.Descriptor instead. +func (*DeleteMemberResp) Descriptor() ([]byte, []int) { + return file_api_members_members_proto_rawDescGZIP(), []int{5} +} + +func (x *DeleteMemberResp) GetMsg() string { + if x != nil { + return x.Msg + } + return "" +} + +type Filtrate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name"` //文件名称 +} + +func (x *Filtrate) Reset() { + *x = Filtrate{} + if protoimpl.UnsafeEnabled { + mi := &file_api_members_members_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filtrate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filtrate) ProtoMessage() {} + +func (x *Filtrate) ProtoReflect() protoreflect.Message { + mi := &file_api_members_members_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 Filtrate.ProtoReflect.Descriptor instead. +func (*Filtrate) Descriptor() ([]byte, []int) { + return file_api_members_members_proto_rawDescGZIP(), []int{6} +} + +func (x *Filtrate) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +type GetMemberListReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page"` + PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize"` + Filterate *Filtrate `protobuf:"bytes,3,opt,name=filterate,proto3" json:"filterate"` //筛选条件 +} + +func (x *GetMemberListReq) Reset() { + *x = GetMemberListReq{} + if protoimpl.UnsafeEnabled { + mi := &file_api_members_members_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetMemberListReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetMemberListReq) ProtoMessage() {} + +func (x *GetMemberListReq) ProtoReflect() protoreflect.Message { + mi := &file_api_members_members_proto_msgTypes[7] + 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 GetMemberListReq.ProtoReflect.Descriptor instead. +func (*GetMemberListReq) Descriptor() ([]byte, []int) { + return file_api_members_members_proto_rawDescGZIP(), []int{7} +} + +func (x *GetMemberListReq) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *GetMemberListReq) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *GetMemberListReq) GetFilterate() *Filtrate { + if x != nil { + return x.Filterate + } + return nil +} + +type GetMemberListResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg"` + Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page"` + PageSize int32 `protobuf:"varint,3,opt,name=pageSize,proto3" json:"pageSize"` + Total int32 `protobuf:"varint,4,opt,name=total,proto3" json:"total"` + Data []*Member `protobuf:"bytes,5,rep,name=data,proto3" json:"data"` +} + +func (x *GetMemberListResp) Reset() { + *x = GetMemberListResp{} + if protoimpl.UnsafeEnabled { + mi := &file_api_members_members_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetMemberListResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetMemberListResp) ProtoMessage() {} + +func (x *GetMemberListResp) ProtoReflect() protoreflect.Message { + mi := &file_api_members_members_proto_msgTypes[8] + 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 GetMemberListResp.ProtoReflect.Descriptor instead. +func (*GetMemberListResp) Descriptor() ([]byte, []int) { + return file_api_members_members_proto_rawDescGZIP(), []int{8} +} + +func (x *GetMemberListResp) GetMsg() string { + if x != nil { + return x.Msg + } + return "" +} + +func (x *GetMemberListResp) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *GetMemberListResp) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *GetMemberListResp) GetTotal() int32 { + if x != nil { + return x.Total + } + return 0 +} + +func (x *GetMemberListResp) GetData() []*Member { + if x != nil { + return x.Data + } + return nil +} + +type Member struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` + Brief string `protobuf:"bytes,3,opt,name=brief,proto3" json:"brief"` + Introduction string `protobuf:"bytes,4,opt,name=introduction,proto3" json:"introduction"` + Management *Management `protobuf:"bytes,5,opt,name=management,proto3" json:"management"` + BoardOfDirectors *BoardOfDirectors `protobuf:"bytes,6,opt,name=boardOfDirectors,proto3" json:"boardOfDirectors"` + CommitteeAppointments *CommitteeAppointments `protobuf:"bytes,7,opt,name=committeeAppointments,proto3" json:"committeeAppointments"` + UpdatedAt string `protobuf:"bytes,8,opt,name=updatedAt,proto3" json:"updatedAt"` + Operator string `protobuf:"bytes,9,opt,name=operator,proto3" json:"operator"` +} + +func (x *Member) Reset() { + *x = Member{} + if protoimpl.UnsafeEnabled { + mi := &file_api_members_members_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Member) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Member) ProtoMessage() {} + +func (x *Member) ProtoReflect() protoreflect.Message { + mi := &file_api_members_members_proto_msgTypes[9] + 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 Member.ProtoReflect.Descriptor instead. +func (*Member) Descriptor() ([]byte, []int) { + return file_api_members_members_proto_rawDescGZIP(), []int{9} +} + +func (x *Member) GetUuid() string { + if x != nil { + return x.Uuid + } + return "" +} + +func (x *Member) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Member) GetBrief() string { + if x != nil { + return x.Brief + } + return "" +} + +func (x *Member) GetIntroduction() string { + if x != nil { + return x.Introduction + } + return "" +} + +func (x *Member) GetManagement() *Management { + if x != nil { + return x.Management + } + return nil +} + +func (x *Member) GetBoardOfDirectors() *BoardOfDirectors { + if x != nil { + return x.BoardOfDirectors + } + return nil +} + +func (x *Member) GetCommitteeAppointments() *CommitteeAppointments { + if x != nil { + return x.CommitteeAppointments + } + return nil +} + +func (x *Member) GetUpdatedAt() string { + if x != nil { + return x.UpdatedAt + } + return "" +} + +func (x *Member) GetOperator() string { + if x != nil { + return x.Operator + } + return "" +} + +// ===================================成员信息管理======================================= +type Management struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name"` + Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image"` + Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status"` + Brief string `protobuf:"bytes,4,opt,name=brief,proto3" json:"brief"` + Introduction string `protobuf:"bytes,5,opt,name=introduction,proto3" json:"introduction"` + IsSetting int32 `protobuf:"varint,6,opt,name=isSetting,proto3" json:"isSetting"` +} + +func (x *Management) Reset() { + *x = Management{} + if protoimpl.UnsafeEnabled { + mi := &file_api_members_members_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Management) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Management) ProtoMessage() {} + +func (x *Management) ProtoReflect() protoreflect.Message { + mi := &file_api_members_members_proto_msgTypes[10] + 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 Management.ProtoReflect.Descriptor instead. +func (*Management) Descriptor() ([]byte, []int) { + return file_api_members_members_proto_rawDescGZIP(), []int{10} +} + +func (x *Management) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Management) GetImage() string { + if x != nil { + return x.Image + } + return "" +} + +func (x *Management) GetStatus() int32 { + if x != nil { + return x.Status + } + return 0 +} + +func (x *Management) GetBrief() string { + if x != nil { + return x.Brief + } + return "" +} + +func (x *Management) GetIntroduction() string { + if x != nil { + return x.Introduction + } + return "" +} + +func (x *Management) GetIsSetting() int32 { + if x != nil { + return x.IsSetting + } + return 0 +} + +type EditManagementReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` + Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image"` + Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status"` + Brief string `protobuf:"bytes,5,opt,name=brief,proto3" json:"brief"` + Introduction string `protobuf:"bytes,6,opt,name=introduction,proto3" json:"introduction"` + IsSetting int32 `protobuf:"varint,7,opt,name=isSetting,proto3" json:"isSetting"` + Operator string `protobuf:"bytes,8,opt,name=operator,proto3" json:"operator"` + OperatorId int32 `protobuf:"varint,9,opt,name=operatorId,proto3" json:"operatorId"` +} + +func (x *EditManagementReq) Reset() { + *x = EditManagementReq{} + if protoimpl.UnsafeEnabled { + mi := &file_api_members_members_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EditManagementReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EditManagementReq) ProtoMessage() {} + +func (x *EditManagementReq) ProtoReflect() protoreflect.Message { + mi := &file_api_members_members_proto_msgTypes[11] + 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 EditManagementReq.ProtoReflect.Descriptor instead. +func (*EditManagementReq) Descriptor() ([]byte, []int) { + return file_api_members_members_proto_rawDescGZIP(), []int{11} +} + +func (x *EditManagementReq) GetUuid() string { + if x != nil { + return x.Uuid + } + return "" +} + +func (x *EditManagementReq) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *EditManagementReq) GetImage() string { + if x != nil { + return x.Image + } + return "" +} + +func (x *EditManagementReq) GetStatus() int32 { + if x != nil { + return x.Status + } + return 0 +} + +func (x *EditManagementReq) GetBrief() string { + if x != nil { + return x.Brief + } + return "" +} + +func (x *EditManagementReq) GetIntroduction() string { + if x != nil { + return x.Introduction + } + return "" +} + +func (x *EditManagementReq) GetIsSetting() int32 { + if x != nil { + return x.IsSetting + } + return 0 +} + +func (x *EditManagementReq) GetOperator() string { + if x != nil { + return x.Operator + } + return "" +} + +func (x *EditManagementReq) GetOperatorId() int32 { + if x != nil { + return x.OperatorId + } + return 0 +} + +type EditManagementResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg"` +} + +func (x *EditManagementResp) Reset() { + *x = EditManagementResp{} + if protoimpl.UnsafeEnabled { + mi := &file_api_members_members_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EditManagementResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EditManagementResp) ProtoMessage() {} + +func (x *EditManagementResp) ProtoReflect() protoreflect.Message { + mi := &file_api_members_members_proto_msgTypes[12] + 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 EditManagementResp.ProtoReflect.Descriptor instead. +func (*EditManagementResp) Descriptor() ([]byte, []int) { + return file_api_members_members_proto_rawDescGZIP(), []int{12} +} + +func (x *EditManagementResp) GetMsg() string { + if x != nil { + return x.Msg + } + return "" +} + +// ==================================董事会信息管理====================================== +type BoardOfDirectors struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name"` + Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status"` + Brief string `protobuf:"bytes,3,opt,name=brief,proto3" json:"brief"` + Introduction string `protobuf:"bytes,4,opt,name=introduction,proto3" json:"introduction"` + IsSetting int32 `protobuf:"varint,5,opt,name=isSetting,proto3" json:"isSetting"` +} + +func (x *BoardOfDirectors) Reset() { + *x = BoardOfDirectors{} + if protoimpl.UnsafeEnabled { + mi := &file_api_members_members_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BoardOfDirectors) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BoardOfDirectors) ProtoMessage() {} + +func (x *BoardOfDirectors) ProtoReflect() protoreflect.Message { + mi := &file_api_members_members_proto_msgTypes[13] + 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 BoardOfDirectors.ProtoReflect.Descriptor instead. +func (*BoardOfDirectors) Descriptor() ([]byte, []int) { + return file_api_members_members_proto_rawDescGZIP(), []int{13} +} + +func (x *BoardOfDirectors) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *BoardOfDirectors) GetStatus() int32 { + if x != nil { + return x.Status + } + return 0 +} + +func (x *BoardOfDirectors) GetBrief() string { + if x != nil { + return x.Brief + } + return "" +} + +func (x *BoardOfDirectors) GetIntroduction() string { + if x != nil { + return x.Introduction + } + return "" +} + +func (x *BoardOfDirectors) GetIsSetting() int32 { + if x != nil { + return x.IsSetting + } + return 0 +} + +type EditBoardOfDirectorsReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` + Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status"` + Brief string `protobuf:"bytes,4,opt,name=brief,proto3" json:"brief"` + Introduction string `protobuf:"bytes,5,opt,name=introduction,proto3" json:"introduction"` + IsSetting int32 `protobuf:"varint,6,opt,name=isSetting,proto3" json:"isSetting"` + Operator string `protobuf:"bytes,7,opt,name=operator,proto3" json:"operator"` + OperatorId int32 `protobuf:"varint,8,opt,name=operatorId,proto3" json:"operatorId"` +} + +func (x *EditBoardOfDirectorsReq) Reset() { + *x = EditBoardOfDirectorsReq{} + if protoimpl.UnsafeEnabled { + mi := &file_api_members_members_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EditBoardOfDirectorsReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EditBoardOfDirectorsReq) ProtoMessage() {} + +func (x *EditBoardOfDirectorsReq) ProtoReflect() protoreflect.Message { + mi := &file_api_members_members_proto_msgTypes[14] + 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 EditBoardOfDirectorsReq.ProtoReflect.Descriptor instead. +func (*EditBoardOfDirectorsReq) Descriptor() ([]byte, []int) { + return file_api_members_members_proto_rawDescGZIP(), []int{14} +} + +func (x *EditBoardOfDirectorsReq) GetUuid() string { + if x != nil { + return x.Uuid + } + return "" +} + +func (x *EditBoardOfDirectorsReq) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *EditBoardOfDirectorsReq) GetStatus() int32 { + if x != nil { + return x.Status + } + return 0 +} + +func (x *EditBoardOfDirectorsReq) GetBrief() string { + if x != nil { + return x.Brief + } + return "" +} + +func (x *EditBoardOfDirectorsReq) GetIntroduction() string { + if x != nil { + return x.Introduction + } + return "" +} + +func (x *EditBoardOfDirectorsReq) GetIsSetting() int32 { + if x != nil { + return x.IsSetting + } + return 0 +} + +func (x *EditBoardOfDirectorsReq) GetOperator() string { + if x != nil { + return x.Operator + } + return "" +} + +func (x *EditBoardOfDirectorsReq) GetOperatorId() int32 { + if x != nil { + return x.OperatorId + } + return 0 +} + +type EditBoardOfDirectorsResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg"` +} + +func (x *EditBoardOfDirectorsResp) Reset() { + *x = EditBoardOfDirectorsResp{} + if protoimpl.UnsafeEnabled { + mi := &file_api_members_members_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EditBoardOfDirectorsResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EditBoardOfDirectorsResp) ProtoMessage() {} + +func (x *EditBoardOfDirectorsResp) ProtoReflect() protoreflect.Message { + mi := &file_api_members_members_proto_msgTypes[15] + 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 EditBoardOfDirectorsResp.ProtoReflect.Descriptor instead. +func (*EditBoardOfDirectorsResp) Descriptor() ([]byte, []int) { + return file_api_members_members_proto_rawDescGZIP(), []int{15} +} + +func (x *EditBoardOfDirectorsResp) GetMsg() string { + if x != nil { + return x.Msg + } + return "" +} + +// ==================================委员会任命管理====================================== +type CommitteeAppointments struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name"` + Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status"` + AuditCommittee string `protobuf:"bytes,3,opt,name=auditCommittee,proto3" json:"auditCommittee"` + CompensationCommittee string `protobuf:"bytes,4,opt,name=compensationCommittee,proto3" json:"compensationCommittee"` + NominatingCommittee string `protobuf:"bytes,5,opt,name=nominatingCommittee,proto3" json:"nominatingCommittee"` + IsSetting int32 `protobuf:"varint,6,opt,name=isSetting,proto3" json:"isSetting"` +} + +func (x *CommitteeAppointments) Reset() { + *x = CommitteeAppointments{} + if protoimpl.UnsafeEnabled { + mi := &file_api_members_members_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CommitteeAppointments) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CommitteeAppointments) ProtoMessage() {} + +func (x *CommitteeAppointments) ProtoReflect() protoreflect.Message { + mi := &file_api_members_members_proto_msgTypes[16] + 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 CommitteeAppointments.ProtoReflect.Descriptor instead. +func (*CommitteeAppointments) Descriptor() ([]byte, []int) { + return file_api_members_members_proto_rawDescGZIP(), []int{16} +} + +func (x *CommitteeAppointments) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *CommitteeAppointments) GetStatus() int32 { + if x != nil { + return x.Status + } + return 0 +} + +func (x *CommitteeAppointments) GetAuditCommittee() string { + if x != nil { + return x.AuditCommittee + } + return "" +} + +func (x *CommitteeAppointments) GetCompensationCommittee() string { + if x != nil { + return x.CompensationCommittee + } + return "" +} + +func (x *CommitteeAppointments) GetNominatingCommittee() string { + if x != nil { + return x.NominatingCommittee + } + return "" +} + +func (x *CommitteeAppointments) GetIsSetting() int32 { + if x != nil { + return x.IsSetting + } + return 0 +} + +type EditCommitteeAppointmentsReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` + Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status"` + AuditCommittee string `protobuf:"bytes,4,opt,name=auditCommittee,proto3" json:"auditCommittee"` + CompensationCommittee string `protobuf:"bytes,5,opt,name=compensationCommittee,proto3" json:"compensationCommittee"` + NominatingCommittee string `protobuf:"bytes,6,opt,name=nominatingCommittee,proto3" json:"nominatingCommittee"` + IsSetting int32 `protobuf:"varint,7,opt,name=isSetting,proto3" json:"isSetting"` + Operator string `protobuf:"bytes,8,opt,name=operator,proto3" json:"operator"` + OperatorId int32 `protobuf:"varint,9,opt,name=operatorId,proto3" json:"operatorId"` +} + +func (x *EditCommitteeAppointmentsReq) Reset() { + *x = EditCommitteeAppointmentsReq{} + if protoimpl.UnsafeEnabled { + mi := &file_api_members_members_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EditCommitteeAppointmentsReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EditCommitteeAppointmentsReq) ProtoMessage() {} + +func (x *EditCommitteeAppointmentsReq) ProtoReflect() protoreflect.Message { + mi := &file_api_members_members_proto_msgTypes[17] + 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 EditCommitteeAppointmentsReq.ProtoReflect.Descriptor instead. +func (*EditCommitteeAppointmentsReq) Descriptor() ([]byte, []int) { + return file_api_members_members_proto_rawDescGZIP(), []int{17} +} + +func (x *EditCommitteeAppointmentsReq) GetUuid() string { + if x != nil { + return x.Uuid + } + return "" +} + +func (x *EditCommitteeAppointmentsReq) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *EditCommitteeAppointmentsReq) GetStatus() int32 { + if x != nil { + return x.Status + } + return 0 +} + +func (x *EditCommitteeAppointmentsReq) GetAuditCommittee() string { + if x != nil { + return x.AuditCommittee + } + return "" +} + +func (x *EditCommitteeAppointmentsReq) GetCompensationCommittee() string { + if x != nil { + return x.CompensationCommittee + } + return "" +} + +func (x *EditCommitteeAppointmentsReq) GetNominatingCommittee() string { + if x != nil { + return x.NominatingCommittee + } + return "" +} + +func (x *EditCommitteeAppointmentsReq) GetIsSetting() int32 { + if x != nil { + return x.IsSetting + } + return 0 +} + +func (x *EditCommitteeAppointmentsReq) GetOperator() string { + if x != nil { + return x.Operator + } + return "" +} + +func (x *EditCommitteeAppointmentsReq) GetOperatorId() int32 { + if x != nil { + return x.OperatorId + } + return 0 +} + +type EditCommitteeAppointmentsResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg"` +} + +func (x *EditCommitteeAppointmentsResp) Reset() { + *x = EditCommitteeAppointmentsResp{} + if protoimpl.UnsafeEnabled { + mi := &file_api_members_members_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EditCommitteeAppointmentsResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EditCommitteeAppointmentsResp) ProtoMessage() {} + +func (x *EditCommitteeAppointmentsResp) ProtoReflect() protoreflect.Message { + mi := &file_api_members_members_proto_msgTypes[18] + 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 EditCommitteeAppointmentsResp.ProtoReflect.Descriptor instead. +func (*EditCommitteeAppointmentsResp) Descriptor() ([]byte, []int) { + return file_api_members_members_proto_rawDescGZIP(), []int{18} +} + +func (x *EditCommitteeAppointmentsResp) GetMsg() string { + if x != nil { + return x.Msg + } + return "" +} + +var File_api_members_members_proto protoreflect.FileDescriptor + +var file_api_members_members_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, + 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x6d, 0x65, 0x6d, + 0x62, 0x65, 0x72, 0x73, 0x22, 0xac, 0x01, 0x0a, 0x0c, 0x41, 0x64, 0x64, 0x4d, 0x65, 0x6d, 0x62, + 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x62, 0x72, 0x69, 0x65, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x72, + 0x69, 0x65, 0x66, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x6e, 0x74, 0x72, 0x6f, + 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x6f, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x49, + 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, + 0x72, 0x49, 0x64, 0x22, 0x21, 0x0a, 0x0d, 0x41, 0x64, 0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0xc1, 0x01, 0x0a, 0x0d, 0x45, 0x64, 0x69, 0x74, 0x4d, + 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x62, 0x72, 0x69, 0x65, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x62, 0x72, 0x69, 0x65, 0x66, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, + 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x6e, + 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x6f, + 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x6f, 0x72, 0x74, 0x12, 0x1a, + 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x6f, 0x70, + 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, + 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x22, 0x22, 0x0a, 0x0e, 0x45, 0x64, + 0x69, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, + 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x25, + 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, + 0x71, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x75, 0x75, 0x69, 0x64, 0x22, 0x24, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, + 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x1e, 0x0a, 0x08, 0x46, + 0x69, 0x6c, 0x74, 0x72, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x73, 0x0a, 0x10, 0x47, + 0x65, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, + 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, + 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, + 0x2f, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2e, 0x46, 0x69, 0x6c, + 0x74, 0x72, 0x61, 0x74, 0x65, 0x52, 0x09, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x61, 0x74, 0x65, + 0x22, 0x90, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, + 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, + 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, + 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x23, + 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6d, + 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x04, 0x64, + 0x61, 0x74, 0x61, 0x22, 0xf6, 0x02, 0x0a, 0x06, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x12, + 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, + 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x72, 0x69, 0x65, 0x66, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x72, 0x69, 0x65, 0x66, 0x12, 0x22, 0x0a, 0x0c, + 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x33, 0x0a, 0x0a, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2e, 0x4d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0a, 0x6d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x45, 0x0a, 0x10, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x4f, 0x66, + 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2e, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4f, + 0x66, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x10, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x4f, 0x66, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x54, 0x0a, 0x15, + 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x65, 0x41, 0x70, 0x70, 0x6f, 0x69, 0x6e, 0x74, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6d, 0x65, + 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x65, 0x41, + 0x70, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x15, 0x63, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x74, 0x65, 0x65, 0x41, 0x70, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, + 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xa6, 0x01, 0x0a, + 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, + 0x05, 0x62, 0x72, 0x69, 0x65, 0x66, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x72, + 0x69, 0x65, 0x66, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x6e, 0x74, 0x72, 0x6f, + 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x73, 0x53, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x69, 0x73, 0x53, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0xfd, 0x01, 0x0a, 0x11, 0x45, 0x64, 0x69, 0x74, 0x4d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x75, + 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x72, 0x69, 0x65, 0x66, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x62, 0x72, 0x69, 0x65, 0x66, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x72, 0x6f, + 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, + 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x69, + 0x73, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, + 0x69, 0x73, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, + 0x72, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x6f, 0x72, 0x49, 0x64, 0x22, 0x26, 0x0a, 0x12, 0x45, 0x64, 0x69, 0x74, 0x4d, 0x61, 0x6e, + 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x6d, + 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x96, 0x01, + 0x0a, 0x10, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x4f, 0x66, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, + 0x0a, 0x05, 0x62, 0x72, 0x69, 0x65, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, + 0x72, 0x69, 0x65, 0x66, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x6e, 0x74, 0x72, + 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x73, 0x53, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x69, 0x73, 0x53, + 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0xed, 0x01, 0x0a, 0x17, 0x45, 0x64, 0x69, 0x74, 0x42, + 0x6f, 0x61, 0x72, 0x64, 0x4f, 0x66, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, + 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x72, 0x69, 0x65, 0x66, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x62, 0x72, 0x69, 0x65, 0x66, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x72, + 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, + 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, + 0x69, 0x73, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x09, 0x69, 0x73, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, + 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, + 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x49, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6f, 0x70, 0x65, 0x72, + 0x61, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x22, 0x2c, 0x0a, 0x18, 0x45, 0x64, 0x69, 0x74, 0x42, 0x6f, + 0x61, 0x72, 0x64, 0x4f, 0x66, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6d, 0x73, 0x67, 0x22, 0xf1, 0x01, 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, + 0x65, 0x65, 0x41, 0x70, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x26, 0x0a, 0x0e, 0x61, 0x75, + 0x64, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, + 0x65, 0x65, 0x12, 0x34, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x70, 0x65, 0x6e, 0x73, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x15, 0x63, 0x6f, 0x6d, 0x70, 0x65, 0x6e, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x65, 0x12, 0x30, 0x0a, 0x13, 0x6e, 0x6f, 0x6d, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x65, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x6e, 0x6f, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6e, + 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x73, + 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x69, + 0x73, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0xc8, 0x02, 0x0a, 0x1c, 0x45, 0x64, 0x69, + 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x65, 0x41, 0x70, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x26, 0x0a, 0x0e, 0x61, 0x75, 0x64, + 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, + 0x65, 0x12, 0x34, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x70, 0x65, 0x6e, 0x73, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x15, 0x63, 0x6f, 0x6d, 0x70, 0x65, 0x6e, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x65, 0x12, 0x30, 0x0a, 0x13, 0x6e, 0x6f, 0x6d, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x65, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x6e, 0x6f, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6e, 0x67, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x73, 0x53, + 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x69, 0x73, + 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x6f, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x6f, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x49, + 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, + 0x72, 0x49, 0x64, 0x22, 0x31, 0x0a, 0x1d, 0x45, 0x64, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x74, 0x65, 0x65, 0x41, 0x70, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x32, 0xa5, 0x04, 0x0a, 0x07, 0x4d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x73, 0x12, 0x3a, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, + 0x15, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x65, 0x6d, + 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, + 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3d, + 0x0a, 0x0a, 0x45, 0x64, 0x69, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x6d, + 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2e, 0x45, + 0x64, 0x69, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x43, 0x0a, + 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x18, 0x2e, + 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x65, + 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x19, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, + 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x12, 0x46, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4c, + 0x69, 0x73, 0x74, 0x12, 0x19, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2e, 0x47, 0x65, + 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1a, + 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x6d, 0x62, + 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x49, 0x0a, 0x0e, 0x45, 0x64, + 0x69, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1a, 0x2e, 0x6d, + 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1b, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x73, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x5b, 0x0a, 0x14, 0x45, 0x64, 0x69, 0x74, 0x42, 0x6f, 0x61, + 0x72, 0x64, 0x4f, 0x66, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x20, 0x2e, + 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x42, 0x6f, 0x61, 0x72, + 0x64, 0x4f, 0x66, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x1a, + 0x21, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x42, 0x6f, + 0x61, 0x72, 0x64, 0x4f, 0x66, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x12, 0x6a, 0x0a, 0x19, 0x45, 0x64, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x74, 0x65, 0x65, 0x41, 0x70, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, + 0x25, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x65, 0x41, 0x70, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x26, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, + 0x2e, 0x45, 0x64, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x65, 0x41, 0x70, + 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x42, 0x0c, + 0x5a, 0x0a, 0x2e, 0x2f, 0x3b, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_api_members_members_proto_rawDescOnce sync.Once + file_api_members_members_proto_rawDescData = file_api_members_members_proto_rawDesc +) + +func file_api_members_members_proto_rawDescGZIP() []byte { + file_api_members_members_proto_rawDescOnce.Do(func() { + file_api_members_members_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_members_members_proto_rawDescData) + }) + return file_api_members_members_proto_rawDescData +} + +var file_api_members_members_proto_msgTypes = make([]protoimpl.MessageInfo, 19) +var file_api_members_members_proto_goTypes = []interface{}{ + (*AddMemberReq)(nil), // 0: members.AddMemberReq + (*AddMemberResp)(nil), // 1: members.AddMemberResp + (*EditMemberReq)(nil), // 2: members.EditMemberReq + (*EditMemberResp)(nil), // 3: members.EditMemberResp + (*DeleteMemberReq)(nil), // 4: members.DeleteMemberReq + (*DeleteMemberResp)(nil), // 5: members.DeleteMemberResp + (*Filtrate)(nil), // 6: members.Filtrate + (*GetMemberListReq)(nil), // 7: members.GetMemberListReq + (*GetMemberListResp)(nil), // 8: members.GetMemberListResp + (*Member)(nil), // 9: members.Member + (*Management)(nil), // 10: members.Management + (*EditManagementReq)(nil), // 11: members.EditManagementReq + (*EditManagementResp)(nil), // 12: members.EditManagementResp + (*BoardOfDirectors)(nil), // 13: members.BoardOfDirectors + (*EditBoardOfDirectorsReq)(nil), // 14: members.EditBoardOfDirectorsReq + (*EditBoardOfDirectorsResp)(nil), // 15: members.EditBoardOfDirectorsResp + (*CommitteeAppointments)(nil), // 16: members.CommitteeAppointments + (*EditCommitteeAppointmentsReq)(nil), // 17: members.EditCommitteeAppointmentsReq + (*EditCommitteeAppointmentsResp)(nil), // 18: members.EditCommitteeAppointmentsResp +} +var file_api_members_members_proto_depIdxs = []int32{ + 6, // 0: members.GetMemberListReq.filterate:type_name -> members.Filtrate + 9, // 1: members.GetMemberListResp.data:type_name -> members.Member + 10, // 2: members.Member.management:type_name -> members.Management + 13, // 3: members.Member.boardOfDirectors:type_name -> members.BoardOfDirectors + 16, // 4: members.Member.committeeAppointments:type_name -> members.CommitteeAppointments + 0, // 5: members.Members.AddMember:input_type -> members.AddMemberReq + 2, // 6: members.Members.EditMember:input_type -> members.EditMemberReq + 4, // 7: members.Members.DeleteMember:input_type -> members.DeleteMemberReq + 7, // 8: members.Members.GetMemberList:input_type -> members.GetMemberListReq + 11, // 9: members.Members.EditManagement:input_type -> members.EditManagementReq + 14, // 10: members.Members.EditBoardOfDirectors:input_type -> members.EditBoardOfDirectorsReq + 17, // 11: members.Members.EditCommitteeAppointments:input_type -> members.EditCommitteeAppointmentsReq + 1, // 12: members.Members.AddMember:output_type -> members.AddMemberResp + 3, // 13: members.Members.EditMember:output_type -> members.EditMemberResp + 5, // 14: members.Members.DeleteMember:output_type -> members.DeleteMemberResp + 8, // 15: members.Members.GetMemberList:output_type -> members.GetMemberListResp + 12, // 16: members.Members.EditManagement:output_type -> members.EditManagementResp + 15, // 17: members.Members.EditBoardOfDirectors:output_type -> members.EditBoardOfDirectorsResp + 18, // 18: members.Members.EditCommitteeAppointments:output_type -> members.EditCommitteeAppointmentsResp + 12, // [12:19] is the sub-list for method output_type + 5, // [5:12] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_api_members_members_proto_init() } +func file_api_members_members_proto_init() { + if File_api_members_members_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_api_members_members_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddMemberReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_members_members_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddMemberResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_members_members_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EditMemberReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_members_members_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EditMemberResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_members_members_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteMemberReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_members_members_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteMemberResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_members_members_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Filtrate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_members_members_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetMemberListReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_members_members_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetMemberListResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_members_members_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Member); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_members_members_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Management); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_members_members_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EditManagementReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_members_members_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EditManagementResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_members_members_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BoardOfDirectors); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_members_members_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EditBoardOfDirectorsReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_members_members_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EditBoardOfDirectorsResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_members_members_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommitteeAppointments); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_members_members_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EditCommitteeAppointmentsReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_members_members_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EditCommitteeAppointmentsResp); 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_api_members_members_proto_rawDesc, + NumEnums: 0, + NumMessages: 19, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_api_members_members_proto_goTypes, + DependencyIndexes: file_api_members_members_proto_depIdxs, + MessageInfos: file_api_members_members_proto_msgTypes, + }.Build() + File_api_members_members_proto = out.File + file_api_members_members_proto_rawDesc = nil + file_api_members_members_proto_goTypes = nil + file_api_members_members_proto_depIdxs = nil +} diff --git a/api/members/members.validator.pb.go b/api/members/members.validator.pb.go new file mode 100644 index 0000000..0114f5e --- /dev/null +++ b/api/members/members.validator.pb.go @@ -0,0 +1,101 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: api/members/members.proto + +package members + +import ( + fmt "fmt" + math "math" + proto "github.com/golang/protobuf/proto" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +func (this *AddMemberReq) Validate() error { + return nil +} +func (this *AddMemberResp) Validate() error { + return nil +} +func (this *EditMemberReq) Validate() error { + return nil +} +func (this *EditMemberResp) Validate() error { + return nil +} +func (this *DeleteMemberReq) Validate() error { + return nil +} +func (this *DeleteMemberResp) Validate() error { + return nil +} +func (this *Filtrate) Validate() error { + return nil +} +func (this *GetMemberListReq) Validate() error { + if this.Filterate != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Filterate); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Filterate", err) + } + } + return nil +} +func (this *GetMemberListResp) Validate() error { + for _, item := range this.Data { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Data", err) + } + } + } + return nil +} +func (this *Member) Validate() error { + if this.Management != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Management); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Management", err) + } + } + if this.BoardOfDirectors != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.BoardOfDirectors); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("BoardOfDirectors", err) + } + } + if this.CommitteeAppointments != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.CommitteeAppointments); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("CommitteeAppointments", err) + } + } + return nil +} +func (this *Management) Validate() error { + return nil +} +func (this *EditManagementReq) Validate() error { + return nil +} +func (this *EditManagementResp) Validate() error { + return nil +} +func (this *BoardOfDirectors) Validate() error { + return nil +} +func (this *EditBoardOfDirectorsReq) Validate() error { + return nil +} +func (this *EditBoardOfDirectorsResp) Validate() error { + return nil +} +func (this *CommitteeAppointments) Validate() error { + return nil +} +func (this *EditCommitteeAppointmentsReq) Validate() error { + return nil +} +func (this *EditCommitteeAppointmentsResp) Validate() error { + return nil +} diff --git a/api/members/members_triple.pb.go b/api/members/members_triple.pb.go new file mode 100644 index 0000000..476954a --- /dev/null +++ b/api/members/members_triple.pb.go @@ -0,0 +1,425 @@ +// Code generated by protoc-gen-go-triple. DO NOT EDIT. +// versions: +// - protoc-gen-go-triple v1.0.5 +// - protoc v5.26.0 +// source: api/members/members.proto + +package members + +import ( + context "context" + protocol "dubbo.apache.org/dubbo-go/v3/protocol" + dubbo3 "dubbo.apache.org/dubbo-go/v3/protocol/dubbo3" + invocation "dubbo.apache.org/dubbo-go/v3/protocol/invocation" + grpc_go "github.com/dubbogo/grpc-go" + codes "github.com/dubbogo/grpc-go/codes" + metadata "github.com/dubbogo/grpc-go/metadata" + status "github.com/dubbogo/grpc-go/status" + common "github.com/dubbogo/triple/pkg/common" + constant "github.com/dubbogo/triple/pkg/common/constant" + triple "github.com/dubbogo/triple/pkg/triple" +) + +// 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_go.SupportPackageIsVersion7 + +// MembersClient is the client API for Members service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type MembersClient interface { + // ==================================成员管理====================================== + AddMember(ctx context.Context, in *AddMemberReq, opts ...grpc_go.CallOption) (*AddMemberResp, common.ErrorWithAttachment) + EditMember(ctx context.Context, in *EditMemberReq, opts ...grpc_go.CallOption) (*EditMemberResp, common.ErrorWithAttachment) + DeleteMember(ctx context.Context, in *DeleteMemberReq, opts ...grpc_go.CallOption) (*DeleteMemberResp, common.ErrorWithAttachment) + GetMemberList(ctx context.Context, in *GetMemberListReq, opts ...grpc_go.CallOption) (*GetMemberListResp, common.ErrorWithAttachment) + // ===================================成员信息管理======================================= + EditManagement(ctx context.Context, in *EditManagementReq, opts ...grpc_go.CallOption) (*EditManagementResp, common.ErrorWithAttachment) + // ===================================董事会信息管理======================================= + EditBoardOfDirectors(ctx context.Context, in *EditBoardOfDirectorsReq, opts ...grpc_go.CallOption) (*EditBoardOfDirectorsResp, common.ErrorWithAttachment) + // ==================================委员会任命管理====================================== + EditCommitteeAppointments(ctx context.Context, in *EditCommitteeAppointmentsReq, opts ...grpc_go.CallOption) (*EditCommitteeAppointmentsResp, common.ErrorWithAttachment) +} + +type membersClient struct { + cc *triple.TripleConn +} + +type MembersClientImpl struct { + AddMember func(ctx context.Context, in *AddMemberReq) (*AddMemberResp, error) + EditMember func(ctx context.Context, in *EditMemberReq) (*EditMemberResp, error) + DeleteMember func(ctx context.Context, in *DeleteMemberReq) (*DeleteMemberResp, error) + GetMemberList func(ctx context.Context, in *GetMemberListReq) (*GetMemberListResp, error) + EditManagement func(ctx context.Context, in *EditManagementReq) (*EditManagementResp, error) + EditBoardOfDirectors func(ctx context.Context, in *EditBoardOfDirectorsReq) (*EditBoardOfDirectorsResp, error) + EditCommitteeAppointments func(ctx context.Context, in *EditCommitteeAppointmentsReq) (*EditCommitteeAppointmentsResp, error) +} + +func (c *MembersClientImpl) GetDubboStub(cc *triple.TripleConn) MembersClient { + return NewMembersClient(cc) +} + +func (c *MembersClientImpl) XXX_InterfaceName() string { + return "members.Members" +} + +func NewMembersClient(cc *triple.TripleConn) MembersClient { + return &membersClient{cc} +} + +func (c *membersClient) AddMember(ctx context.Context, in *AddMemberReq, opts ...grpc_go.CallOption) (*AddMemberResp, common.ErrorWithAttachment) { + out := new(AddMemberResp) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/AddMember", in, out) +} + +func (c *membersClient) EditMember(ctx context.Context, in *EditMemberReq, opts ...grpc_go.CallOption) (*EditMemberResp, common.ErrorWithAttachment) { + out := new(EditMemberResp) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/EditMember", in, out) +} + +func (c *membersClient) DeleteMember(ctx context.Context, in *DeleteMemberReq, opts ...grpc_go.CallOption) (*DeleteMemberResp, common.ErrorWithAttachment) { + out := new(DeleteMemberResp) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/DeleteMember", in, out) +} + +func (c *membersClient) GetMemberList(ctx context.Context, in *GetMemberListReq, opts ...grpc_go.CallOption) (*GetMemberListResp, common.ErrorWithAttachment) { + out := new(GetMemberListResp) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetMemberList", in, out) +} + +func (c *membersClient) EditManagement(ctx context.Context, in *EditManagementReq, opts ...grpc_go.CallOption) (*EditManagementResp, common.ErrorWithAttachment) { + out := new(EditManagementResp) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/EditManagement", in, out) +} + +func (c *membersClient) EditBoardOfDirectors(ctx context.Context, in *EditBoardOfDirectorsReq, opts ...grpc_go.CallOption) (*EditBoardOfDirectorsResp, common.ErrorWithAttachment) { + out := new(EditBoardOfDirectorsResp) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/EditBoardOfDirectors", in, out) +} + +func (c *membersClient) EditCommitteeAppointments(ctx context.Context, in *EditCommitteeAppointmentsReq, opts ...grpc_go.CallOption) (*EditCommitteeAppointmentsResp, common.ErrorWithAttachment) { + out := new(EditCommitteeAppointmentsResp) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/EditCommitteeAppointments", in, out) +} + +// MembersServer is the server API for Members service. +// All implementations must embed UnimplementedMembersServer +// for forward compatibility +type MembersServer interface { + // ==================================成员管理====================================== + AddMember(context.Context, *AddMemberReq) (*AddMemberResp, error) + EditMember(context.Context, *EditMemberReq) (*EditMemberResp, error) + DeleteMember(context.Context, *DeleteMemberReq) (*DeleteMemberResp, error) + GetMemberList(context.Context, *GetMemberListReq) (*GetMemberListResp, error) + // ===================================成员信息管理======================================= + EditManagement(context.Context, *EditManagementReq) (*EditManagementResp, error) + // ===================================董事会信息管理======================================= + EditBoardOfDirectors(context.Context, *EditBoardOfDirectorsReq) (*EditBoardOfDirectorsResp, error) + // ==================================委员会任命管理====================================== + EditCommitteeAppointments(context.Context, *EditCommitteeAppointmentsReq) (*EditCommitteeAppointmentsResp, error) + mustEmbedUnimplementedMembersServer() +} + +// UnimplementedMembersServer must be embedded to have forward compatible implementations. +type UnimplementedMembersServer struct { + proxyImpl protocol.Invoker +} + +func (UnimplementedMembersServer) AddMember(context.Context, *AddMemberReq) (*AddMemberResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddMember not implemented") +} +func (UnimplementedMembersServer) EditMember(context.Context, *EditMemberReq) (*EditMemberResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method EditMember not implemented") +} +func (UnimplementedMembersServer) DeleteMember(context.Context, *DeleteMemberReq) (*DeleteMemberResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteMember not implemented") +} +func (UnimplementedMembersServer) GetMemberList(context.Context, *GetMemberListReq) (*GetMemberListResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetMemberList not implemented") +} +func (UnimplementedMembersServer) EditManagement(context.Context, *EditManagementReq) (*EditManagementResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method EditManagement not implemented") +} +func (UnimplementedMembersServer) EditBoardOfDirectors(context.Context, *EditBoardOfDirectorsReq) (*EditBoardOfDirectorsResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method EditBoardOfDirectors not implemented") +} +func (UnimplementedMembersServer) EditCommitteeAppointments(context.Context, *EditCommitteeAppointmentsReq) (*EditCommitteeAppointmentsResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method EditCommitteeAppointments not implemented") +} +func (s *UnimplementedMembersServer) XXX_SetProxyImpl(impl protocol.Invoker) { + s.proxyImpl = impl +} + +func (s *UnimplementedMembersServer) XXX_GetProxyImpl() protocol.Invoker { + return s.proxyImpl +} + +func (s *UnimplementedMembersServer) XXX_ServiceDesc() *grpc_go.ServiceDesc { + return &Members_ServiceDesc +} +func (s *UnimplementedMembersServer) XXX_InterfaceName() string { + return "members.Members" +} + +func (UnimplementedMembersServer) mustEmbedUnimplementedMembersServer() {} + +// UnsafeMembersServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to MembersServer will +// result in compilation errors. +type UnsafeMembersServer interface { + mustEmbedUnimplementedMembersServer() +} + +func RegisterMembersServer(s grpc_go.ServiceRegistrar, srv MembersServer) { + s.RegisterService(&Members_ServiceDesc, srv) +} + +func _Members_AddMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(AddMemberReq) + if err := dec(in); err != nil { + return nil, err + } + base := srv.(dubbo3.Dubbo3GrpcService) + args := []interface{}{} + args = append(args, in) + md, _ := metadata.FromIncomingContext(ctx) + invAttachment := make(map[string]interface{}, len(md)) + for k, v := range md { + invAttachment[k] = v + } + invo := invocation.NewRPCInvocation("AddMember", args, invAttachment) + if interceptor == nil { + result := base.XXX_GetProxyImpl().Invoke(ctx, invo) + return result, result.Error() + } + info := &grpc_go.UnaryServerInfo{ + Server: srv, + FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string), + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + result := base.XXX_GetProxyImpl().Invoke(ctx, invo) + return result, result.Error() + } + return interceptor(ctx, in, info, handler) +} + +func _Members_EditMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(EditMemberReq) + if err := dec(in); err != nil { + return nil, err + } + base := srv.(dubbo3.Dubbo3GrpcService) + args := []interface{}{} + args = append(args, in) + md, _ := metadata.FromIncomingContext(ctx) + invAttachment := make(map[string]interface{}, len(md)) + for k, v := range md { + invAttachment[k] = v + } + invo := invocation.NewRPCInvocation("EditMember", args, invAttachment) + if interceptor == nil { + result := base.XXX_GetProxyImpl().Invoke(ctx, invo) + return result, result.Error() + } + info := &grpc_go.UnaryServerInfo{ + Server: srv, + FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string), + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + result := base.XXX_GetProxyImpl().Invoke(ctx, invo) + return result, result.Error() + } + return interceptor(ctx, in, info, handler) +} + +func _Members_DeleteMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteMemberReq) + if err := dec(in); err != nil { + return nil, err + } + base := srv.(dubbo3.Dubbo3GrpcService) + args := []interface{}{} + args = append(args, in) + md, _ := metadata.FromIncomingContext(ctx) + invAttachment := make(map[string]interface{}, len(md)) + for k, v := range md { + invAttachment[k] = v + } + invo := invocation.NewRPCInvocation("DeleteMember", args, invAttachment) + if interceptor == nil { + result := base.XXX_GetProxyImpl().Invoke(ctx, invo) + return result, result.Error() + } + info := &grpc_go.UnaryServerInfo{ + Server: srv, + FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string), + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + result := base.XXX_GetProxyImpl().Invoke(ctx, invo) + return result, result.Error() + } + return interceptor(ctx, in, info, handler) +} + +func _Members_GetMemberList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(GetMemberListReq) + if err := dec(in); err != nil { + return nil, err + } + base := srv.(dubbo3.Dubbo3GrpcService) + args := []interface{}{} + args = append(args, in) + md, _ := metadata.FromIncomingContext(ctx) + invAttachment := make(map[string]interface{}, len(md)) + for k, v := range md { + invAttachment[k] = v + } + invo := invocation.NewRPCInvocation("GetMemberList", args, invAttachment) + if interceptor == nil { + result := base.XXX_GetProxyImpl().Invoke(ctx, invo) + return result, result.Error() + } + info := &grpc_go.UnaryServerInfo{ + Server: srv, + FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string), + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + result := base.XXX_GetProxyImpl().Invoke(ctx, invo) + return result, result.Error() + } + return interceptor(ctx, in, info, handler) +} + +func _Members_EditManagement_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(EditManagementReq) + if err := dec(in); err != nil { + return nil, err + } + base := srv.(dubbo3.Dubbo3GrpcService) + args := []interface{}{} + args = append(args, in) + md, _ := metadata.FromIncomingContext(ctx) + invAttachment := make(map[string]interface{}, len(md)) + for k, v := range md { + invAttachment[k] = v + } + invo := invocation.NewRPCInvocation("EditManagement", args, invAttachment) + if interceptor == nil { + result := base.XXX_GetProxyImpl().Invoke(ctx, invo) + return result, result.Error() + } + info := &grpc_go.UnaryServerInfo{ + Server: srv, + FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string), + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + result := base.XXX_GetProxyImpl().Invoke(ctx, invo) + return result, result.Error() + } + return interceptor(ctx, in, info, handler) +} + +func _Members_EditBoardOfDirectors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(EditBoardOfDirectorsReq) + if err := dec(in); err != nil { + return nil, err + } + base := srv.(dubbo3.Dubbo3GrpcService) + args := []interface{}{} + args = append(args, in) + md, _ := metadata.FromIncomingContext(ctx) + invAttachment := make(map[string]interface{}, len(md)) + for k, v := range md { + invAttachment[k] = v + } + invo := invocation.NewRPCInvocation("EditBoardOfDirectors", args, invAttachment) + if interceptor == nil { + result := base.XXX_GetProxyImpl().Invoke(ctx, invo) + return result, result.Error() + } + info := &grpc_go.UnaryServerInfo{ + Server: srv, + FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string), + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + result := base.XXX_GetProxyImpl().Invoke(ctx, invo) + return result, result.Error() + } + return interceptor(ctx, in, info, handler) +} + +func _Members_EditCommitteeAppointments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(EditCommitteeAppointmentsReq) + if err := dec(in); err != nil { + return nil, err + } + base := srv.(dubbo3.Dubbo3GrpcService) + args := []interface{}{} + args = append(args, in) + md, _ := metadata.FromIncomingContext(ctx) + invAttachment := make(map[string]interface{}, len(md)) + for k, v := range md { + invAttachment[k] = v + } + invo := invocation.NewRPCInvocation("EditCommitteeAppointments", args, invAttachment) + if interceptor == nil { + result := base.XXX_GetProxyImpl().Invoke(ctx, invo) + return result, result.Error() + } + info := &grpc_go.UnaryServerInfo{ + Server: srv, + FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string), + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + result := base.XXX_GetProxyImpl().Invoke(ctx, invo) + return result, result.Error() + } + return interceptor(ctx, in, info, handler) +} + +// Members_ServiceDesc is the grpc_go.ServiceDesc for Members service. +// It's only intended for direct use with grpc_go.RegisterService, +// and not to be introspected or modified (even as a copy) +var Members_ServiceDesc = grpc_go.ServiceDesc{ + ServiceName: "members.Members", + HandlerType: (*MembersServer)(nil), + Methods: []grpc_go.MethodDesc{ + { + MethodName: "AddMember", + Handler: _Members_AddMember_Handler, + }, + { + MethodName: "EditMember", + Handler: _Members_EditMember_Handler, + }, + { + MethodName: "DeleteMember", + Handler: _Members_DeleteMember_Handler, + }, + { + MethodName: "GetMemberList", + Handler: _Members_GetMemberList_Handler, + }, + { + MethodName: "EditManagement", + Handler: _Members_EditManagement_Handler, + }, + { + MethodName: "EditBoardOfDirectors", + Handler: _Members_EditBoardOfDirectors_Handler, + }, + { + MethodName: "EditCommitteeAppointments", + Handler: _Members_EditCommitteeAppointments_Handler, + }, + }, + Streams: []grpc_go.StreamDesc{}, + Metadata: "api/members/members.proto", +} diff --git a/pkg/router/router.go b/pkg/router/router.go index 83d1ced..d375847 100644 --- a/pkg/router/router.go +++ b/pkg/router/router.go @@ -12,6 +12,7 @@ import ( "fonchain-fiee/pkg/service/governance" imports "fonchain-fiee/pkg/service/import" "fonchain-fiee/pkg/service/lang" + "fonchain-fiee/pkg/service/members" "fonchain-fiee/pkg/service/pressreleases" "fonchain-fiee/pkg/service/qr" "fonchain-fiee/pkg/service/redirect" @@ -212,6 +213,22 @@ func NewRouter() *gin.Engine { emailAlertsRoute.POST("/submit", emailAlert.EmailAlertSubmit) emailAlertsRouteLogin.POST("/list", emailAlert.GetEmailInformationList) } + { + // 成员管理 + membersRoute := v1.Group("/members") + membersRouteLogin := membersRoute.Group("", middleware.CheckWebLogin(service.AccountProvider)) + + membersRouteLogin.POST("/add", members.AddMember) + membersRouteLogin.POST("/list", members.GetMemberList) + membersRouteLogin.POST("/edit", members.EditMember) + membersRouteLogin.POST("/delete", members.DeleteMember) + // 成员信息管理 + membersRouteLogin.POST("/management/edit", members.EditManagement) + // 董事会信息管理 + membersRouteLogin.POST("/boardofdirectors/edit", members.EditBoardOfDirectors) + // 委员会任命管理 + membersRouteLogin.POST("/committeeappointments/edit", members.EditCommitteeAppointments) + } { importRoute := v1.Group("/import") importRoute.Use(middleware.CheckWebLogin(service.AccountProvider)) diff --git a/pkg/service/init.go b/pkg/service/init.go index 90b679a..f28467b 100644 --- a/pkg/service/init.go +++ b/pkg/service/init.go @@ -9,6 +9,7 @@ import ( "fonchain-fiee/api/emailAlerts" "fonchain-fiee/api/files" "fonchain-fiee/api/governance" + "fonchain-fiee/api/members" "fonchain-fiee/api/order" "fonchain-fiee/api/payment" "fonchain-fiee/api/pressreleases" @@ -35,6 +36,7 @@ var PressReleasesProvider = new(pressreleases.PressReleasesClientImpl) var SecFilingProvider = new(secFilings.SecFilingsClientImpl) var ReportsProvider = new(reports.ReportsClientImpl) var EmailAlertsProvider = new(emailAlerts.EmailAlertsClientImpl) +var MembersProvider = new(members.MembersClientImpl) func init() { config.SetConsumerService(BundleProvider) @@ -49,6 +51,7 @@ func init() { config.SetConsumerService(SecFilingProvider) config.SetConsumerService(ReportsProvider) config.SetConsumerService(EmailAlertsProvider) + config.SetConsumerService(MembersProvider) if err := config.Load(); err != nil { panic(err) diff --git a/pkg/service/members/members.go b/pkg/service/members/members.go new file mode 100644 index 0000000..4e801ba --- /dev/null +++ b/pkg/service/members/members.go @@ -0,0 +1,122 @@ +package members + +import ( + "fonchain-fiee/api/members" + "fonchain-fiee/pkg/model/login" + "fonchain-fiee/pkg/service" + + "github.com/gin-gonic/gin" +) + +func AddMember(ctx *gin.Context) { + var req members.AddMemberReq + if err := ctx.ShouldBindJSON(&req); err != nil { + service.Error(ctx, err) + return + } + user := login.GetUserInfoFromC(ctx) + req.Operator = user.Name + req.OperatorId = int32(user.ID) + resp, err := service.MembersProvider.AddMember(ctx, &req) + if err != nil { + service.Error(ctx, err) + return + } + service.Success(ctx, resp) +} + +func GetMemberList(ctx *gin.Context) { + var req members.GetMemberListReq + if err := ctx.ShouldBindJSON(&req); err != nil { + service.Error(ctx, err) + return + } + resp, err := service.MembersProvider.GetMemberList(ctx, &req) + if err != nil { + service.Error(ctx, err) + return + } + service.Success(ctx, resp) +} + +func EditMember(ctx *gin.Context) { + var req members.EditMemberReq + if err := ctx.ShouldBindJSON(&req); err != nil { + service.Error(ctx, err) + return + } + user := login.GetUserInfoFromC(ctx) + req.Operator = user.Name + req.OperatorId = int32(user.ID) + resp, err := service.MembersProvider.EditMember(ctx, &req) + if err != nil { + service.Error(ctx, err) + return + } + service.Success(ctx, resp) +} + +func DeleteMember(ctx *gin.Context) { + var req members.DeleteMemberReq + if err := ctx.ShouldBindJSON(&req); err != nil { + service.Error(ctx, err) + return + } + resp, err := service.MembersProvider.DeleteMember(ctx, &req) + if err != nil { + service.Error(ctx, err) + return + } + service.Success(ctx, resp) +} + +func EditManagement(ctx *gin.Context) { + var req members.EditManagementReq + if err := ctx.ShouldBindJSON(&req); err != nil { + service.Error(ctx, err) + return + } + user := login.GetUserInfoFromC(ctx) + req.Operator = user.Name + req.OperatorId = int32(user.ID) + resp, err := service.MembersProvider.EditManagement(ctx, &req) + if err != nil { + service.Error(ctx, err) + return + } + service.Success(ctx, resp) +} + +func EditBoardOfDirectors(ctx *gin.Context) { + var req members.EditBoardOfDirectorsReq + if err := ctx.ShouldBindJSON(&req); err != nil { + service.Error(ctx, err) + return + } + user := login.GetUserInfoFromC(ctx) + req.Operator = user.Name + req.OperatorId = int32(user.ID) + resp, err := service.MembersProvider.EditBoardOfDirectors(ctx, &req) + if err != nil { + service.Error(ctx, err) + return + } + service.Success(ctx, resp) +} + +func EditCommitteeAppointments(ctx *gin.Context) { + var req members.EditCommitteeAppointmentsReq + if err := ctx.ShouldBindJSON(&req); err != nil { + service.Error(ctx, err) + return + } + user := login.GetUserInfoFromC(ctx) + req.Operator = user.Name + req.OperatorId = int32(user.ID) + resp, err := service.MembersProvider.EditCommitteeAppointments(ctx, &req) + if err != nil { + service.Error(ctx, err) + return + } + service.Success(ctx, resp) +}