From 49a935d6c61c230464584244fce8e6963a0433e8 Mon Sep 17 00:00:00 2001 From: sxy <3187870250@qq.com> Date: Fri, 13 Jun 2025 10:34:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/secFilings/secFilings.pb.go | 1298 +++++++++++++++++++++ api/secFilings/secFilings.proto | 110 ++ api/secFilings/secFilings.validator.pb.go | 89 ++ api/secFilings/secFilings_triple.pb.go | 417 +++++++ conf/dubbogo.yaml | 6 +- docs/dev/dubbogo.yaml | 4 + docs/prod/dubbogo.yaml | 4 + pkg/router/router.go | 1 + pkg/router/secfiling.go | 24 + pkg/service/init.go | 20 +- pkg/service/secfilings/secfilings.go | 201 ++++ 11 files changed, 2165 insertions(+), 9 deletions(-) create mode 100644 api/secFilings/secFilings.pb.go create mode 100644 api/secFilings/secFilings.proto create mode 100644 api/secFilings/secFilings.validator.pb.go create mode 100644 api/secFilings/secFilings_triple.pb.go create mode 100644 pkg/router/secfiling.go create mode 100644 pkg/service/secfilings/secfilings.go diff --git a/api/secFilings/secFilings.pb.go b/api/secFilings/secFilings.pb.go new file mode 100644 index 0000000..19e9cee --- /dev/null +++ b/api/secFilings/secFilings.pb.go @@ -0,0 +1,1298 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.1 +// protoc v5.29.2 +// source: api/secFilings/secFilings.proto + +package secFilings + +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 IsSecFilingExistReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + FilingDate string `protobuf:"bytes,1,opt,name=filingDate,proto3" json:"filingDate,omitempty"` + Form string `protobuf:"bytes,2,opt,name=form,proto3" json:"form,omitempty"` + FinalLink string `protobuf:"bytes,3,opt,name=finalLink,proto3" json:"finalLink,omitempty"` +} + +func (x *IsSecFilingExistReq) Reset() { + *x = IsSecFilingExistReq{} + mi := &file_api_secFilings_secFilings_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *IsSecFilingExistReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IsSecFilingExistReq) ProtoMessage() {} + +func (x *IsSecFilingExistReq) ProtoReflect() protoreflect.Message { + mi := &file_api_secFilings_secFilings_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use IsSecFilingExistReq.ProtoReflect.Descriptor instead. +func (*IsSecFilingExistReq) Descriptor() ([]byte, []int) { + return file_api_secFilings_secFilings_proto_rawDescGZIP(), []int{0} +} + +func (x *IsSecFilingExistReq) GetFilingDate() string { + if x != nil { + return x.FilingDate + } + return "" +} + +func (x *IsSecFilingExistReq) GetForm() string { + if x != nil { + return x.Form + } + return "" +} + +func (x *IsSecFilingExistReq) GetFinalLink() string { + if x != nil { + return x.FinalLink + } + return "" +} + +type IsSecFilingExistResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Exist bool `protobuf:"varint,1,opt,name=exist,proto3" json:"exist,omitempty"` +} + +func (x *IsSecFilingExistResp) Reset() { + *x = IsSecFilingExistResp{} + mi := &file_api_secFilings_secFilings_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *IsSecFilingExistResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IsSecFilingExistResp) ProtoMessage() {} + +func (x *IsSecFilingExistResp) ProtoReflect() protoreflect.Message { + mi := &file_api_secFilings_secFilings_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use IsSecFilingExistResp.ProtoReflect.Descriptor instead. +func (*IsSecFilingExistResp) Descriptor() ([]byte, []int) { + return file_api_secFilings_secFilings_proto_rawDescGZIP(), []int{1} +} + +func (x *IsSecFilingExistResp) GetExist() bool { + if x != nil { + return x.Exist + } + return false +} + +type CommonResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` + FilingKey string `protobuf:"bytes,2,opt,name=filingKey,json=filing_key,proto3" json:"filingKey,omitempty"` +} + +func (x *CommonResp) Reset() { + *x = CommonResp{} + mi := &file_api_secFilings_secFilings_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CommonResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CommonResp) ProtoMessage() {} + +func (x *CommonResp) ProtoReflect() protoreflect.Message { + mi := &file_api_secFilings_secFilings_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CommonResp.ProtoReflect.Descriptor instead. +func (*CommonResp) Descriptor() ([]byte, []int) { + return file_api_secFilings_secFilings_proto_rawDescGZIP(), []int{2} +} + +func (x *CommonResp) GetMsg() string { + if x != nil { + return x.Msg + } + return "" +} + +func (x *CommonResp) GetFilingKey() string { + if x != nil { + return x.FilingKey + } + return "" +} + +type SecFiling struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Idx int32 `protobuf:"varint,1,opt,name=idx,proto3" json:"idx,omitempty"` + FilingKey string `protobuf:"bytes,2,opt,name=filingKey,json=filing_key,proto3" json:"filingKey,omitempty"` + FilingDate string `protobuf:"bytes,3,opt,name=filingDate,json=filing_date,proto3" json:"filingDate,omitempty"` + Form string `protobuf:"bytes,4,opt,name=form,proto3" json:"form,omitempty"` + Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + FormDescription string `protobuf:"bytes,6,opt,name=formDescription,json=form_description,proto3" json:"formDescription,omitempty"` + FileLink string `protobuf:"bytes,7,opt,name=fileLink,json=file_link,proto3" json:"fileLink,omitempty"` + DataFiles []*DataFiles `protobuf:"bytes,8,rep,name=dataFiles,json=data_files,proto3" json:"dataFiles,omitempty"` + PdfFile string `protobuf:"bytes,9,opt,name=pdfFile,json=pdf_file,proto3" json:"pdfFile,omitempty"` + WordFile string `protobuf:"bytes,10,opt,name=wordFile,json=word_file,proto3" json:"wordFile,omitempty"` + ExcelFile string `protobuf:"bytes,11,opt,name=excelFile,json=excel_file,proto3" json:"excelFile,omitempty"` + Status int32 `protobuf:"varint,12,opt,name=status,proto3" json:"status,omitempty"` + Operator string `protobuf:"bytes,13,opt,name=operator,proto3" json:"operator,omitempty"` + OperatorId int32 `protobuf:"varint,14,opt,name=operatorId,json=operator_id,proto3" json:"operatorId,omitempty"` + CreatedAt string `protobuf:"bytes,15,opt,name=createdAt,json=created_at,proto3" json:"createdAt,omitempty"` + UpdatedAt string `protobuf:"bytes,16,opt,name=updatedAt,json=updated_at,proto3" json:"updatedAt,omitempty"` +} + +func (x *SecFiling) Reset() { + *x = SecFiling{} + mi := &file_api_secFilings_secFilings_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SecFiling) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SecFiling) ProtoMessage() {} + +func (x *SecFiling) ProtoReflect() protoreflect.Message { + mi := &file_api_secFilings_secFilings_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SecFiling.ProtoReflect.Descriptor instead. +func (*SecFiling) Descriptor() ([]byte, []int) { + return file_api_secFilings_secFilings_proto_rawDescGZIP(), []int{3} +} + +func (x *SecFiling) GetIdx() int32 { + if x != nil { + return x.Idx + } + return 0 +} + +func (x *SecFiling) GetFilingKey() string { + if x != nil { + return x.FilingKey + } + return "" +} + +func (x *SecFiling) GetFilingDate() string { + if x != nil { + return x.FilingDate + } + return "" +} + +func (x *SecFiling) GetForm() string { + if x != nil { + return x.Form + } + return "" +} + +func (x *SecFiling) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *SecFiling) GetFormDescription() string { + if x != nil { + return x.FormDescription + } + return "" +} + +func (x *SecFiling) GetFileLink() string { + if x != nil { + return x.FileLink + } + return "" +} + +func (x *SecFiling) GetDataFiles() []*DataFiles { + if x != nil { + return x.DataFiles + } + return nil +} + +func (x *SecFiling) GetPdfFile() string { + if x != nil { + return x.PdfFile + } + return "" +} + +func (x *SecFiling) GetWordFile() string { + if x != nil { + return x.WordFile + } + return "" +} + +func (x *SecFiling) GetExcelFile() string { + if x != nil { + return x.ExcelFile + } + return "" +} + +func (x *SecFiling) GetStatus() int32 { + if x != nil { + return x.Status + } + return 0 +} + +func (x *SecFiling) GetOperator() string { + if x != nil { + return x.Operator + } + return "" +} + +func (x *SecFiling) GetOperatorId() int32 { + if x != nil { + return x.OperatorId + } + return 0 +} + +func (x *SecFiling) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" +} + +func (x *SecFiling) GetUpdatedAt() string { + if x != nil { + return x.UpdatedAt + } + return "" +} + +type DataFiles struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` + FileUrl string `protobuf:"bytes,2,opt,name=fileUrl,json=file_url,proto3" json:"fileUrl,omitempty"` +} + +func (x *DataFiles) Reset() { + *x = DataFiles{} + mi := &file_api_secFilings_secFilings_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DataFiles) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DataFiles) ProtoMessage() {} + +func (x *DataFiles) ProtoReflect() protoreflect.Message { + mi := &file_api_secFilings_secFilings_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DataFiles.ProtoReflect.Descriptor instead. +func (*DataFiles) Descriptor() ([]byte, []int) { + return file_api_secFilings_secFilings_proto_rawDescGZIP(), []int{4} +} + +func (x *DataFiles) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *DataFiles) GetFileUrl() string { + if x != nil { + return x.FileUrl + } + return "" +} + +type CreateSecFilingReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + FilingDate string `protobuf:"bytes,1,opt,name=filingDate,proto3" json:"filingDate,omitempty"` + Form string `protobuf:"bytes,2,opt,name=form,proto3" json:"form,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + FormDescription string `protobuf:"bytes,4,opt,name=formDescription,proto3" json:"formDescription,omitempty"` + FileLink string `protobuf:"bytes,5,opt,name=fileLink,proto3" json:"fileLink,omitempty"` + DataFiles []*DataFiles `protobuf:"bytes,6,rep,name=dataFiles,proto3" json:"dataFiles,omitempty"` + PdfFile string `protobuf:"bytes,7,opt,name=pdfFile,proto3" json:"pdfFile,omitempty"` + WordFile string `protobuf:"bytes,8,opt,name=wordFile,proto3" json:"wordFile,omitempty"` + ExcelFile string `protobuf:"bytes,9,opt,name=excelFile,proto3" json:"excelFile,omitempty"` + Operator string `protobuf:"bytes,10,opt,name=operator,proto3" json:"operator,omitempty"` + OperatorId int32 `protobuf:"varint,11,opt,name=operatorId,proto3" json:"operatorId,omitempty"` +} + +func (x *CreateSecFilingReq) Reset() { + *x = CreateSecFilingReq{} + mi := &file_api_secFilings_secFilings_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateSecFilingReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateSecFilingReq) ProtoMessage() {} + +func (x *CreateSecFilingReq) ProtoReflect() protoreflect.Message { + mi := &file_api_secFilings_secFilings_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateSecFilingReq.ProtoReflect.Descriptor instead. +func (*CreateSecFilingReq) Descriptor() ([]byte, []int) { + return file_api_secFilings_secFilings_proto_rawDescGZIP(), []int{5} +} + +func (x *CreateSecFilingReq) GetFilingDate() string { + if x != nil { + return x.FilingDate + } + return "" +} + +func (x *CreateSecFilingReq) GetForm() string { + if x != nil { + return x.Form + } + return "" +} + +func (x *CreateSecFilingReq) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *CreateSecFilingReq) GetFormDescription() string { + if x != nil { + return x.FormDescription + } + return "" +} + +func (x *CreateSecFilingReq) GetFileLink() string { + if x != nil { + return x.FileLink + } + return "" +} + +func (x *CreateSecFilingReq) GetDataFiles() []*DataFiles { + if x != nil { + return x.DataFiles + } + return nil +} + +func (x *CreateSecFilingReq) GetPdfFile() string { + if x != nil { + return x.PdfFile + } + return "" +} + +func (x *CreateSecFilingReq) GetWordFile() string { + if x != nil { + return x.WordFile + } + return "" +} + +func (x *CreateSecFilingReq) GetExcelFile() string { + if x != nil { + return x.ExcelFile + } + return "" +} + +func (x *CreateSecFilingReq) GetOperator() string { + if x != nil { + return x.Operator + } + return "" +} + +func (x *CreateSecFilingReq) GetOperatorId() int32 { + if x != nil { + return x.OperatorId + } + return 0 +} + +type UpdateSecFilingReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + FilingKey string `protobuf:"bytes,1,opt,name=filingKey,proto3" json:"filingKey,omitempty"` + Form string `protobuf:"bytes,2,opt,name=form,proto3" json:"form,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + FormDescription string `protobuf:"bytes,4,opt,name=formDescription,proto3" json:"formDescription,omitempty"` + FileLink string `protobuf:"bytes,5,opt,name=fileLink,proto3" json:"fileLink,omitempty"` + DataFiles []*DataFiles `protobuf:"bytes,6,rep,name=dataFiles,proto3" json:"dataFiles,omitempty"` + PdfFile string `protobuf:"bytes,7,opt,name=pdfFile,proto3" json:"pdfFile,omitempty"` + WordFile string `protobuf:"bytes,8,opt,name=wordFile,proto3" json:"wordFile,omitempty"` + ExcelFile string `protobuf:"bytes,9,opt,name=excelFile,proto3" json:"excelFile,omitempty"` + Operator string `protobuf:"bytes,10,opt,name=operator,proto3" json:"operator,omitempty"` + OperatorId int32 `protobuf:"varint,11,opt,name=operatorId,proto3" json:"operatorId,omitempty"` + FilingDate string `protobuf:"bytes,12,opt,name=filingDate,proto3" json:"filingDate,omitempty"` +} + +func (x *UpdateSecFilingReq) Reset() { + *x = UpdateSecFilingReq{} + mi := &file_api_secFilings_secFilings_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateSecFilingReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateSecFilingReq) ProtoMessage() {} + +func (x *UpdateSecFilingReq) ProtoReflect() protoreflect.Message { + mi := &file_api_secFilings_secFilings_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateSecFilingReq.ProtoReflect.Descriptor instead. +func (*UpdateSecFilingReq) Descriptor() ([]byte, []int) { + return file_api_secFilings_secFilings_proto_rawDescGZIP(), []int{6} +} + +func (x *UpdateSecFilingReq) GetFilingKey() string { + if x != nil { + return x.FilingKey + } + return "" +} + +func (x *UpdateSecFilingReq) GetForm() string { + if x != nil { + return x.Form + } + return "" +} + +func (x *UpdateSecFilingReq) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *UpdateSecFilingReq) GetFormDescription() string { + if x != nil { + return x.FormDescription + } + return "" +} + +func (x *UpdateSecFilingReq) GetFileLink() string { + if x != nil { + return x.FileLink + } + return "" +} + +func (x *UpdateSecFilingReq) GetDataFiles() []*DataFiles { + if x != nil { + return x.DataFiles + } + return nil +} + +func (x *UpdateSecFilingReq) GetPdfFile() string { + if x != nil { + return x.PdfFile + } + return "" +} + +func (x *UpdateSecFilingReq) GetWordFile() string { + if x != nil { + return x.WordFile + } + return "" +} + +func (x *UpdateSecFilingReq) GetExcelFile() string { + if x != nil { + return x.ExcelFile + } + return "" +} + +func (x *UpdateSecFilingReq) GetOperator() string { + if x != nil { + return x.Operator + } + return "" +} + +func (x *UpdateSecFilingReq) GetOperatorId() int32 { + if x != nil { + return x.OperatorId + } + return 0 +} + +func (x *UpdateSecFilingReq) GetFilingDate() string { + if x != nil { + return x.FilingDate + } + return "" +} + +type DetailSecFilingReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + FilingKey string `protobuf:"bytes,1,opt,name=filingKey,proto3" json:"filingKey,omitempty"` +} + +func (x *DetailSecFilingReq) Reset() { + *x = DetailSecFilingReq{} + mi := &file_api_secFilings_secFilings_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DetailSecFilingReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DetailSecFilingReq) ProtoMessage() {} + +func (x *DetailSecFilingReq) ProtoReflect() protoreflect.Message { + mi := &file_api_secFilings_secFilings_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DetailSecFilingReq.ProtoReflect.Descriptor instead. +func (*DetailSecFilingReq) Descriptor() ([]byte, []int) { + return file_api_secFilings_secFilings_proto_rawDescGZIP(), []int{7} +} + +func (x *DetailSecFilingReq) GetFilingKey() string { + if x != nil { + return x.FilingKey + } + return "" +} + +type SecFilingDetailResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` + Data *SecFiling `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` +} + +func (x *SecFilingDetailResp) Reset() { + *x = SecFilingDetailResp{} + mi := &file_api_secFilings_secFilings_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SecFilingDetailResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SecFilingDetailResp) ProtoMessage() {} + +func (x *SecFilingDetailResp) ProtoReflect() protoreflect.Message { + mi := &file_api_secFilings_secFilings_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SecFilingDetailResp.ProtoReflect.Descriptor instead. +func (*SecFilingDetailResp) Descriptor() ([]byte, []int) { + return file_api_secFilings_secFilings_proto_rawDescGZIP(), []int{8} +} + +func (x *SecFilingDetailResp) GetMsg() string { + if x != nil { + return x.Msg + } + return "" +} + +func (x *SecFilingDetailResp) GetData() *SecFiling { + if x != nil { + return x.Data + } + return nil +} + +type ListSecFilingReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Page uint32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` + PageSize uint32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` + Form string `protobuf:"bytes,3,opt,name=form,proto3" json:"form,omitempty"` + FilingDateBegin string `protobuf:"bytes,4,opt,name=filingDateBegin,proto3" json:"filingDateBegin,omitempty"` + FilingDateEnd string `protobuf:"bytes,5,opt,name=filingDateEnd,proto3" json:"filingDateEnd,omitempty"` + Status int32 `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *ListSecFilingReq) Reset() { + *x = ListSecFilingReq{} + mi := &file_api_secFilings_secFilings_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListSecFilingReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSecFilingReq) ProtoMessage() {} + +func (x *ListSecFilingReq) ProtoReflect() protoreflect.Message { + mi := &file_api_secFilings_secFilings_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListSecFilingReq.ProtoReflect.Descriptor instead. +func (*ListSecFilingReq) Descriptor() ([]byte, []int) { + return file_api_secFilings_secFilings_proto_rawDescGZIP(), []int{9} +} + +func (x *ListSecFilingReq) GetPage() uint32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *ListSecFilingReq) GetPageSize() uint32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListSecFilingReq) GetForm() string { + if x != nil { + return x.Form + } + return "" +} + +func (x *ListSecFilingReq) GetFilingDateBegin() string { + if x != nil { + return x.FilingDateBegin + } + return "" +} + +func (x *ListSecFilingReq) GetFilingDateEnd() string { + if x != nil { + return x.FilingDateEnd + } + return "" +} + +func (x *ListSecFilingReq) GetStatus() int32 { + if x != nil { + return x.Status + } + return 0 +} + +type SecFilingListResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` + Total uint32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` + Data []*SecFiling `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` +} + +func (x *SecFilingListResp) Reset() { + *x = SecFilingListResp{} + mi := &file_api_secFilings_secFilings_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SecFilingListResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SecFilingListResp) ProtoMessage() {} + +func (x *SecFilingListResp) ProtoReflect() protoreflect.Message { + mi := &file_api_secFilings_secFilings_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SecFilingListResp.ProtoReflect.Descriptor instead. +func (*SecFilingListResp) Descriptor() ([]byte, []int) { + return file_api_secFilings_secFilings_proto_rawDescGZIP(), []int{10} +} + +func (x *SecFilingListResp) GetMsg() string { + if x != nil { + return x.Msg + } + return "" +} + +func (x *SecFilingListResp) GetTotal() uint32 { + if x != nil { + return x.Total + } + return 0 +} + +func (x *SecFilingListResp) GetData() []*SecFiling { + if x != nil { + return x.Data + } + return nil +} + +type DeleteSecFilingReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + FilingKey string `protobuf:"bytes,1,opt,name=filingKey,proto3" json:"filingKey,omitempty"` + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + OperatorId int32 `protobuf:"varint,3,opt,name=operatorId,proto3" json:"operatorId,omitempty"` +} + +func (x *DeleteSecFilingReq) Reset() { + *x = DeleteSecFilingReq{} + mi := &file_api_secFilings_secFilings_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteSecFilingReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteSecFilingReq) ProtoMessage() {} + +func (x *DeleteSecFilingReq) ProtoReflect() protoreflect.Message { + mi := &file_api_secFilings_secFilings_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteSecFilingReq.ProtoReflect.Descriptor instead. +func (*DeleteSecFilingReq) Descriptor() ([]byte, []int) { + return file_api_secFilings_secFilings_proto_rawDescGZIP(), []int{11} +} + +func (x *DeleteSecFilingReq) GetFilingKey() string { + if x != nil { + return x.FilingKey + } + return "" +} + +func (x *DeleteSecFilingReq) GetOperator() string { + if x != nil { + return x.Operator + } + return "" +} + +func (x *DeleteSecFilingReq) GetOperatorId() int32 { + if x != nil { + return x.OperatorId + } + return 0 +} + +type UpdateSecFilingStatusReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + FilingKey string `protobuf:"bytes,1,opt,name=filingKey,proto3" json:"filingKey,omitempty"` + Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` + Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` + OperatorId int32 `protobuf:"varint,4,opt,name=operatorId,proto3" json:"operatorId,omitempty"` +} + +func (x *UpdateSecFilingStatusReq) Reset() { + *x = UpdateSecFilingStatusReq{} + mi := &file_api_secFilings_secFilings_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateSecFilingStatusReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateSecFilingStatusReq) ProtoMessage() {} + +func (x *UpdateSecFilingStatusReq) ProtoReflect() protoreflect.Message { + mi := &file_api_secFilings_secFilings_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateSecFilingStatusReq.ProtoReflect.Descriptor instead. +func (*UpdateSecFilingStatusReq) Descriptor() ([]byte, []int) { + return file_api_secFilings_secFilings_proto_rawDescGZIP(), []int{12} +} + +func (x *UpdateSecFilingStatusReq) GetFilingKey() string { + if x != nil { + return x.FilingKey + } + return "" +} + +func (x *UpdateSecFilingStatusReq) GetStatus() int32 { + if x != nil { + return x.Status + } + return 0 +} + +func (x *UpdateSecFilingStatusReq) GetOperator() string { + if x != nil { + return x.Operator + } + return "" +} + +func (x *UpdateSecFilingStatusReq) GetOperatorId() int32 { + if x != nil { + return x.OperatorId + } + return 0 +} + +var File_api_secFilings_secFilings_proto protoreflect.FileDescriptor + +var file_api_secFilings_secFilings_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x73, + 0x2f, 0x73, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x0a, 0x73, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x67, 0x0a, + 0x13, 0x49, 0x73, 0x53, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x69, 0x73, + 0x74, 0x52, 0x65, 0x71, 0x12, 0x1e, 0x0a, 0x0a, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x44, 0x61, + 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, + 0x44, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x1c, 0x0a, 0x09, 0x66, 0x69, 0x6e, 0x61, + 0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x6e, + 0x61, 0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x22, 0x2c, 0x0a, 0x14, 0x49, 0x73, 0x53, 0x65, 0x63, 0x46, + 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, + 0x0a, 0x05, 0x65, 0x78, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x65, + 0x78, 0x69, 0x73, 0x74, 0x22, 0x3d, 0x0a, 0x0a, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6d, 0x73, 0x67, 0x12, 0x1d, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x4b, 0x65, + 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x5f, + 0x6b, 0x65, 0x79, 0x22, 0xfb, 0x03, 0x0a, 0x09, 0x53, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, + 0x67, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, + 0x69, 0x64, 0x78, 0x12, 0x1d, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x4b, 0x65, 0x79, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x6b, + 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x0a, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x64, + 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x0f, 0x66, 0x6f, 0x72, + 0x6d, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x10, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x4c, 0x69, 0x6e, 0x6b, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x6c, 0x69, 0x6e, + 0x6b, 0x12, 0x34, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x08, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x73, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, + 0x73, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x0a, 0x64, 0x61, 0x74, + 0x61, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x07, 0x70, 0x64, 0x66, 0x46, 0x69, + 0x6c, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x64, 0x66, 0x5f, 0x66, 0x69, + 0x6c, 0x65, 0x12, 0x1b, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x12, + 0x1d, 0x0a, 0x09, 0x65, 0x78, 0x63, 0x65, 0x6c, 0x46, 0x69, 0x6c, 0x65, 0x18, 0x0b, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x63, 0x65, 0x6c, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x16, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x64, + 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, + 0x5f, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, + 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, + 0x61, 0x74, 0x12, 0x1d, 0x0a, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, + 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, + 0x74, 0x22, 0x48, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x20, + 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x19, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x65, 0x55, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x22, 0xf5, 0x02, 0x0a, 0x12, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x52, + 0x65, 0x71, 0x12, 0x1e, 0x0a, 0x0a, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x44, 0x61, + 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x0a, 0x0f, 0x66, 0x6f, 0x72, 0x6d, + 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0f, 0x66, 0x6f, 0x72, 0x6d, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x4c, 0x69, 0x6e, 0x6b, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x33, + 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x15, 0x2e, 0x73, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x44, + 0x61, 0x74, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x09, 0x64, 0x61, 0x74, 0x61, 0x46, 0x69, + 0x6c, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x64, 0x66, 0x46, 0x69, 0x6c, 0x65, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x64, 0x66, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x1a, 0x0a, + 0x08, 0x77, 0x6f, 0x72, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x77, 0x6f, 0x72, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x78, 0x63, + 0x65, 0x6c, 0x46, 0x69, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x78, + 0x63, 0x65, 0x6c, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x6f, 0x72, 0x18, 0x0a, 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, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, + 0x72, 0x49, 0x64, 0x22, 0x93, 0x03, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, + 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x66, 0x69, + 0x6c, 0x69, 0x6e, 0x67, 0x4b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, + 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x4b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x6f, 0x72, 0x6d, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x20, 0x0a, 0x0b, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x28, + 0x0a, 0x0f, 0x66, 0x6f, 0x72, 0x6d, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x66, 0x6f, 0x72, 0x6d, 0x44, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, + 0x4c, 0x69, 0x6e, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, + 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x33, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x46, 0x69, 0x6c, 0x65, + 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x73, 0x65, 0x63, 0x46, 0x69, 0x6c, + 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x09, + 0x64, 0x61, 0x74, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x64, 0x66, + 0x46, 0x69, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x64, 0x66, 0x46, + 0x69, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x12, + 0x1c, 0x0a, 0x09, 0x65, 0x78, 0x63, 0x65, 0x6c, 0x46, 0x69, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x65, 0x78, 0x63, 0x65, 0x6c, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x1a, 0x0a, + 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x0a, 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, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x66, 0x69, 0x6c, + 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, + 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x65, 0x22, 0x32, 0x0a, 0x12, 0x44, 0x65, 0x74, + 0x61, 0x69, 0x6c, 0x53, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x12, + 0x1c, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x4b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x4b, 0x65, 0x79, 0x22, 0x52, 0x0a, + 0x13, 0x53, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x29, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x73, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, + 0x73, 0x2e, 0x53, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x52, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x22, 0xbe, 0x01, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x46, 0x69, 0x6c, + 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, + 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70, 0x61, + 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x28, 0x0a, 0x0f, 0x66, 0x69, + 0x6c, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x65, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x65, 0x42, + 0x65, 0x67, 0x69, 0x6e, 0x12, 0x24, 0x0a, 0x0d, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x44, 0x61, + 0x74, 0x65, 0x45, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x66, 0x69, 0x6c, + 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x22, 0x66, 0x0a, 0x11, 0x53, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 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, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, + 0x29, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, + 0x73, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x53, 0x65, 0x63, 0x46, 0x69, + 0x6c, 0x69, 0x6e, 0x67, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x6e, 0x0a, 0x12, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, + 0x12, 0x1c, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x4b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x4b, 0x65, 0x79, 0x12, 0x1a, + 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 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, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, + 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x22, 0x8c, 0x01, 0x0a, 0x18, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x69, 0x6e, + 0x67, 0x4b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x6c, 0x69, + 0x6e, 0x67, 0x4b, 0x65, 0x79, 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, 0x1a, 0x0a, + 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 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, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x32, 0xcb, 0x04, 0x0a, 0x0a, 0x53, 0x65, + 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x4b, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x53, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x12, 0x1e, 0x2e, 0x73, 0x65, + 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, + 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x73, 0x65, + 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, + 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x12, 0x1e, 0x2e, 0x73, 0x65, 0x63, 0x46, 0x69, + 0x6c, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, 0x46, + 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x73, 0x65, 0x63, 0x46, 0x69, + 0x6c, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0f, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x53, 0x65, 0x63, 0x46, + 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x12, 0x1e, 0x2e, 0x73, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, + 0x67, 0x73, 0x2e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x53, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, + 0x6e, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x73, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, + 0x67, 0x73, 0x2e, 0x53, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x4e, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, + 0x53, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x12, 0x1c, 0x2e, 0x73, 0x65, 0x63, 0x46, + 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x46, 0x69, + 0x6c, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x1d, 0x2e, 0x73, 0x65, 0x63, 0x46, 0x69, 0x6c, + 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x53, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x53, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x12, 0x1e, 0x2e, 0x73, 0x65, + 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, + 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x73, 0x65, + 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x10, 0x49, 0x73, 0x53, 0x65, 0x63, 0x46, 0x69, + 0x6c, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x69, 0x73, 0x74, 0x12, 0x1f, 0x2e, 0x73, 0x65, 0x63, 0x46, + 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x49, 0x73, 0x53, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, + 0x6e, 0x67, 0x45, 0x78, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x20, 0x2e, 0x73, 0x65, 0x63, + 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x49, 0x73, 0x53, 0x65, 0x63, 0x46, 0x69, 0x6c, + 0x69, 0x6e, 0x67, 0x45, 0x78, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x57, + 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, + 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x24, 0x2e, 0x73, 0x65, 0x63, 0x46, 0x69, 0x6c, + 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, 0x46, 0x69, + 0x6c, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, + 0x73, 0x65, 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x42, 0x0f, 0x5a, 0x0d, 0x2e, 0x2f, 0x3b, 0x73, 0x65, + 0x63, 0x46, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_api_secFilings_secFilings_proto_rawDescOnce sync.Once + file_api_secFilings_secFilings_proto_rawDescData = file_api_secFilings_secFilings_proto_rawDesc +) + +func file_api_secFilings_secFilings_proto_rawDescGZIP() []byte { + file_api_secFilings_secFilings_proto_rawDescOnce.Do(func() { + file_api_secFilings_secFilings_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_secFilings_secFilings_proto_rawDescData) + }) + return file_api_secFilings_secFilings_proto_rawDescData +} + +var file_api_secFilings_secFilings_proto_msgTypes = make([]protoimpl.MessageInfo, 13) +var file_api_secFilings_secFilings_proto_goTypes = []any{ + (*IsSecFilingExistReq)(nil), // 0: secFilings.IsSecFilingExistReq + (*IsSecFilingExistResp)(nil), // 1: secFilings.IsSecFilingExistResp + (*CommonResp)(nil), // 2: secFilings.CommonResp + (*SecFiling)(nil), // 3: secFilings.SecFiling + (*DataFiles)(nil), // 4: secFilings.DataFiles + (*CreateSecFilingReq)(nil), // 5: secFilings.CreateSecFilingReq + (*UpdateSecFilingReq)(nil), // 6: secFilings.UpdateSecFilingReq + (*DetailSecFilingReq)(nil), // 7: secFilings.DetailSecFilingReq + (*SecFilingDetailResp)(nil), // 8: secFilings.SecFilingDetailResp + (*ListSecFilingReq)(nil), // 9: secFilings.ListSecFilingReq + (*SecFilingListResp)(nil), // 10: secFilings.SecFilingListResp + (*DeleteSecFilingReq)(nil), // 11: secFilings.DeleteSecFilingReq + (*UpdateSecFilingStatusReq)(nil), // 12: secFilings.UpdateSecFilingStatusReq +} +var file_api_secFilings_secFilings_proto_depIdxs = []int32{ + 4, // 0: secFilings.SecFiling.dataFiles:type_name -> secFilings.DataFiles + 4, // 1: secFilings.CreateSecFilingReq.dataFiles:type_name -> secFilings.DataFiles + 4, // 2: secFilings.UpdateSecFilingReq.dataFiles:type_name -> secFilings.DataFiles + 3, // 3: secFilings.SecFilingDetailResp.data:type_name -> secFilings.SecFiling + 3, // 4: secFilings.SecFilingListResp.data:type_name -> secFilings.SecFiling + 5, // 5: secFilings.SecFilings.CreateSecFiling:input_type -> secFilings.CreateSecFilingReq + 6, // 6: secFilings.SecFilings.UpdateSecFiling:input_type -> secFilings.UpdateSecFilingReq + 7, // 7: secFilings.SecFilings.DetailSecFiling:input_type -> secFilings.DetailSecFilingReq + 9, // 8: secFilings.SecFilings.ListSecFiling:input_type -> secFilings.ListSecFilingReq + 11, // 9: secFilings.SecFilings.DeleteSecFiling:input_type -> secFilings.DeleteSecFilingReq + 0, // 10: secFilings.SecFilings.IsSecFilingExist:input_type -> secFilings.IsSecFilingExistReq + 12, // 11: secFilings.SecFilings.UpdateSecFilingStatus:input_type -> secFilings.UpdateSecFilingStatusReq + 2, // 12: secFilings.SecFilings.CreateSecFiling:output_type -> secFilings.CommonResp + 2, // 13: secFilings.SecFilings.UpdateSecFiling:output_type -> secFilings.CommonResp + 8, // 14: secFilings.SecFilings.DetailSecFiling:output_type -> secFilings.SecFilingDetailResp + 10, // 15: secFilings.SecFilings.ListSecFiling:output_type -> secFilings.SecFilingListResp + 2, // 16: secFilings.SecFilings.DeleteSecFiling:output_type -> secFilings.CommonResp + 1, // 17: secFilings.SecFilings.IsSecFilingExist:output_type -> secFilings.IsSecFilingExistResp + 2, // 18: secFilings.SecFilings.UpdateSecFilingStatus:output_type -> secFilings.CommonResp + 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_secFilings_secFilings_proto_init() } +func file_api_secFilings_secFilings_proto_init() { + if File_api_secFilings_secFilings_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_api_secFilings_secFilings_proto_rawDesc, + NumEnums: 0, + NumMessages: 13, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_api_secFilings_secFilings_proto_goTypes, + DependencyIndexes: file_api_secFilings_secFilings_proto_depIdxs, + MessageInfos: file_api_secFilings_secFilings_proto_msgTypes, + }.Build() + File_api_secFilings_secFilings_proto = out.File + file_api_secFilings_secFilings_proto_rawDesc = nil + file_api_secFilings_secFilings_proto_goTypes = nil + file_api_secFilings_secFilings_proto_depIdxs = nil +} diff --git a/api/secFilings/secFilings.proto b/api/secFilings/secFilings.proto new file mode 100644 index 0000000..34f2243 --- /dev/null +++ b/api/secFilings/secFilings.proto @@ -0,0 +1,110 @@ +syntax = "proto3"; +package secFilings; +//import "descriptor.proto"; +//import "validator.proto"; + +option go_package = "./;secFilings"; + +service SecFilings{ + rpc CreateSecFiling(CreateSecFilingReq) returns (CommonResp) {} + rpc UpdateSecFiling(UpdateSecFilingReq) returns (CommonResp) {} + rpc DetailSecFiling(DetailSecFilingReq) returns (SecFilingDetailResp) {} + rpc ListSecFiling(ListSecFilingReq) returns (SecFilingListResp) {} + rpc DeleteSecFiling(DeleteSecFilingReq)returns(CommonResp){} + rpc IsSecFilingExist(IsSecFilingExistReq) returns (IsSecFilingExistResp) {} + rpc UpdateSecFilingStatus(UpdateSecFilingStatusReq) returns(CommonResp) {} + +} +message IsSecFilingExistReq{ + string filingDate = 1; + string form = 2; + string finalLink = 3; +} +message IsSecFilingExistResp{ + bool exist = 1; +} +message CommonResp{ + string msg = 1 [json_name="msg"]; + string filingKey = 2[json_name="filing_key"]; +} +message SecFiling{ + int32 idx = 1 [json_name="idx"]; + string filingKey = 2[json_name="filing_key"]; + string filingDate = 3[json_name="filing_date"]; + string form = 4[json_name="form"]; + string description = 5[json_name="description"]; + string formDescription = 6[json_name="form_description"]; + string fileLink = 7[json_name="file_link"]; + repeated DataFiles dataFiles = 8[json_name="data_files"]; + string pdfFile = 9[json_name="pdf_file"]; + string wordFile = 10[json_name="word_file"]; + string excelFile = 11[json_name="excel_file"]; + int32 status = 12[json_name="status"]; + string operator = 13[json_name="operator"]; + int32 operatorId = 14[json_name="operator_id"]; + string createdAt =15[json_name="created_at"]; + string updatedAt=16[json_name="updated_at"]; +} +message DataFiles { + string description = 1[json_name="description"]; + string fileUrl = 2[json_name="file_url"]; +} +message CreateSecFilingReq{ + string filingDate = 1; + string form = 2; + string description = 3; + string formDescription = 4; + string fileLink = 5; + repeated DataFiles dataFiles = 6; + string pdfFile = 7; + string wordFile = 8; + string excelFile = 9; + string operator = 10; + int32 operatorId = 11; +} +message UpdateSecFilingReq{ + string filingKey = 1; + string form = 2; + string description = 3; + string formDescription = 4; + string fileLink = 5; + repeated DataFiles dataFiles = 6; + string pdfFile = 7; + string wordFile = 8; + string excelFile = 9; + string operator = 10; + int32 operatorId = 11; + string filingDate = 12; + +} +message DetailSecFilingReq{ + string filingKey = 1; +} +message SecFilingDetailResp{ + string msg = 1; + SecFiling data = 2; +} +message ListSecFilingReq{ + uint32 page = 1; + uint32 pageSize = 2; + string form = 3; + string filingDateBegin = 4; + string filingDateEnd = 5; + int32 status = 6; +} +message SecFilingListResp{ + string msg = 1 [json_name="msg"]; + uint32 total = 2 [json_name="total"]; + repeated SecFiling data = 3 [json_name="data"]; +} +message DeleteSecFilingReq { + string filingKey = 1; + string operator = 2; + int32 operatorId = 3; +} +message UpdateSecFilingStatusReq{ + string filingKey = 1; + int32 status = 2; + string operator = 3; + int32 operatorId = 4; +} \ No newline at end of file diff --git a/api/secFilings/secFilings.validator.pb.go b/api/secFilings/secFilings.validator.pb.go new file mode 100644 index 0000000..5306bdd --- /dev/null +++ b/api/secFilings/secFilings.validator.pb.go @@ -0,0 +1,89 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: api/secFilings/secFilings.proto + +package secFilings + +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 *IsSecFilingExistReq) Validate() error { + return nil +} +func (this *IsSecFilingExistResp) Validate() error { + return nil +} +func (this *CommonResp) Validate() error { + return nil +} +func (this *SecFiling) Validate() error { + for _, item := range this.DataFiles { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("DataFiles", err) + } + } + } + return nil +} +func (this *DataFiles) Validate() error { + return nil +} +func (this *CreateSecFilingReq) Validate() error { + for _, item := range this.DataFiles { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("DataFiles", err) + } + } + } + return nil +} +func (this *UpdateSecFilingReq) Validate() error { + for _, item := range this.DataFiles { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("DataFiles", err) + } + } + } + return nil +} +func (this *DetailSecFilingReq) Validate() error { + return nil +} +func (this *SecFilingDetailResp) Validate() error { + if this.Data != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Data); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Data", err) + } + } + return nil +} +func (this *ListSecFilingReq) Validate() error { + return nil +} +func (this *SecFilingListResp) 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 *DeleteSecFilingReq) Validate() error { + return nil +} +func (this *UpdateSecFilingStatusReq) Validate() error { + return nil +} diff --git a/api/secFilings/secFilings_triple.pb.go b/api/secFilings/secFilings_triple.pb.go new file mode 100644 index 0000000..4b1e28d --- /dev/null +++ b/api/secFilings/secFilings_triple.pb.go @@ -0,0 +1,417 @@ +// Code generated by protoc-gen-go-triple. DO NOT EDIT. +// versions: +// - protoc-gen-go-triple v1.0.8 +// - protoc v5.29.2 +// source: api/secFilings/secFilings.proto + +package secFilings + +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 + +// SecFilingsClient is the client API for SecFilings 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 SecFilingsClient interface { + CreateSecFiling(ctx context.Context, in *CreateSecFilingReq, opts ...grpc_go.CallOption) (*CommonResp, common.ErrorWithAttachment) + UpdateSecFiling(ctx context.Context, in *UpdateSecFilingReq, opts ...grpc_go.CallOption) (*CommonResp, common.ErrorWithAttachment) + DetailSecFiling(ctx context.Context, in *DetailSecFilingReq, opts ...grpc_go.CallOption) (*SecFilingDetailResp, common.ErrorWithAttachment) + ListSecFiling(ctx context.Context, in *ListSecFilingReq, opts ...grpc_go.CallOption) (*SecFilingListResp, common.ErrorWithAttachment) + DeleteSecFiling(ctx context.Context, in *DeleteSecFilingReq, opts ...grpc_go.CallOption) (*CommonResp, common.ErrorWithAttachment) + IsSecFilingExist(ctx context.Context, in *IsSecFilingExistReq, opts ...grpc_go.CallOption) (*IsSecFilingExistResp, common.ErrorWithAttachment) + UpdateSecFilingStatus(ctx context.Context, in *UpdateSecFilingStatusReq, opts ...grpc_go.CallOption) (*CommonResp, common.ErrorWithAttachment) +} + +type secFilingsClient struct { + cc *triple.TripleConn +} + +type SecFilingsClientImpl struct { + CreateSecFiling func(ctx context.Context, in *CreateSecFilingReq) (*CommonResp, error) + UpdateSecFiling func(ctx context.Context, in *UpdateSecFilingReq) (*CommonResp, error) + DetailSecFiling func(ctx context.Context, in *DetailSecFilingReq) (*SecFilingDetailResp, error) + ListSecFiling func(ctx context.Context, in *ListSecFilingReq) (*SecFilingListResp, error) + DeleteSecFiling func(ctx context.Context, in *DeleteSecFilingReq) (*CommonResp, error) + IsSecFilingExist func(ctx context.Context, in *IsSecFilingExistReq) (*IsSecFilingExistResp, error) + UpdateSecFilingStatus func(ctx context.Context, in *UpdateSecFilingStatusReq) (*CommonResp, error) +} + +func (c *SecFilingsClientImpl) GetDubboStub(cc *triple.TripleConn) SecFilingsClient { + return NewSecFilingsClient(cc) +} + +func (c *SecFilingsClientImpl) XXX_InterfaceName() string { + return "secFilings.SecFilings" +} + +func NewSecFilingsClient(cc *triple.TripleConn) SecFilingsClient { + return &secFilingsClient{cc} +} + +func (c *secFilingsClient) CreateSecFiling(ctx context.Context, in *CreateSecFilingReq, opts ...grpc_go.CallOption) (*CommonResp, common.ErrorWithAttachment) { + out := new(CommonResp) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/CreateSecFiling", in, out) +} + +func (c *secFilingsClient) UpdateSecFiling(ctx context.Context, in *UpdateSecFilingReq, opts ...grpc_go.CallOption) (*CommonResp, common.ErrorWithAttachment) { + out := new(CommonResp) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/UpdateSecFiling", in, out) +} + +func (c *secFilingsClient) DetailSecFiling(ctx context.Context, in *DetailSecFilingReq, opts ...grpc_go.CallOption) (*SecFilingDetailResp, common.ErrorWithAttachment) { + out := new(SecFilingDetailResp) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/DetailSecFiling", in, out) +} + +func (c *secFilingsClient) ListSecFiling(ctx context.Context, in *ListSecFilingReq, opts ...grpc_go.CallOption) (*SecFilingListResp, common.ErrorWithAttachment) { + out := new(SecFilingListResp) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/ListSecFiling", in, out) +} + +func (c *secFilingsClient) DeleteSecFiling(ctx context.Context, in *DeleteSecFilingReq, opts ...grpc_go.CallOption) (*CommonResp, common.ErrorWithAttachment) { + out := new(CommonResp) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/DeleteSecFiling", in, out) +} + +func (c *secFilingsClient) IsSecFilingExist(ctx context.Context, in *IsSecFilingExistReq, opts ...grpc_go.CallOption) (*IsSecFilingExistResp, common.ErrorWithAttachment) { + out := new(IsSecFilingExistResp) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/IsSecFilingExist", in, out) +} + +func (c *secFilingsClient) UpdateSecFilingStatus(ctx context.Context, in *UpdateSecFilingStatusReq, opts ...grpc_go.CallOption) (*CommonResp, common.ErrorWithAttachment) { + out := new(CommonResp) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/UpdateSecFilingStatus", in, out) +} + +// SecFilingsServer is the server API for SecFilings service. +// All implementations must embed UnimplementedSecFilingsServer +// for forward compatibility +type SecFilingsServer interface { + CreateSecFiling(context.Context, *CreateSecFilingReq) (*CommonResp, error) + UpdateSecFiling(context.Context, *UpdateSecFilingReq) (*CommonResp, error) + DetailSecFiling(context.Context, *DetailSecFilingReq) (*SecFilingDetailResp, error) + ListSecFiling(context.Context, *ListSecFilingReq) (*SecFilingListResp, error) + DeleteSecFiling(context.Context, *DeleteSecFilingReq) (*CommonResp, error) + IsSecFilingExist(context.Context, *IsSecFilingExistReq) (*IsSecFilingExistResp, error) + UpdateSecFilingStatus(context.Context, *UpdateSecFilingStatusReq) (*CommonResp, error) + mustEmbedUnimplementedSecFilingsServer() +} + +// UnimplementedSecFilingsServer must be embedded to have forward compatible implementations. +type UnimplementedSecFilingsServer struct { + proxyImpl protocol.Invoker +} + +func (UnimplementedSecFilingsServer) CreateSecFiling(context.Context, *CreateSecFilingReq) (*CommonResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateSecFiling not implemented") +} +func (UnimplementedSecFilingsServer) UpdateSecFiling(context.Context, *UpdateSecFilingReq) (*CommonResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateSecFiling not implemented") +} +func (UnimplementedSecFilingsServer) DetailSecFiling(context.Context, *DetailSecFilingReq) (*SecFilingDetailResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method DetailSecFiling not implemented") +} +func (UnimplementedSecFilingsServer) ListSecFiling(context.Context, *ListSecFilingReq) (*SecFilingListResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListSecFiling not implemented") +} +func (UnimplementedSecFilingsServer) DeleteSecFiling(context.Context, *DeleteSecFilingReq) (*CommonResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteSecFiling not implemented") +} +func (UnimplementedSecFilingsServer) IsSecFilingExist(context.Context, *IsSecFilingExistReq) (*IsSecFilingExistResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method IsSecFilingExist not implemented") +} +func (UnimplementedSecFilingsServer) UpdateSecFilingStatus(context.Context, *UpdateSecFilingStatusReq) (*CommonResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateSecFilingStatus not implemented") +} +func (s *UnimplementedSecFilingsServer) XXX_SetProxyImpl(impl protocol.Invoker) { + s.proxyImpl = impl +} + +func (s *UnimplementedSecFilingsServer) XXX_GetProxyImpl() protocol.Invoker { + return s.proxyImpl +} + +func (s *UnimplementedSecFilingsServer) XXX_ServiceDesc() *grpc_go.ServiceDesc { + return &SecFilings_ServiceDesc +} +func (s *UnimplementedSecFilingsServer) XXX_InterfaceName() string { + return "secFilings.SecFilings" +} + +func (UnimplementedSecFilingsServer) mustEmbedUnimplementedSecFilingsServer() {} + +// UnsafeSecFilingsServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to SecFilingsServer will +// result in compilation errors. +type UnsafeSecFilingsServer interface { + mustEmbedUnimplementedSecFilingsServer() +} + +func RegisterSecFilingsServer(s grpc_go.ServiceRegistrar, srv SecFilingsServer) { + s.RegisterService(&SecFilings_ServiceDesc, srv) +} + +func _SecFilings_CreateSecFiling_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateSecFilingReq) + 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("CreateSecFiling", 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 _SecFilings_UpdateSecFiling_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateSecFilingReq) + 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("UpdateSecFiling", 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 _SecFilings_DetailSecFiling_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(DetailSecFilingReq) + 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("DetailSecFiling", 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 _SecFilings_ListSecFiling_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(ListSecFilingReq) + 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("ListSecFiling", 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 _SecFilings_DeleteSecFiling_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteSecFilingReq) + 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("DeleteSecFiling", 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 _SecFilings_IsSecFilingExist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(IsSecFilingExistReq) + 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("IsSecFilingExist", 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 _SecFilings_UpdateSecFilingStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateSecFilingStatusReq) + 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("UpdateSecFilingStatus", 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) +} + +// SecFilings_ServiceDesc is the grpc_go.ServiceDesc for SecFilings service. +// It's only intended for direct use with grpc_go.RegisterService, +// and not to be introspected or modified (even as a copy) +var SecFilings_ServiceDesc = grpc_go.ServiceDesc{ + ServiceName: "secFilings.SecFilings", + HandlerType: (*SecFilingsServer)(nil), + Methods: []grpc_go.MethodDesc{ + { + MethodName: "CreateSecFiling", + Handler: _SecFilings_CreateSecFiling_Handler, + }, + { + MethodName: "UpdateSecFiling", + Handler: _SecFilings_UpdateSecFiling_Handler, + }, + { + MethodName: "DetailSecFiling", + Handler: _SecFilings_DetailSecFiling_Handler, + }, + { + MethodName: "ListSecFiling", + Handler: _SecFilings_ListSecFiling_Handler, + }, + { + MethodName: "DeleteSecFiling", + Handler: _SecFilings_DeleteSecFiling_Handler, + }, + { + MethodName: "IsSecFilingExist", + Handler: _SecFilings_IsSecFilingExist_Handler, + }, + { + MethodName: "UpdateSecFilingStatus", + Handler: _SecFilings_UpdateSecFilingStatus_Handler, + }, + }, + Streams: []grpc_go.StreamDesc{}, + Metadata: "api/secFilings/secFilings.proto", +} diff --git a/conf/dubbogo.yaml b/conf/dubbogo.yaml index 02a4946..be14665 100644 --- a/conf/dubbogo.yaml +++ b/conf/dubbogo.yaml @@ -26,4 +26,8 @@ dubbo: BundleClientImpl: protocol: tri retries: 0 - interface: com.fontree.microservices.fiee.bundle # must be compatible with grpc or dubbo-java \ No newline at end of file + interface: com.fontree.microservices.fiee.bundle # must be compatible with grpc or dubbo-java + SecFilingsClientImpl: + protocol: tri + retries: 0 + interface: com.fontree.microservices.fiee.SecFiling \ No newline at end of file diff --git a/docs/dev/dubbogo.yaml b/docs/dev/dubbogo.yaml index 2c63f90..64e9d0a 100644 --- a/docs/dev/dubbogo.yaml +++ b/docs/dev/dubbogo.yaml @@ -42,3 +42,7 @@ dubbo: params: .accessKeyId: "Paymentksl" .secretAccessKey: "BSDY-FDF1-Fontree_payment" + SecFilingsClientImpl: + protocol: tri + retries: 0 + interface: com.fontree.microservices.fiee.SecFiling diff --git a/docs/prod/dubbogo.yaml b/docs/prod/dubbogo.yaml index d27078e..369696b 100644 --- a/docs/prod/dubbogo.yaml +++ b/docs/prod/dubbogo.yaml @@ -42,3 +42,7 @@ dubbo: params: .accessKeyId: "Paymentksl" .secretAccessKey: "BSDY-FDF1-Fontree_payment" + SecFilingsClientImpl: + protocol: tri + retries: 0 + interface: com.fontree.microservices.fiee.SecFiling diff --git a/pkg/router/router.go b/pkg/router/router.go index 6fb0709..08cd905 100644 --- a/pkg/router/router.go +++ b/pkg/router/router.go @@ -41,6 +41,7 @@ func NewRouter() *gin.Engine { BundleRouter(privateGroup) BundleOrderRouter(privateGroup) ValueAddBundleRouter(privateGroup) + SecFilingRouter(privateGroup) { v1.POST("version", version.Version) //版本号公共 diff --git a/pkg/router/secfiling.go b/pkg/router/secfiling.go new file mode 100644 index 0000000..0211346 --- /dev/null +++ b/pkg/router/secfiling.go @@ -0,0 +1,24 @@ +package router + +import ( + "fonchain-fiee/pkg/service/secfilings" + + "github.com/gin-gonic/gin" +) + +func SecFilingRouter(r *gin.RouterGroup) { + SecFilingRouter := r.Group("sec-filing") + //SecFilingRouter.Use(middleware.CheckWebLogin(service.AccountProvider)) + + // sec-filing + secFilingRoute := SecFilingRouter.Group("system") + { + secFilingRoute.POST("create", secfilings.CreateSecFiling) + secFilingRoute.POST("update", secfilings.UpdateSecFiling) + secFilingRoute.POST("list", secfilings.ListSecFiling) + secFilingRoute.POST("detail", secfilings.DetailSecFiling) + secFilingRoute.POST("delete", secfilings.DeleteSecFiling) + secFilingRoute.POST("get", secfilings.GetSecFilings) + secFilingRoute.POST("update/status", secfilings.UpdateSecFilingStatus) + } +} diff --git a/pkg/service/init.go b/pkg/service/init.go index d849aca..81d4cfa 100644 --- a/pkg/service/init.go +++ b/pkg/service/init.go @@ -1,17 +1,19 @@ package service import ( - "dubbo.apache.org/dubbo-go/v3/common/constant" - "dubbo.apache.org/dubbo-go/v3/config" - _ "dubbo.apache.org/dubbo-go/v3/imports" "fmt" "fonchain-fiee/api/account" "fonchain-fiee/api/accountFiee" "fonchain-fiee/api/bundle" "fonchain-fiee/api/order" "fonchain-fiee/api/payment" + "fonchain-fiee/api/secFilings" pkConfig "fonchain-fiee/pkg/config" "os" + + "dubbo.apache.org/dubbo-go/v3/common/constant" + "dubbo.apache.org/dubbo-go/v3/config" + _ "dubbo.apache.org/dubbo-go/v3/imports" ) var AccountProvider = new(account.AccountClientImpl) @@ -20,13 +22,15 @@ var AccountFieeProvider = new(accountFiee.AccountFieeClientImpl) var BundleProvider = new(bundle.BundleClientImpl) var OrderProvider = new(order.OrderClientImpl) var PaymentProvider = new(payment.PaymentCentClientImpl) +var SecFilingProvider = new(secFilings.SecFilingsClientImpl) func init() { - config.SetConsumerService(BundleProvider) - config.SetConsumerService(OrderProvider) - config.SetConsumerService(AccountProvider) - config.SetConsumerService(PaymentProvider) - config.SetConsumerService(AccountFieeProvider) + // config.SetConsumerService(BundleProvider) + // config.SetConsumerService(OrderProvider) + // config.SetConsumerService(AccountProvider) + // config.SetConsumerService(PaymentProvider) + //config.SetConsumerService(AccountFieeProvider) + config.SetConsumerService(SecFilingProvider) if err := config.Load(); err != nil { panic(err) diff --git a/pkg/service/secfilings/secfilings.go b/pkg/service/secfilings/secfilings.go new file mode 100644 index 0000000..c94dd8e --- /dev/null +++ b/pkg/service/secfilings/secfilings.go @@ -0,0 +1,201 @@ +package secfilings + +import ( + "encoding/json" + "errors" + "fmt" + "fonchain-fiee/api/secFilings" + "fonchain-fiee/pkg/service" + "net/http" + "net/url" + + "github.com/gin-gonic/gin" + "github.com/gin-gonic/gin/binding" +) + +func CreateSecFiling(c *gin.Context) { + var req secFilings.CreateSecFilingReq + if err := c.ShouldBindBodyWith(&req, binding.JSON); err != nil { + service.Error(c, err) + return + } + //userInfo := login.GetUserInfoFromC(c) + //req.Operator = userInfo.Name + //req.OperatorId = int32(userInfo.ID) + res, err := service.SecFilingProvider.CreateSecFiling(c, &req) + if err != nil { + service.Error(c, err) + return + } + service.Success(c, res) +} +func UpdateSecFiling(c *gin.Context) { + var req secFilings.UpdateSecFilingReq + if err := c.ShouldBindBodyWith(&req, binding.JSON); err != nil { + service.Error(c, err) + return + } + //userInfo := login.GetUserInfoFromC(c) + //req.Operator = userInfo.Name + //req.OperatorId = int32(userInfo.ID) + res, err := service.SecFilingProvider.UpdateSecFiling(c, &req) + if err != nil { + service.Error(c, err) + return + } + service.Success(c, res) +} +func UpdateSecFilingStatus(c *gin.Context) { + var req secFilings.UpdateSecFilingStatusReq + if err := c.ShouldBindBodyWith(&req, binding.JSON); err != nil { + service.Error(c, err) + return + } + //userInfo := login.GetUserInfoFromC(c) + //req.Operator = userInfo.Name + //req.OperatorId = int32(userInfo.ID) + res, err := service.SecFilingProvider.UpdateSecFilingStatus(c, &req) + if err != nil { + service.Error(c, err) + return + } + service.Success(c, res) +} +func ListSecFiling(c *gin.Context) { + var req secFilings.ListSecFilingReq + if err := c.ShouldBindBodyWith(&req, binding.JSON); err != nil { + service.Error(c, err) + return + } + res, err := service.SecFilingProvider.ListSecFiling(c, &req) + if err != nil { + service.Error(c, err) + return + } + service.Success(c, res) +} +func DetailSecFiling(c *gin.Context) { + var req secFilings.DetailSecFilingReq + if err := c.ShouldBindBodyWith(&req, binding.JSON); err != nil { + service.Error(c, err) + return + } + res, err := service.SecFilingProvider.DetailSecFiling(c, &req) + if err != nil { + service.Error(c, err) + return + } + service.Success(c, res) +} +func DeleteSecFiling(c *gin.Context) { + var req secFilings.DeleteSecFilingReq + if err := c.ShouldBindBodyWith(&req, binding.JSON); err != nil { + service.Error(c, err) + return + } + //userInfo := login.GetUserInfoFromC(c) + //req.Operator = userInfo.Name + //req.OperatorId = int32(userInfo.ID) + res, err := service.SecFilingProvider.DeleteSecFiling(c, &req) + if err != nil { + service.Error(c, err) + return + } + service.Success(c, res) +} + +type GetSecFilingsReq struct { + FilingDate string `json:"filingDate"` + Page string `json:"page"` + Limit string `json:"limit"` +} +type GetSecFilingsData struct { + Symbol string `json:"symbol"` + Cik string `json:"cik"` + FilingDate string `json:"filingDate"` + AcceptedDate string `json:"acceptedDate"` + FormType string `json:"formType"` + Link string `json:"link"` + FinalLink string `json:"finalLink"` + IsSelect bool `json:"isSelect"` +} +type GetSecFilingsResp struct { + //Symbol string `json:"symbol"` + //Cik string `json:"cik"` + FilingDate string `json:"filingDate"` + Form string `json:"form"` + Description string `json:"description"` + FormDescription string `json:"formDescription"` + FileLink string `json:"fileLink"` + IsSelect bool `json:"isSelect"` +} + +func GetSecFilings(c *gin.Context) { + var req GetSecFilingsReq + if err := c.ShouldBindBodyWith(&req, binding.JSON); err != nil { + service.Error(c, err) + return + } + if req.FilingDate == "" { + service.Error(c, errors.New("filing_date is empty")) + return + } + fmt.Println(req.FilingDate) + symbol := "MINM" + beginDate := req.FilingDate + endDate := req.FilingDate + page := "0" + limit := "100" + if req.Page != "" { + page = req.Page + } + if req.Limit != "" { + limit = req.Limit + } + baseURL := "https://financialmodelingprep.com/stable/sec-filings-search/symbol" + params := url.Values{} + params.Add("symbol", symbol) + params.Add("from", beginDate) + params.Add("to", endDate) + params.Add("page", page) + params.Add("limit", limit) + params.Add("apikey", "lBQWUwdjRmfHVZ7e3I1trWe4jw0ZtDct") + + fullURL := fmt.Sprintf("%s?%s", baseURL, params.Encode()) + resp, err := http.Get(fullURL) + if err != nil { + service.Error(c, err) + return + } + defer resp.Body.Close() + if resp.StatusCode != http.StatusOK { + service.Error(c, fmt.Errorf("http status code is not 200")) + return + } + var result []GetSecFilingsData + err = json.NewDecoder(resp.Body).Decode(&result) + if err != nil { + service.Error(c, err) + return + } + var data []*GetSecFilingsResp + fmt.Println(122222) + for _, v := range result { + res, err := service.SecFilingProvider.IsSecFilingExist(c, &secFilings.IsSecFilingExistReq{ + FilingDate: req.FilingDate, + Form: v.FormType, + FinalLink: v.FinalLink, + }) + if err != nil { + service.Error(c, err) + return + } + data = append(data, &GetSecFilingsResp{ + FilingDate: req.FilingDate, + Form: v.FormType, + FileLink: v.FinalLink, + IsSelect: res.Exist, + }) + } + service.Success(c, data) +}