diff --git a/cmd/model/artworkStatement.go b/cmd/model/artworkStatement.go index 6b89248..e12346f 100644 --- a/cmd/model/artworkStatement.go +++ b/cmd/model/artworkStatement.go @@ -10,6 +10,7 @@ type StatementBatch struct { BatchTime string `gorm:"column:batch_time;comment:批次时间;"` MinPrice float32 `gorm:"column:min_price;comment:委托销售底价"` GuaranteePrice float32 `gorm:"column:guarantee_price;comment:以收取保证金;"` + FileUrl string `gorm:"column:file_url,comment:对账单文件地址;"` ArtworkList []StatementDetail `gorm:"foreignKey:BatchId"` } diff --git a/cmd/model/old/supplyinfo.go b/cmd/model/old/supplyinfo.go index cf01c4b..0ca9df2 100644 --- a/cmd/model/old/supplyinfo.go +++ b/cmd/model/old/supplyinfo.go @@ -1,8 +1,10 @@ -package model +package old + +import "github.com/fonchain/fonchain-artistinfo/cmd/model" // SupplyInfo 画作信息补充 type SupplyInfo struct { - Model + model.Model ID uint `gorm:"not null"` ArtworkId string `gorm:"type:varchar(256) default ''"` ArtistId string `gorm:"type:varchar(256) default ''"` diff --git a/pb/artistinfoStatement.proto b/pb/artistinfoStatement.proto index 72720cc..026b007 100644 --- a/pb/artistinfoStatement.proto +++ b/pb/artistinfoStatement.proto @@ -4,13 +4,84 @@ option go_package = "./;artistinfoArtshow"; //import "validate.proto"; import public "google/protobuf/timestamp.proto"; -// import "google/protobuf/empty.proto"; //使用 google.protobuf.Empty +import "google/protobuf/empty.proto"; //使用 google.protobuf.Empty // protoc -I . -I ./pb --proto_path=. --go_out=./pb/artistinfoStatement --go-triple_out=./pb/artistinfoStatement --validate_out="lang=go:./pb/artistinfoStatement" ./pb/artistinfoStatement.proto service Statement { - //版权对账 + rpc CreateStatementBatch(StatementBatchRequest)returns(CreateStatementBatchResponse){}; //创建对账单批次 + rpc BatchCreateStatementBatch(BatchCreateStatementBatchRequest)returns(google.protobuf.Empty){};//批量创建对账单批次 + rpc GetStatementBatchList(GetStatementBatchListRequest)returns(GetStatementBatchListResponse){};//查询对账单批次列表 + rpc CreateStatementDetail(StatementDetailRequest)returns(CreateStatementDetailResponse){};//创建对账单详情 + rpc BatchCreateStatementDetail(BatchCreateStatementDetailRequest)returns(google.protobuf.Empty){};//批量创建对账单详情 + rpc GetStatementDetailList(GetStatementDetailListRequest)returns(GetStatementDetailListResponse){};//查询对账单详情列表 +} - //物权对账 +message StatementPageInfo{ + int64 page =1; + int64 pageSize =2; + int64 total=3; +} +message StatementBatchRequest{ + int32 StType=1; // 字段注释请查看对账单结构体模型 cmd/model/artworkStatement.go + string ArtistUid=2; + string ArtistRealName=3; + int32 FlowStatus=4; + string BatchTime=5; + float MinPrice=6; + float GuaranteePrice=7; + int64 id = 8; + string createdAt =9; + string updatedAt =10; + int64 deletedAt =11; + string fileUrl =12; +} +message CreateStatementBatchResponse{ + int64 id =1; +} +message BatchCreateStatementBatchRequest{ + repeated StatementBatchRequest data =1; +} + + +message StatementDetailRequest{ + int64 BatchId = 1; //字段注释请查看对账单结构体模型 cmd/model/artworkStatement.go + string TfNum = 2; + string ArtworkName =3; + string Ruler = 4; + string SaleNo = 5; + string CompleteDate = 6; + int64 id = 8; + string created_at=9; + string updated_at=10; + int64 deleted_at=11; +} +message CreateStatementDetailResponse{ + int64 id=1; +} +message BatchCreateStatementDetailRequest{ + repeated StatementDetailRequest data =1; +} + +message GetStatementBatchListRequest{ + StatementBatchRequest condition=1; + int64 page =2; + int64 pageSize =3; +} +message GetStatementBatchListResponse{ + repeated StatementBatchRequest data=1; + StatementPageInfo page =2; +} + + +message GetStatementDetailListRequest{ + StatementDetailRequest condition=1; + int64 page =2; + int64 pageSize =3; +} + +message GetStatementDetailListResponse{ + repeated StatementDetailRequest data=1; + StatementPageInfo page =2; } \ No newline at end of file diff --git a/pb/artistinfoStatement/artistinfoStatement.pb.go b/pb/artistinfoStatement/artistinfoStatement.pb.go new file mode 100644 index 0000000..5d50b55 --- /dev/null +++ b/pb/artistinfoStatement/artistinfoStatement.pb.go @@ -0,0 +1,1139 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v4.22.0--rc2 +// source: pb/artistinfoStatement.proto + +package artistinfoArtshow + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + 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) +) + +// Symbols defined in public import of google/protobuf/timestamp.proto. + +type Timestamp = timestamppb.Timestamp + +type StatementPageInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` + PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` + Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` +} + +func (x *StatementPageInfo) Reset() { + *x = StatementPageInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_artistinfoStatement_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StatementPageInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StatementPageInfo) ProtoMessage() {} + +func (x *StatementPageInfo) ProtoReflect() protoreflect.Message { + mi := &file_pb_artistinfoStatement_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 StatementPageInfo.ProtoReflect.Descriptor instead. +func (*StatementPageInfo) Descriptor() ([]byte, []int) { + return file_pb_artistinfoStatement_proto_rawDescGZIP(), []int{0} +} + +func (x *StatementPageInfo) GetPage() int64 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *StatementPageInfo) GetPageSize() int64 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *StatementPageInfo) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +type StatementBatchRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StType int32 `protobuf:"varint,1,opt,name=StType,proto3" json:"StType,omitempty"` // 字段注释请查看对账单结构体模型 cmd/model/artworkStatement.go + ArtistUid string `protobuf:"bytes,2,opt,name=ArtistUid,proto3" json:"ArtistUid,omitempty"` + ArtistRealName string `protobuf:"bytes,3,opt,name=ArtistRealName,proto3" json:"ArtistRealName,omitempty"` + FlowStatus int32 `protobuf:"varint,4,opt,name=FlowStatus,proto3" json:"FlowStatus,omitempty"` + BatchTime string `protobuf:"bytes,5,opt,name=BatchTime,proto3" json:"BatchTime,omitempty"` + MinPrice float32 `protobuf:"fixed32,6,opt,name=MinPrice,proto3" json:"MinPrice,omitempty"` + GuaranteePrice float32 `protobuf:"fixed32,7,opt,name=GuaranteePrice,proto3" json:"GuaranteePrice,omitempty"` + Id int64 `protobuf:"varint,8,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt string `protobuf:"bytes,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"` + UpdatedAt string `protobuf:"bytes,10,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` + DeletedAt int64 `protobuf:"varint,11,opt,name=deletedAt,proto3" json:"deletedAt,omitempty"` + FileUrl string `protobuf:"bytes,12,opt,name=fileUrl,proto3" json:"fileUrl,omitempty"` +} + +func (x *StatementBatchRequest) Reset() { + *x = StatementBatchRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_artistinfoStatement_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StatementBatchRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StatementBatchRequest) ProtoMessage() {} + +func (x *StatementBatchRequest) ProtoReflect() protoreflect.Message { + mi := &file_pb_artistinfoStatement_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 StatementBatchRequest.ProtoReflect.Descriptor instead. +func (*StatementBatchRequest) Descriptor() ([]byte, []int) { + return file_pb_artistinfoStatement_proto_rawDescGZIP(), []int{1} +} + +func (x *StatementBatchRequest) GetStType() int32 { + if x != nil { + return x.StType + } + return 0 +} + +func (x *StatementBatchRequest) GetArtistUid() string { + if x != nil { + return x.ArtistUid + } + return "" +} + +func (x *StatementBatchRequest) GetArtistRealName() string { + if x != nil { + return x.ArtistRealName + } + return "" +} + +func (x *StatementBatchRequest) GetFlowStatus() int32 { + if x != nil { + return x.FlowStatus + } + return 0 +} + +func (x *StatementBatchRequest) GetBatchTime() string { + if x != nil { + return x.BatchTime + } + return "" +} + +func (x *StatementBatchRequest) GetMinPrice() float32 { + if x != nil { + return x.MinPrice + } + return 0 +} + +func (x *StatementBatchRequest) GetGuaranteePrice() float32 { + if x != nil { + return x.GuaranteePrice + } + return 0 +} + +func (x *StatementBatchRequest) GetId() int64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *StatementBatchRequest) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" +} + +func (x *StatementBatchRequest) GetUpdatedAt() string { + if x != nil { + return x.UpdatedAt + } + return "" +} + +func (x *StatementBatchRequest) GetDeletedAt() int64 { + if x != nil { + return x.DeletedAt + } + return 0 +} + +func (x *StatementBatchRequest) GetFileUrl() string { + if x != nil { + return x.FileUrl + } + return "" +} + +type CreateStatementBatchResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *CreateStatementBatchResponse) Reset() { + *x = CreateStatementBatchResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_artistinfoStatement_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateStatementBatchResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateStatementBatchResponse) ProtoMessage() {} + +func (x *CreateStatementBatchResponse) ProtoReflect() protoreflect.Message { + mi := &file_pb_artistinfoStatement_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 CreateStatementBatchResponse.ProtoReflect.Descriptor instead. +func (*CreateStatementBatchResponse) Descriptor() ([]byte, []int) { + return file_pb_artistinfoStatement_proto_rawDescGZIP(), []int{2} +} + +func (x *CreateStatementBatchResponse) GetId() int64 { + if x != nil { + return x.Id + } + return 0 +} + +type BatchCreateStatementBatchRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Data []*StatementBatchRequest `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` +} + +func (x *BatchCreateStatementBatchRequest) Reset() { + *x = BatchCreateStatementBatchRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_artistinfoStatement_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BatchCreateStatementBatchRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchCreateStatementBatchRequest) ProtoMessage() {} + +func (x *BatchCreateStatementBatchRequest) ProtoReflect() protoreflect.Message { + mi := &file_pb_artistinfoStatement_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 BatchCreateStatementBatchRequest.ProtoReflect.Descriptor instead. +func (*BatchCreateStatementBatchRequest) Descriptor() ([]byte, []int) { + return file_pb_artistinfoStatement_proto_rawDescGZIP(), []int{3} +} + +func (x *BatchCreateStatementBatchRequest) GetData() []*StatementBatchRequest { + if x != nil { + return x.Data + } + return nil +} + +type StatementDetailRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BatchId int64 `protobuf:"varint,1,opt,name=BatchId,proto3" json:"BatchId,omitempty"` //字段注释请查看对账单结构体模型 cmd/model/artworkStatement.go + TfNum string `protobuf:"bytes,2,opt,name=TfNum,proto3" json:"TfNum,omitempty"` + ArtworkName string `protobuf:"bytes,3,opt,name=ArtworkName,proto3" json:"ArtworkName,omitempty"` + Ruler string `protobuf:"bytes,4,opt,name=Ruler,proto3" json:"Ruler,omitempty"` + SaleNo string `protobuf:"bytes,5,opt,name=SaleNo,proto3" json:"SaleNo,omitempty"` + CompleteDate string `protobuf:"bytes,6,opt,name=CompleteDate,proto3" json:"CompleteDate,omitempty"` + Id int64 `protobuf:"varint,8,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt string `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt string `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + DeletedAt int64 `protobuf:"varint,11,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` +} + +func (x *StatementDetailRequest) Reset() { + *x = StatementDetailRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_artistinfoStatement_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StatementDetailRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StatementDetailRequest) ProtoMessage() {} + +func (x *StatementDetailRequest) ProtoReflect() protoreflect.Message { + mi := &file_pb_artistinfoStatement_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 StatementDetailRequest.ProtoReflect.Descriptor instead. +func (*StatementDetailRequest) Descriptor() ([]byte, []int) { + return file_pb_artistinfoStatement_proto_rawDescGZIP(), []int{4} +} + +func (x *StatementDetailRequest) GetBatchId() int64 { + if x != nil { + return x.BatchId + } + return 0 +} + +func (x *StatementDetailRequest) GetTfNum() string { + if x != nil { + return x.TfNum + } + return "" +} + +func (x *StatementDetailRequest) GetArtworkName() string { + if x != nil { + return x.ArtworkName + } + return "" +} + +func (x *StatementDetailRequest) GetRuler() string { + if x != nil { + return x.Ruler + } + return "" +} + +func (x *StatementDetailRequest) GetSaleNo() string { + if x != nil { + return x.SaleNo + } + return "" +} + +func (x *StatementDetailRequest) GetCompleteDate() string { + if x != nil { + return x.CompleteDate + } + return "" +} + +func (x *StatementDetailRequest) GetId() int64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *StatementDetailRequest) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" +} + +func (x *StatementDetailRequest) GetUpdatedAt() string { + if x != nil { + return x.UpdatedAt + } + return "" +} + +func (x *StatementDetailRequest) GetDeletedAt() int64 { + if x != nil { + return x.DeletedAt + } + return 0 +} + +type CreateStatementDetailResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *CreateStatementDetailResponse) Reset() { + *x = CreateStatementDetailResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_artistinfoStatement_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateStatementDetailResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateStatementDetailResponse) ProtoMessage() {} + +func (x *CreateStatementDetailResponse) ProtoReflect() protoreflect.Message { + mi := &file_pb_artistinfoStatement_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 CreateStatementDetailResponse.ProtoReflect.Descriptor instead. +func (*CreateStatementDetailResponse) Descriptor() ([]byte, []int) { + return file_pb_artistinfoStatement_proto_rawDescGZIP(), []int{5} +} + +func (x *CreateStatementDetailResponse) GetId() int64 { + if x != nil { + return x.Id + } + return 0 +} + +type BatchCreateStatementDetailRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Data []*StatementDetailRequest `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` +} + +func (x *BatchCreateStatementDetailRequest) Reset() { + *x = BatchCreateStatementDetailRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_artistinfoStatement_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BatchCreateStatementDetailRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchCreateStatementDetailRequest) ProtoMessage() {} + +func (x *BatchCreateStatementDetailRequest) ProtoReflect() protoreflect.Message { + mi := &file_pb_artistinfoStatement_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 BatchCreateStatementDetailRequest.ProtoReflect.Descriptor instead. +func (*BatchCreateStatementDetailRequest) Descriptor() ([]byte, []int) { + return file_pb_artistinfoStatement_proto_rawDescGZIP(), []int{6} +} + +func (x *BatchCreateStatementDetailRequest) GetData() []*StatementDetailRequest { + if x != nil { + return x.Data + } + return nil +} + +type GetStatementBatchListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Condition *StatementBatchRequest `protobuf:"bytes,1,opt,name=condition,proto3" json:"condition,omitempty"` + Page int64 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` + PageSize int64 `protobuf:"varint,3,opt,name=pageSize,proto3" json:"pageSize,omitempty"` +} + +func (x *GetStatementBatchListRequest) Reset() { + *x = GetStatementBatchListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_artistinfoStatement_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetStatementBatchListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetStatementBatchListRequest) ProtoMessage() {} + +func (x *GetStatementBatchListRequest) ProtoReflect() protoreflect.Message { + mi := &file_pb_artistinfoStatement_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 GetStatementBatchListRequest.ProtoReflect.Descriptor instead. +func (*GetStatementBatchListRequest) Descriptor() ([]byte, []int) { + return file_pb_artistinfoStatement_proto_rawDescGZIP(), []int{7} +} + +func (x *GetStatementBatchListRequest) GetCondition() *StatementBatchRequest { + if x != nil { + return x.Condition + } + return nil +} + +func (x *GetStatementBatchListRequest) GetPage() int64 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *GetStatementBatchListRequest) GetPageSize() int64 { + if x != nil { + return x.PageSize + } + return 0 +} + +type GetStatementBatchListResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Data []*StatementBatchRequest `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + Page *StatementPageInfo `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"` +} + +func (x *GetStatementBatchListResponse) Reset() { + *x = GetStatementBatchListResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_artistinfoStatement_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetStatementBatchListResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetStatementBatchListResponse) ProtoMessage() {} + +func (x *GetStatementBatchListResponse) ProtoReflect() protoreflect.Message { + mi := &file_pb_artistinfoStatement_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 GetStatementBatchListResponse.ProtoReflect.Descriptor instead. +func (*GetStatementBatchListResponse) Descriptor() ([]byte, []int) { + return file_pb_artistinfoStatement_proto_rawDescGZIP(), []int{8} +} + +func (x *GetStatementBatchListResponse) GetData() []*StatementBatchRequest { + if x != nil { + return x.Data + } + return nil +} + +func (x *GetStatementBatchListResponse) GetPage() *StatementPageInfo { + if x != nil { + return x.Page + } + return nil +} + +type GetStatementDetailListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Condition *StatementDetailRequest `protobuf:"bytes,1,opt,name=condition,proto3" json:"condition,omitempty"` + Page int64 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` + PageSize int64 `protobuf:"varint,3,opt,name=pageSize,proto3" json:"pageSize,omitempty"` +} + +func (x *GetStatementDetailListRequest) Reset() { + *x = GetStatementDetailListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_artistinfoStatement_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetStatementDetailListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetStatementDetailListRequest) ProtoMessage() {} + +func (x *GetStatementDetailListRequest) ProtoReflect() protoreflect.Message { + mi := &file_pb_artistinfoStatement_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 GetStatementDetailListRequest.ProtoReflect.Descriptor instead. +func (*GetStatementDetailListRequest) Descriptor() ([]byte, []int) { + return file_pb_artistinfoStatement_proto_rawDescGZIP(), []int{9} +} + +func (x *GetStatementDetailListRequest) GetCondition() *StatementDetailRequest { + if x != nil { + return x.Condition + } + return nil +} + +func (x *GetStatementDetailListRequest) GetPage() int64 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *GetStatementDetailListRequest) GetPageSize() int64 { + if x != nil { + return x.PageSize + } + return 0 +} + +type GetStatementDetailListResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Data []*StatementDetailRequest `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + Page *StatementPageInfo `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"` +} + +func (x *GetStatementDetailListResponse) Reset() { + *x = GetStatementDetailListResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_artistinfoStatement_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetStatementDetailListResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetStatementDetailListResponse) ProtoMessage() {} + +func (x *GetStatementDetailListResponse) ProtoReflect() protoreflect.Message { + mi := &file_pb_artistinfoStatement_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 GetStatementDetailListResponse.ProtoReflect.Descriptor instead. +func (*GetStatementDetailListResponse) Descriptor() ([]byte, []int) { + return file_pb_artistinfoStatement_proto_rawDescGZIP(), []int{10} +} + +func (x *GetStatementDetailListResponse) GetData() []*StatementDetailRequest { + if x != nil { + return x.Data + } + return nil +} + +func (x *GetStatementDetailListResponse) GetPage() *StatementPageInfo { + if x != nil { + return x.Page + } + return nil +} + +var File_pb_artistinfoStatement_proto protoreflect.FileDescriptor + +var file_pb_artistinfoStatement_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x70, 0x62, 0x2f, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, + 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, + 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x59, 0x0a, 0x11, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, + 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x70, 0x61, 0x67, + 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, + 0x74, 0x61, 0x6c, 0x22, 0xfb, 0x02, 0x0a, 0x15, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, + 0x06, 0x53, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x53, + 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x55, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, + 0x55, 0x69, 0x64, 0x12, 0x26, 0x0a, 0x0e, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x52, 0x65, 0x61, + 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x41, 0x72, 0x74, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x46, + 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x0a, 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x42, + 0x61, 0x74, 0x63, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x42, 0x61, 0x74, 0x63, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x4d, 0x69, 0x6e, + 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x02, 0x52, 0x08, 0x4d, 0x69, 0x6e, + 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x47, 0x75, 0x61, 0x72, 0x61, 0x6e, 0x74, + 0x65, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0e, 0x47, + 0x75, 0x61, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, + 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x64, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x65, 0x55, + 0x72, 0x6c, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x65, 0x55, 0x72, + 0x6c, 0x22, 0x2e, 0x0a, 0x1c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, + 0x64, 0x22, 0x59, 0x0a, 0x20, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, + 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xa9, 0x02, 0x0a, + 0x16, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x42, 0x61, 0x74, 0x63, 0x68, + 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x42, 0x61, 0x74, 0x63, 0x68, 0x49, + 0x64, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x66, 0x4e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x54, 0x66, 0x4e, 0x75, 0x6d, 0x12, 0x20, 0x0a, 0x0b, 0x41, 0x72, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x41, 0x72, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x52, 0x75, 0x6c, + 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x52, 0x75, 0x6c, 0x65, 0x72, 0x12, + 0x16, 0x0a, 0x06, 0x53, 0x61, 0x6c, 0x65, 0x4e, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x53, 0x61, 0x6c, 0x65, 0x4e, 0x6f, 0x12, 0x22, 0x0a, 0x0c, 0x43, 0x6f, 0x6d, 0x70, 0x6c, + 0x65, 0x74, 0x65, 0x44, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x43, + 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x64, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x2f, 0x0a, 0x1d, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22, 0x5b, 0x0a, 0x21, 0x42, 0x61, 0x74, + 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, + 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, + 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x8f, 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x61, 0x72, 0x74, + 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x09, 0x63, + 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, + 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, + 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x89, 0x01, 0x0a, 0x1d, 0x47, 0x65, 0x74, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x04, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, + 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, + 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x12, 0x31, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1d, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, + 0x70, 0x61, 0x67, 0x65, 0x22, 0x91, 0x01, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x72, 0x74, 0x69, + 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x09, 0x63, + 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, + 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, + 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x8b, 0x01, 0x0a, 0x1e, 0x47, 0x65, 0x74, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x04, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x72, 0x74, 0x69, + 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x64, + 0x61, 0x74, 0x61, 0x12, 0x31, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x32, 0x8b, 0x05, 0x0a, 0x09, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x65, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x21, 0x2e, 0x61, + 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x28, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, + 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, 0x0a, 0x19, 0x42, + 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x2c, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, + 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, + 0x12, 0x6e, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x42, 0x61, 0x74, 0x63, 0x68, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x28, 0x2e, 0x61, 0x72, 0x74, 0x69, + 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, + 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x74, + 0x63, 0x68, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x68, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x22, 0x2e, 0x61, 0x72, 0x74, 0x69, + 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, + 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x65, 0x0a, 0x1a, 0x42, 0x61, + 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x2d, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, + 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, + 0x00, 0x12, 0x71, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x29, 0x2e, 0x61, 0x72, + 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, + 0x6e, 0x66, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x42, 0x16, 0x5a, 0x14, 0x2e, 0x2f, 0x3b, 0x61, 0x72, 0x74, 0x69, 0x73, + 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x41, 0x72, 0x74, 0x73, 0x68, 0x6f, 0x77, 0x50, 0x00, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_pb_artistinfoStatement_proto_rawDescOnce sync.Once + file_pb_artistinfoStatement_proto_rawDescData = file_pb_artistinfoStatement_proto_rawDesc +) + +func file_pb_artistinfoStatement_proto_rawDescGZIP() []byte { + file_pb_artistinfoStatement_proto_rawDescOnce.Do(func() { + file_pb_artistinfoStatement_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_artistinfoStatement_proto_rawDescData) + }) + return file_pb_artistinfoStatement_proto_rawDescData +} + +var file_pb_artistinfoStatement_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_pb_artistinfoStatement_proto_goTypes = []interface{}{ + (*StatementPageInfo)(nil), // 0: artistinfo.StatementPageInfo + (*StatementBatchRequest)(nil), // 1: artistinfo.StatementBatchRequest + (*CreateStatementBatchResponse)(nil), // 2: artistinfo.CreateStatementBatchResponse + (*BatchCreateStatementBatchRequest)(nil), // 3: artistinfo.BatchCreateStatementBatchRequest + (*StatementDetailRequest)(nil), // 4: artistinfo.StatementDetailRequest + (*CreateStatementDetailResponse)(nil), // 5: artistinfo.CreateStatementDetailResponse + (*BatchCreateStatementDetailRequest)(nil), // 6: artistinfo.BatchCreateStatementDetailRequest + (*GetStatementBatchListRequest)(nil), // 7: artistinfo.GetStatementBatchListRequest + (*GetStatementBatchListResponse)(nil), // 8: artistinfo.GetStatementBatchListResponse + (*GetStatementDetailListRequest)(nil), // 9: artistinfo.GetStatementDetailListRequest + (*GetStatementDetailListResponse)(nil), // 10: artistinfo.GetStatementDetailListResponse + (*emptypb.Empty)(nil), // 11: google.protobuf.Empty +} +var file_pb_artistinfoStatement_proto_depIdxs = []int32{ + 1, // 0: artistinfo.BatchCreateStatementBatchRequest.data:type_name -> artistinfo.StatementBatchRequest + 4, // 1: artistinfo.BatchCreateStatementDetailRequest.data:type_name -> artistinfo.StatementDetailRequest + 1, // 2: artistinfo.GetStatementBatchListRequest.condition:type_name -> artistinfo.StatementBatchRequest + 1, // 3: artistinfo.GetStatementBatchListResponse.data:type_name -> artistinfo.StatementBatchRequest + 0, // 4: artistinfo.GetStatementBatchListResponse.page:type_name -> artistinfo.StatementPageInfo + 4, // 5: artistinfo.GetStatementDetailListRequest.condition:type_name -> artistinfo.StatementDetailRequest + 4, // 6: artistinfo.GetStatementDetailListResponse.data:type_name -> artistinfo.StatementDetailRequest + 0, // 7: artistinfo.GetStatementDetailListResponse.page:type_name -> artistinfo.StatementPageInfo + 1, // 8: artistinfo.Statement.CreateStatementBatch:input_type -> artistinfo.StatementBatchRequest + 3, // 9: artistinfo.Statement.BatchCreateStatementBatch:input_type -> artistinfo.BatchCreateStatementBatchRequest + 7, // 10: artistinfo.Statement.GetStatementBatchList:input_type -> artistinfo.GetStatementBatchListRequest + 4, // 11: artistinfo.Statement.CreateStatementDetail:input_type -> artistinfo.StatementDetailRequest + 6, // 12: artistinfo.Statement.BatchCreateStatementDetail:input_type -> artistinfo.BatchCreateStatementDetailRequest + 9, // 13: artistinfo.Statement.GetStatementDetailList:input_type -> artistinfo.GetStatementDetailListRequest + 2, // 14: artistinfo.Statement.CreateStatementBatch:output_type -> artistinfo.CreateStatementBatchResponse + 11, // 15: artistinfo.Statement.BatchCreateStatementBatch:output_type -> google.protobuf.Empty + 8, // 16: artistinfo.Statement.GetStatementBatchList:output_type -> artistinfo.GetStatementBatchListResponse + 5, // 17: artistinfo.Statement.CreateStatementDetail:output_type -> artistinfo.CreateStatementDetailResponse + 11, // 18: artistinfo.Statement.BatchCreateStatementDetail:output_type -> google.protobuf.Empty + 10, // 19: artistinfo.Statement.GetStatementDetailList:output_type -> artistinfo.GetStatementDetailListResponse + 14, // [14:20] is the sub-list for method output_type + 8, // [8:14] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_pb_artistinfoStatement_proto_init() } +func file_pb_artistinfoStatement_proto_init() { + if File_pb_artistinfoStatement_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_pb_artistinfoStatement_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StatementPageInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_artistinfoStatement_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StatementBatchRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_artistinfoStatement_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateStatementBatchResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_artistinfoStatement_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchCreateStatementBatchRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_artistinfoStatement_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StatementDetailRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_artistinfoStatement_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateStatementDetailResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_artistinfoStatement_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchCreateStatementDetailRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_artistinfoStatement_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetStatementBatchListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_artistinfoStatement_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetStatementBatchListResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_artistinfoStatement_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetStatementDetailListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_artistinfoStatement_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetStatementDetailListResponse); 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_pb_artistinfoStatement_proto_rawDesc, + NumEnums: 0, + NumMessages: 11, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_pb_artistinfoStatement_proto_goTypes, + DependencyIndexes: file_pb_artistinfoStatement_proto_depIdxs, + MessageInfos: file_pb_artistinfoStatement_proto_msgTypes, + }.Build() + File_pb_artistinfoStatement_proto = out.File + file_pb_artistinfoStatement_proto_rawDesc = nil + file_pb_artistinfoStatement_proto_goTypes = nil + file_pb_artistinfoStatement_proto_depIdxs = nil +} diff --git a/pb/artistinfoStatement/artistinfoStatement.pb.validate.go b/pb/artistinfoStatement/artistinfoStatement.pb.validate.go new file mode 100644 index 0000000..8999fa0 --- /dev/null +++ b/pb/artistinfoStatement/artistinfoStatement.pb.validate.go @@ -0,0 +1,1484 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: pb/artistinfoStatement.proto + +package artistinfoArtshow + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "sort" + "strings" + "time" + "unicode/utf8" + + "google.golang.org/protobuf/types/known/anypb" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = anypb.Any{} + _ = sort.Sort +) + +// Validate checks the field values on StatementPageInfo with the rules defined +// in the proto definition for this message. If any rules are violated, the +// first error encountered is returned, or nil if there are no violations. +func (m *StatementPageInfo) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on StatementPageInfo with the rules +// defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// StatementPageInfoMultiError, or nil if none found. +func (m *StatementPageInfo) ValidateAll() error { + return m.validate(true) +} + +func (m *StatementPageInfo) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + // no validation rules for Page + + // no validation rules for PageSize + + // no validation rules for Total + + if len(errors) > 0 { + return StatementPageInfoMultiError(errors) + } + + return nil +} + +// StatementPageInfoMultiError is an error wrapping multiple validation errors +// returned by StatementPageInfo.ValidateAll() if the designated constraints +// aren't met. +type StatementPageInfoMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m StatementPageInfoMultiError) Error() string { + var msgs []string + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m StatementPageInfoMultiError) AllErrors() []error { return m } + +// StatementPageInfoValidationError is the validation error returned by +// StatementPageInfo.Validate if the designated constraints aren't met. +type StatementPageInfoValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StatementPageInfoValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StatementPageInfoValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StatementPageInfoValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StatementPageInfoValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StatementPageInfoValidationError) ErrorName() string { + return "StatementPageInfoValidationError" +} + +// Error satisfies the builtin error interface +func (e StatementPageInfoValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sStatementPageInfo.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StatementPageInfoValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StatementPageInfoValidationError{} + +// Validate checks the field values on StatementBatchRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *StatementBatchRequest) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on StatementBatchRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// StatementBatchRequestMultiError, or nil if none found. +func (m *StatementBatchRequest) ValidateAll() error { + return m.validate(true) +} + +func (m *StatementBatchRequest) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + // no validation rules for StType + + // no validation rules for ArtistUid + + // no validation rules for ArtistRealName + + // no validation rules for FlowStatus + + // no validation rules for BatchTime + + // no validation rules for MinPrice + + // no validation rules for GuaranteePrice + + // no validation rules for Id + + // no validation rules for CreatedAt + + // no validation rules for UpdatedAt + + // no validation rules for DeletedAt + + // no validation rules for FileUrl + + if len(errors) > 0 { + return StatementBatchRequestMultiError(errors) + } + + return nil +} + +// StatementBatchRequestMultiError is an error wrapping multiple validation +// errors returned by StatementBatchRequest.ValidateAll() if the designated +// constraints aren't met. +type StatementBatchRequestMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m StatementBatchRequestMultiError) Error() string { + var msgs []string + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m StatementBatchRequestMultiError) AllErrors() []error { return m } + +// StatementBatchRequestValidationError is the validation error returned by +// StatementBatchRequest.Validate if the designated constraints aren't met. +type StatementBatchRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StatementBatchRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StatementBatchRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StatementBatchRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StatementBatchRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StatementBatchRequestValidationError) ErrorName() string { + return "StatementBatchRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e StatementBatchRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sStatementBatchRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StatementBatchRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StatementBatchRequestValidationError{} + +// Validate checks the field values on CreateStatementBatchResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *CreateStatementBatchResponse) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on CreateStatementBatchResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// CreateStatementBatchResponseMultiError, or nil if none found. +func (m *CreateStatementBatchResponse) ValidateAll() error { + return m.validate(true) +} + +func (m *CreateStatementBatchResponse) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + // no validation rules for Id + + if len(errors) > 0 { + return CreateStatementBatchResponseMultiError(errors) + } + + return nil +} + +// CreateStatementBatchResponseMultiError is an error wrapping multiple +// validation errors returned by CreateStatementBatchResponse.ValidateAll() if +// the designated constraints aren't met. +type CreateStatementBatchResponseMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m CreateStatementBatchResponseMultiError) Error() string { + var msgs []string + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m CreateStatementBatchResponseMultiError) AllErrors() []error { return m } + +// CreateStatementBatchResponseValidationError is the validation error returned +// by CreateStatementBatchResponse.Validate if the designated constraints +// aren't met. +type CreateStatementBatchResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CreateStatementBatchResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CreateStatementBatchResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CreateStatementBatchResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CreateStatementBatchResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CreateStatementBatchResponseValidationError) ErrorName() string { + return "CreateStatementBatchResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e CreateStatementBatchResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCreateStatementBatchResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CreateStatementBatchResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CreateStatementBatchResponseValidationError{} + +// Validate checks the field values on BatchCreateStatementBatchRequest with +// the rules defined in the proto definition for this message. If any rules +// are violated, the first error encountered is returned, or nil if there are +// no violations. +func (m *BatchCreateStatementBatchRequest) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on BatchCreateStatementBatchRequest with +// the rules defined in the proto definition for this message. If any rules +// are violated, the result is a list of violation errors wrapped in +// BatchCreateStatementBatchRequestMultiError, or nil if none found. +func (m *BatchCreateStatementBatchRequest) ValidateAll() error { + return m.validate(true) +} + +func (m *BatchCreateStatementBatchRequest) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + for idx, item := range m.GetData() { + _, _ = idx, item + + if all { + switch v := interface{}(item).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, BatchCreateStatementBatchRequestValidationError{ + field: fmt.Sprintf("Data[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, BatchCreateStatementBatchRequestValidationError{ + field: fmt.Sprintf("Data[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BatchCreateStatementBatchRequestValidationError{ + field: fmt.Sprintf("Data[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if len(errors) > 0 { + return BatchCreateStatementBatchRequestMultiError(errors) + } + + return nil +} + +// BatchCreateStatementBatchRequestMultiError is an error wrapping multiple +// validation errors returned by +// BatchCreateStatementBatchRequest.ValidateAll() if the designated +// constraints aren't met. +type BatchCreateStatementBatchRequestMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m BatchCreateStatementBatchRequestMultiError) Error() string { + var msgs []string + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m BatchCreateStatementBatchRequestMultiError) AllErrors() []error { return m } + +// BatchCreateStatementBatchRequestValidationError is the validation error +// returned by BatchCreateStatementBatchRequest.Validate if the designated +// constraints aren't met. +type BatchCreateStatementBatchRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BatchCreateStatementBatchRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BatchCreateStatementBatchRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BatchCreateStatementBatchRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BatchCreateStatementBatchRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BatchCreateStatementBatchRequestValidationError) ErrorName() string { + return "BatchCreateStatementBatchRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e BatchCreateStatementBatchRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sBatchCreateStatementBatchRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BatchCreateStatementBatchRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BatchCreateStatementBatchRequestValidationError{} + +// Validate checks the field values on StatementDetailRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *StatementDetailRequest) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on StatementDetailRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// StatementDetailRequestMultiError, or nil if none found. +func (m *StatementDetailRequest) ValidateAll() error { + return m.validate(true) +} + +func (m *StatementDetailRequest) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + // no validation rules for BatchId + + // no validation rules for TfNum + + // no validation rules for ArtworkName + + // no validation rules for Ruler + + // no validation rules for SaleNo + + // no validation rules for CompleteDate + + // no validation rules for Id + + // no validation rules for CreatedAt + + // no validation rules for UpdatedAt + + // no validation rules for DeletedAt + + if len(errors) > 0 { + return StatementDetailRequestMultiError(errors) + } + + return nil +} + +// StatementDetailRequestMultiError is an error wrapping multiple validation +// errors returned by StatementDetailRequest.ValidateAll() if the designated +// constraints aren't met. +type StatementDetailRequestMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m StatementDetailRequestMultiError) Error() string { + var msgs []string + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m StatementDetailRequestMultiError) AllErrors() []error { return m } + +// StatementDetailRequestValidationError is the validation error returned by +// StatementDetailRequest.Validate if the designated constraints aren't met. +type StatementDetailRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StatementDetailRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StatementDetailRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StatementDetailRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StatementDetailRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StatementDetailRequestValidationError) ErrorName() string { + return "StatementDetailRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e StatementDetailRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sStatementDetailRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StatementDetailRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StatementDetailRequestValidationError{} + +// Validate checks the field values on CreateStatementDetailResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *CreateStatementDetailResponse) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on CreateStatementDetailResponse with +// the rules defined in the proto definition for this message. If any rules +// are violated, the result is a list of violation errors wrapped in +// CreateStatementDetailResponseMultiError, or nil if none found. +func (m *CreateStatementDetailResponse) ValidateAll() error { + return m.validate(true) +} + +func (m *CreateStatementDetailResponse) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + // no validation rules for Id + + if len(errors) > 0 { + return CreateStatementDetailResponseMultiError(errors) + } + + return nil +} + +// CreateStatementDetailResponseMultiError is an error wrapping multiple +// validation errors returned by CreateStatementDetailResponse.ValidateAll() +// if the designated constraints aren't met. +type CreateStatementDetailResponseMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m CreateStatementDetailResponseMultiError) Error() string { + var msgs []string + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m CreateStatementDetailResponseMultiError) AllErrors() []error { return m } + +// CreateStatementDetailResponseValidationError is the validation error +// returned by CreateStatementDetailResponse.Validate if the designated +// constraints aren't met. +type CreateStatementDetailResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CreateStatementDetailResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CreateStatementDetailResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CreateStatementDetailResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CreateStatementDetailResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CreateStatementDetailResponseValidationError) ErrorName() string { + return "CreateStatementDetailResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e CreateStatementDetailResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCreateStatementDetailResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CreateStatementDetailResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CreateStatementDetailResponseValidationError{} + +// Validate checks the field values on BatchCreateStatementDetailRequest with +// the rules defined in the proto definition for this message. If any rules +// are violated, the first error encountered is returned, or nil if there are +// no violations. +func (m *BatchCreateStatementDetailRequest) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on BatchCreateStatementDetailRequest +// with the rules defined in the proto definition for this message. If any +// rules are violated, the result is a list of violation errors wrapped in +// BatchCreateStatementDetailRequestMultiError, or nil if none found. +func (m *BatchCreateStatementDetailRequest) ValidateAll() error { + return m.validate(true) +} + +func (m *BatchCreateStatementDetailRequest) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + for idx, item := range m.GetData() { + _, _ = idx, item + + if all { + switch v := interface{}(item).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, BatchCreateStatementDetailRequestValidationError{ + field: fmt.Sprintf("Data[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, BatchCreateStatementDetailRequestValidationError{ + field: fmt.Sprintf("Data[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BatchCreateStatementDetailRequestValidationError{ + field: fmt.Sprintf("Data[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if len(errors) > 0 { + return BatchCreateStatementDetailRequestMultiError(errors) + } + + return nil +} + +// BatchCreateStatementDetailRequestMultiError is an error wrapping multiple +// validation errors returned by +// BatchCreateStatementDetailRequest.ValidateAll() if the designated +// constraints aren't met. +type BatchCreateStatementDetailRequestMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m BatchCreateStatementDetailRequestMultiError) Error() string { + var msgs []string + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m BatchCreateStatementDetailRequestMultiError) AllErrors() []error { return m } + +// BatchCreateStatementDetailRequestValidationError is the validation error +// returned by BatchCreateStatementDetailRequest.Validate if the designated +// constraints aren't met. +type BatchCreateStatementDetailRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BatchCreateStatementDetailRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BatchCreateStatementDetailRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BatchCreateStatementDetailRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BatchCreateStatementDetailRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BatchCreateStatementDetailRequestValidationError) ErrorName() string { + return "BatchCreateStatementDetailRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e BatchCreateStatementDetailRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sBatchCreateStatementDetailRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BatchCreateStatementDetailRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BatchCreateStatementDetailRequestValidationError{} + +// Validate checks the field values on GetStatementBatchListRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *GetStatementBatchListRequest) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on GetStatementBatchListRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// GetStatementBatchListRequestMultiError, or nil if none found. +func (m *GetStatementBatchListRequest) ValidateAll() error { + return m.validate(true) +} + +func (m *GetStatementBatchListRequest) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if all { + switch v := interface{}(m.GetCondition()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, GetStatementBatchListRequestValidationError{ + field: "Condition", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, GetStatementBatchListRequestValidationError{ + field: "Condition", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetCondition()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetStatementBatchListRequestValidationError{ + field: "Condition", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Page + + // no validation rules for PageSize + + if len(errors) > 0 { + return GetStatementBatchListRequestMultiError(errors) + } + + return nil +} + +// GetStatementBatchListRequestMultiError is an error wrapping multiple +// validation errors returned by GetStatementBatchListRequest.ValidateAll() if +// the designated constraints aren't met. +type GetStatementBatchListRequestMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m GetStatementBatchListRequestMultiError) Error() string { + var msgs []string + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m GetStatementBatchListRequestMultiError) AllErrors() []error { return m } + +// GetStatementBatchListRequestValidationError is the validation error returned +// by GetStatementBatchListRequest.Validate if the designated constraints +// aren't met. +type GetStatementBatchListRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GetStatementBatchListRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GetStatementBatchListRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GetStatementBatchListRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GetStatementBatchListRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GetStatementBatchListRequestValidationError) ErrorName() string { + return "GetStatementBatchListRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e GetStatementBatchListRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGetStatementBatchListRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GetStatementBatchListRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GetStatementBatchListRequestValidationError{} + +// Validate checks the field values on GetStatementBatchListResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *GetStatementBatchListResponse) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on GetStatementBatchListResponse with +// the rules defined in the proto definition for this message. If any rules +// are violated, the result is a list of violation errors wrapped in +// GetStatementBatchListResponseMultiError, or nil if none found. +func (m *GetStatementBatchListResponse) ValidateAll() error { + return m.validate(true) +} + +func (m *GetStatementBatchListResponse) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + for idx, item := range m.GetData() { + _, _ = idx, item + + if all { + switch v := interface{}(item).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, GetStatementBatchListResponseValidationError{ + field: fmt.Sprintf("Data[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, GetStatementBatchListResponseValidationError{ + field: fmt.Sprintf("Data[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetStatementBatchListResponseValidationError{ + field: fmt.Sprintf("Data[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if all { + switch v := interface{}(m.GetPage()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, GetStatementBatchListResponseValidationError{ + field: "Page", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, GetStatementBatchListResponseValidationError{ + field: "Page", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetPage()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetStatementBatchListResponseValidationError{ + field: "Page", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if len(errors) > 0 { + return GetStatementBatchListResponseMultiError(errors) + } + + return nil +} + +// GetStatementBatchListResponseMultiError is an error wrapping multiple +// validation errors returned by GetStatementBatchListResponse.ValidateAll() +// if the designated constraints aren't met. +type GetStatementBatchListResponseMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m GetStatementBatchListResponseMultiError) Error() string { + var msgs []string + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m GetStatementBatchListResponseMultiError) AllErrors() []error { return m } + +// GetStatementBatchListResponseValidationError is the validation error +// returned by GetStatementBatchListResponse.Validate if the designated +// constraints aren't met. +type GetStatementBatchListResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GetStatementBatchListResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GetStatementBatchListResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GetStatementBatchListResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GetStatementBatchListResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GetStatementBatchListResponseValidationError) ErrorName() string { + return "GetStatementBatchListResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e GetStatementBatchListResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGetStatementBatchListResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GetStatementBatchListResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GetStatementBatchListResponseValidationError{} + +// Validate checks the field values on GetStatementDetailListRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *GetStatementDetailListRequest) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on GetStatementDetailListRequest with +// the rules defined in the proto definition for this message. If any rules +// are violated, the result is a list of violation errors wrapped in +// GetStatementDetailListRequestMultiError, or nil if none found. +func (m *GetStatementDetailListRequest) ValidateAll() error { + return m.validate(true) +} + +func (m *GetStatementDetailListRequest) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if all { + switch v := interface{}(m.GetCondition()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, GetStatementDetailListRequestValidationError{ + field: "Condition", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, GetStatementDetailListRequestValidationError{ + field: "Condition", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetCondition()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetStatementDetailListRequestValidationError{ + field: "Condition", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Page + + // no validation rules for PageSize + + if len(errors) > 0 { + return GetStatementDetailListRequestMultiError(errors) + } + + return nil +} + +// GetStatementDetailListRequestMultiError is an error wrapping multiple +// validation errors returned by GetStatementDetailListRequest.ValidateAll() +// if the designated constraints aren't met. +type GetStatementDetailListRequestMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m GetStatementDetailListRequestMultiError) Error() string { + var msgs []string + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m GetStatementDetailListRequestMultiError) AllErrors() []error { return m } + +// GetStatementDetailListRequestValidationError is the validation error +// returned by GetStatementDetailListRequest.Validate if the designated +// constraints aren't met. +type GetStatementDetailListRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GetStatementDetailListRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GetStatementDetailListRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GetStatementDetailListRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GetStatementDetailListRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GetStatementDetailListRequestValidationError) ErrorName() string { + return "GetStatementDetailListRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e GetStatementDetailListRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGetStatementDetailListRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GetStatementDetailListRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GetStatementDetailListRequestValidationError{} + +// Validate checks the field values on GetStatementDetailListResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *GetStatementDetailListResponse) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on GetStatementDetailListResponse with +// the rules defined in the proto definition for this message. If any rules +// are violated, the result is a list of violation errors wrapped in +// GetStatementDetailListResponseMultiError, or nil if none found. +func (m *GetStatementDetailListResponse) ValidateAll() error { + return m.validate(true) +} + +func (m *GetStatementDetailListResponse) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + for idx, item := range m.GetData() { + _, _ = idx, item + + if all { + switch v := interface{}(item).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, GetStatementDetailListResponseValidationError{ + field: fmt.Sprintf("Data[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, GetStatementDetailListResponseValidationError{ + field: fmt.Sprintf("Data[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetStatementDetailListResponseValidationError{ + field: fmt.Sprintf("Data[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if all { + switch v := interface{}(m.GetPage()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, GetStatementDetailListResponseValidationError{ + field: "Page", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, GetStatementDetailListResponseValidationError{ + field: "Page", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetPage()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetStatementDetailListResponseValidationError{ + field: "Page", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if len(errors) > 0 { + return GetStatementDetailListResponseMultiError(errors) + } + + return nil +} + +// GetStatementDetailListResponseMultiError is an error wrapping multiple +// validation errors returned by GetStatementDetailListResponse.ValidateAll() +// if the designated constraints aren't met. +type GetStatementDetailListResponseMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m GetStatementDetailListResponseMultiError) Error() string { + var msgs []string + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m GetStatementDetailListResponseMultiError) AllErrors() []error { return m } + +// GetStatementDetailListResponseValidationError is the validation error +// returned by GetStatementDetailListResponse.Validate if the designated +// constraints aren't met. +type GetStatementDetailListResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GetStatementDetailListResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GetStatementDetailListResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GetStatementDetailListResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GetStatementDetailListResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GetStatementDetailListResponseValidationError) ErrorName() string { + return "GetStatementDetailListResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e GetStatementDetailListResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGetStatementDetailListResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GetStatementDetailListResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GetStatementDetailListResponseValidationError{} diff --git a/pb/artistinfoStatement/artistinfoStatement_triple.pb.go b/pb/artistinfoStatement/artistinfoStatement_triple.pb.go new file mode 100644 index 0000000..0f04ce1 --- /dev/null +++ b/pb/artistinfoStatement/artistinfoStatement_triple.pb.go @@ -0,0 +1,373 @@ +// Code generated by protoc-gen-go-triple. DO NOT EDIT. +// versions: +// - protoc-gen-go-triple v1.0.8 +// - protoc v4.22.0--rc2 +// source: pb/artistinfoStatement.proto + +package artistinfoArtshow + +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" + emptypb "google.golang.org/protobuf/types/known/emptypb" +) + +// 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 + +// StatementClient is the client API for Statement 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 StatementClient interface { + CreateStatementBatch(ctx context.Context, in *StatementBatchRequest, opts ...grpc_go.CallOption) (*CreateStatementBatchResponse, common.ErrorWithAttachment) + BatchCreateStatementBatch(ctx context.Context, in *BatchCreateStatementBatchRequest, opts ...grpc_go.CallOption) (*emptypb.Empty, common.ErrorWithAttachment) + GetStatementBatchList(ctx context.Context, in *GetStatementBatchListRequest, opts ...grpc_go.CallOption) (*GetStatementBatchListResponse, common.ErrorWithAttachment) + CreateStatementDetail(ctx context.Context, in *StatementDetailRequest, opts ...grpc_go.CallOption) (*CreateStatementDetailResponse, common.ErrorWithAttachment) + BatchCreateStatementDetail(ctx context.Context, in *BatchCreateStatementDetailRequest, opts ...grpc_go.CallOption) (*emptypb.Empty, common.ErrorWithAttachment) + GetStatementDetailList(ctx context.Context, in *GetStatementDetailListRequest, opts ...grpc_go.CallOption) (*GetStatementDetailListResponse, common.ErrorWithAttachment) +} + +type statementClient struct { + cc *triple.TripleConn +} + +type StatementClientImpl struct { + CreateStatementBatch func(ctx context.Context, in *StatementBatchRequest) (*CreateStatementBatchResponse, error) + BatchCreateStatementBatch func(ctx context.Context, in *BatchCreateStatementBatchRequest) (*emptypb.Empty, error) + GetStatementBatchList func(ctx context.Context, in *GetStatementBatchListRequest) (*GetStatementBatchListResponse, error) + CreateStatementDetail func(ctx context.Context, in *StatementDetailRequest) (*CreateStatementDetailResponse, error) + BatchCreateStatementDetail func(ctx context.Context, in *BatchCreateStatementDetailRequest) (*emptypb.Empty, error) + GetStatementDetailList func(ctx context.Context, in *GetStatementDetailListRequest) (*GetStatementDetailListResponse, error) +} + +func (c *StatementClientImpl) GetDubboStub(cc *triple.TripleConn) StatementClient { + return NewStatementClient(cc) +} + +func (c *StatementClientImpl) XXX_InterfaceName() string { + return "artistinfo.Statement" +} + +func NewStatementClient(cc *triple.TripleConn) StatementClient { + return &statementClient{cc} +} + +func (c *statementClient) CreateStatementBatch(ctx context.Context, in *StatementBatchRequest, opts ...grpc_go.CallOption) (*CreateStatementBatchResponse, common.ErrorWithAttachment) { + out := new(CreateStatementBatchResponse) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/CreateStatementBatch", in, out) +} + +func (c *statementClient) BatchCreateStatementBatch(ctx context.Context, in *BatchCreateStatementBatchRequest, opts ...grpc_go.CallOption) (*emptypb.Empty, common.ErrorWithAttachment) { + out := new(emptypb.Empty) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/BatchCreateStatementBatch", in, out) +} + +func (c *statementClient) GetStatementBatchList(ctx context.Context, in *GetStatementBatchListRequest, opts ...grpc_go.CallOption) (*GetStatementBatchListResponse, common.ErrorWithAttachment) { + out := new(GetStatementBatchListResponse) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetStatementBatchList", in, out) +} + +func (c *statementClient) CreateStatementDetail(ctx context.Context, in *StatementDetailRequest, opts ...grpc_go.CallOption) (*CreateStatementDetailResponse, common.ErrorWithAttachment) { + out := new(CreateStatementDetailResponse) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/CreateStatementDetail", in, out) +} + +func (c *statementClient) BatchCreateStatementDetail(ctx context.Context, in *BatchCreateStatementDetailRequest, opts ...grpc_go.CallOption) (*emptypb.Empty, common.ErrorWithAttachment) { + out := new(emptypb.Empty) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/BatchCreateStatementDetail", in, out) +} + +func (c *statementClient) GetStatementDetailList(ctx context.Context, in *GetStatementDetailListRequest, opts ...grpc_go.CallOption) (*GetStatementDetailListResponse, common.ErrorWithAttachment) { + out := new(GetStatementDetailListResponse) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetStatementDetailList", in, out) +} + +// StatementServer is the server API for Statement service. +// All implementations must embed UnimplementedStatementServer +// for forward compatibility +type StatementServer interface { + CreateStatementBatch(context.Context, *StatementBatchRequest) (*CreateStatementBatchResponse, error) + BatchCreateStatementBatch(context.Context, *BatchCreateStatementBatchRequest) (*emptypb.Empty, error) + GetStatementBatchList(context.Context, *GetStatementBatchListRequest) (*GetStatementBatchListResponse, error) + CreateStatementDetail(context.Context, *StatementDetailRequest) (*CreateStatementDetailResponse, error) + BatchCreateStatementDetail(context.Context, *BatchCreateStatementDetailRequest) (*emptypb.Empty, error) + GetStatementDetailList(context.Context, *GetStatementDetailListRequest) (*GetStatementDetailListResponse, error) + mustEmbedUnimplementedStatementServer() +} + +// UnimplementedStatementServer must be embedded to have forward compatible implementations. +type UnimplementedStatementServer struct { + proxyImpl protocol.Invoker +} + +func (UnimplementedStatementServer) CreateStatementBatch(context.Context, *StatementBatchRequest) (*CreateStatementBatchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateStatementBatch not implemented") +} +func (UnimplementedStatementServer) BatchCreateStatementBatch(context.Context, *BatchCreateStatementBatchRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method BatchCreateStatementBatch not implemented") +} +func (UnimplementedStatementServer) GetStatementBatchList(context.Context, *GetStatementBatchListRequest) (*GetStatementBatchListResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetStatementBatchList not implemented") +} +func (UnimplementedStatementServer) CreateStatementDetail(context.Context, *StatementDetailRequest) (*CreateStatementDetailResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateStatementDetail not implemented") +} +func (UnimplementedStatementServer) BatchCreateStatementDetail(context.Context, *BatchCreateStatementDetailRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method BatchCreateStatementDetail not implemented") +} +func (UnimplementedStatementServer) GetStatementDetailList(context.Context, *GetStatementDetailListRequest) (*GetStatementDetailListResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetStatementDetailList not implemented") +} +func (s *UnimplementedStatementServer) XXX_SetProxyImpl(impl protocol.Invoker) { + s.proxyImpl = impl +} + +func (s *UnimplementedStatementServer) XXX_GetProxyImpl() protocol.Invoker { + return s.proxyImpl +} + +func (s *UnimplementedStatementServer) XXX_ServiceDesc() *grpc_go.ServiceDesc { + return &Statement_ServiceDesc +} +func (s *UnimplementedStatementServer) XXX_InterfaceName() string { + return "artistinfo.Statement" +} + +func (UnimplementedStatementServer) mustEmbedUnimplementedStatementServer() {} + +// UnsafeStatementServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to StatementServer will +// result in compilation errors. +type UnsafeStatementServer interface { + mustEmbedUnimplementedStatementServer() +} + +func RegisterStatementServer(s grpc_go.ServiceRegistrar, srv StatementServer) { + s.RegisterService(&Statement_ServiceDesc, srv) +} + +func _Statement_CreateStatementBatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(StatementBatchRequest) + 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("CreateStatementBatch", 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 _Statement_BatchCreateStatementBatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(BatchCreateStatementBatchRequest) + 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("BatchCreateStatementBatch", 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 _Statement_GetStatementBatchList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(GetStatementBatchListRequest) + 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("GetStatementBatchList", 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 _Statement_CreateStatementDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(StatementDetailRequest) + 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("CreateStatementDetail", 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 _Statement_BatchCreateStatementDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(BatchCreateStatementDetailRequest) + 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("BatchCreateStatementDetail", 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 _Statement_GetStatementDetailList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(GetStatementDetailListRequest) + 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("GetStatementDetailList", 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) +} + +// Statement_ServiceDesc is the grpc_go.ServiceDesc for Statement service. +// It's only intended for direct use with grpc_go.RegisterService, +// and not to be introspected or modified (even as a copy) +var Statement_ServiceDesc = grpc_go.ServiceDesc{ + ServiceName: "artistinfo.Statement", + HandlerType: (*StatementServer)(nil), + Methods: []grpc_go.MethodDesc{ + { + MethodName: "CreateStatementBatch", + Handler: _Statement_CreateStatementBatch_Handler, + }, + { + MethodName: "BatchCreateStatementBatch", + Handler: _Statement_BatchCreateStatementBatch_Handler, + }, + { + MethodName: "GetStatementBatchList", + Handler: _Statement_GetStatementBatchList_Handler, + }, + { + MethodName: "CreateStatementDetail", + Handler: _Statement_CreateStatementDetail_Handler, + }, + { + MethodName: "BatchCreateStatementDetail", + Handler: _Statement_BatchCreateStatementDetail_Handler, + }, + { + MethodName: "GetStatementDetailList", + Handler: _Statement_GetStatementDetailList_Handler, + }, + }, + Streams: []grpc_go.StreamDesc{}, + Metadata: "pb/artistinfoStatement.proto", +}