From baa1bea0121e6481a4fe647c7dcea8b016be81a0 Mon Sep 17 00:00:00 2001 From: songchuang <192749120@qq.com> Date: Wed, 22 Mar 2023 16:16:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E8=B4=A6=E5=8D=95=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/internal/controller/statement.go | 22 + cmd/internal/dao/contract.go | 23 +- cmd/internal/dao/statement.go | 41 + cmd/internal/logic/statement.go | 40 + cmd/model/artworkStatement.go | 64 +- cmd/model/contract.go | 54 +- .../artistinfoStatement.pb.go | 1232 ------------- .../artistinfoStatement.pb.validate.go | 1589 ----------------- .../artistinfoStatement_triple.pb.go | 418 ----- pb/artistinfoStatement/statement.pb.go | 436 +++++ pb/artistinfoStatement/statement.proto | 36 + .../statement.validator.pb.go | 33 + pb/artistinfoStatement/statement_triple.pb.go | 147 ++ pb/contract/contract.proto | 1 - pkg/db/init.go | 7 +- 15 files changed, 838 insertions(+), 3305 deletions(-) create mode 100644 cmd/internal/controller/statement.go create mode 100644 cmd/internal/dao/statement.go create mode 100644 cmd/internal/logic/statement.go delete mode 100644 pb/artistinfoStatement/artistinfoStatement.pb.go delete mode 100644 pb/artistinfoStatement/artistinfoStatement.pb.validate.go delete mode 100644 pb/artistinfoStatement/artistinfoStatement_triple.pb.go create mode 100644 pb/artistinfoStatement/statement.pb.go create mode 100644 pb/artistinfoStatement/statement.proto create mode 100644 pb/artistinfoStatement/statement.validator.pb.go create mode 100644 pb/artistinfoStatement/statement_triple.pb.go diff --git a/cmd/internal/controller/statement.go b/cmd/internal/controller/statement.go new file mode 100644 index 0000000..13b3cf5 --- /dev/null +++ b/cmd/internal/controller/statement.go @@ -0,0 +1,22 @@ +package controller + +import ( + "context" + "fmt" + + "github.com/fonchain/fonchain-artistinfo/cmd/internal/logic" + statement "github.com/fonchain/fonchain-artistinfo/pb/artistinfoStatement" +) + +type ArtistInfoStatementProvider struct { + statement.UnimplementedStatementServer + statementLogic *logic.Statement +} + +func (c *ArtistInfoStatementProvider) StatementList(ctx context.Context, req *statement.StatementListRequest) (rep *statement.StatementListRespond, err error) { + fmt.Println("第一处") + if rep, err = c.statementLogic.StatementList(req); err != nil { + return nil, err + } + return rep, nil +} diff --git a/cmd/internal/dao/contract.go b/cmd/internal/dao/contract.go index be2b404..c1e5831 100644 --- a/cmd/internal/dao/contract.go +++ b/cmd/internal/dao/contract.go @@ -145,7 +145,7 @@ func GetArtistInfoById(artistUid string) (user model.User, err error) { return } -func ContractList(artist_uid string, state int32) (ContractData []*contract.Contracts, err error) { +func ContractList(artist_uid string, state int32) (contractData []*contract.Contracts, err error) { // if state != 0 { // if state == 2 { @@ -177,7 +177,7 @@ func ContractList(artist_uid string, state int32) (ContractData []*contract.Cont SignTime: v.SignTime, } - ContractData = append(ContractData, Contract) + contractData = append(contractData, Contract) } return @@ -193,12 +193,21 @@ func GetContractInfo(contractUid string) (contractInfo model.Contract, err error } func UpdateContract(tx *gorm.DB, req *contract.SignContractRequest) (err error) { - fmt.Println("第一处1111") - if err = tx.Model(&model.Contract{}).Where("uid = ?", req.ContractUid).Updates(model.Contract{ViewUrl: req.ViewPdfUrl, DownloadUrl: req.DownloadUrl, ContractId: req.ContractNo, TransactionId: req.TransactionId, State: 1}).Error; err != nil { - zap.L().Error("update contract info err", zap.Error(err)) - err = errors.New(m.UPDATE_FAILED) - return + //对账单这边只有TransactionId需要改变 + if req.ViewPdfUrl == "" { + if err = tx.Model(&model.Contract{}).Where("uid = ?", req.ContractUid).Updates(model.Contract{TransactionId: req.TransactionId, State: 1}).Error; err != nil { + zap.L().Error("update contract info err", zap.Error(err)) + err = errors.New(m.UPDATE_FAILED) + return + } + } else { + if err = tx.Model(&model.Contract{}).Where("uid = ?", req.ContractUid).Updates(model.Contract{ViewUrl: req.ViewPdfUrl, DownloadUrl: req.DownloadUrl, ContractId: req.ContractNo, TransactionId: req.TransactionId, State: 1}).Error; err != nil { + zap.L().Error("update contract info err", zap.Error(err)) + err = errors.New(m.UPDATE_FAILED) + return + } } + return } diff --git a/cmd/internal/dao/statement.go b/cmd/internal/dao/statement.go new file mode 100644 index 0000000..19af27f --- /dev/null +++ b/cmd/internal/dao/statement.go @@ -0,0 +1,41 @@ +package dao + +import ( + "errors" + + "github.com/fonchain/fonchain-artistinfo/cmd/model" + statement "github.com/fonchain/fonchain-artistinfo/pb/artistinfoStatement" + db "github.com/fonchain/fonchain-artistinfo/pkg/db" + "github.com/fonchain/fonchain-artistinfo/pkg/m" + "go.uber.org/zap" +) + +func StatementList(artistUid string, state int32) (contractData []*statement.Contracts, err error) { + var contracts []model.Contract + if err = db.DB.Where("artist_uid = ? AND type == 4 AND state = ?", artistUid, state).Find(&contracts).Error; err != nil { + zap.L().Error("get contracts info err", zap.Error(err)) + err = errors.New(m.ERROR_SELECT) + return + } + + for _, v := range contracts { + Contract := &statement.Contracts{ + ContractUid: v.Uid, + ArtistUid: v.ArtistUid, + ArtworkUid: v.ArtworkUid, + ContractId: v.ContractId, + TransactionId: v.TransactionId, + Type: v.Type, + ViewUrl: v.ViewUrl, + DownloadUrl: v.DownloadUrl, + State: v.State, + Status: int32(v.Status), + LockTime: v.LockTime, + SignTime: v.SignTime, + } + + contractData = append(contractData, Contract) + } + + return +} diff --git a/cmd/internal/logic/statement.go b/cmd/internal/logic/statement.go new file mode 100644 index 0000000..94c760c --- /dev/null +++ b/cmd/internal/logic/statement.go @@ -0,0 +1,40 @@ +package logic + +import ( + "fmt" + + "github.com/fonchain/fonchain-artistinfo/cmd/internal/dao" + statement "github.com/fonchain/fonchain-artistinfo/pb/artistinfoStatement" +) + +type IStatement interface { + StatementList(req *statement.StatementListRequest) (rep *statement.StatementListRespond, err error) +} + +func NewStatement() IStatement { + return &Statement{} +} + +type Statement struct { +} + +func (a *Statement) StatementList(req *statement.StatementListRequest) (rep *statement.StatementListRespond, err error) { + //查看是否有该画家 + user, err := dao.GetArtistInfoById(req.ArtistUid) + if err != nil { + return + } + + fmt.Println("user:", user) + + ContractData, err := dao.StatementList(user.MgmtArtistUid, req.State) + if err != nil { + return + } + + rep = &statement.StatementListRespond{ + Data: ContractData, + } + + return +} diff --git a/cmd/model/artworkStatement.go b/cmd/model/artworkStatement.go index c5d864a..a5f23fb 100644 --- a/cmd/model/artworkStatement.go +++ b/cmd/model/artworkStatement.go @@ -3,49 +3,37 @@ package model // 对账单委托画作批次 type StatementBatch struct { Model - // StType int32 `gorm:"column:st_type;unqiueIndex:sttype_uid_batchtime_idx;comment:对账单类型 1=版权 2=物权;"` - ArtistUid string `gorm:"column:artist_uid;unqiueIndex:sttype_uid_batchtime_idx;comment:画家uid"` - ArtistName string `gorm:"column:artist_name;comment:画家姓名;"` - BatchTime string `gorm:"column:batch_time;unqiueIndex:sttype_uid_batchtime_idx;comment:批次时间;"` - FlowStatus int32 `gorm:"column:flow_status;default:1;comment:流程状态 1=未生成 2=已生成未签署 3=已签署"` - // FileUrl string `gorm:"column:file_url,comment:对账单文件地址;"` + Uid string `gorm:"column:uid;type:varchar(100);comment:对账单表的唯一表示;NOT NULL" json:"uid"` + StType int32 `gorm:"column:st_type;unqiueIndex:sttype_uid_batchtime_idx;comment:对账单类型 1=版权 2=物权;"` + ArtistUid string `gorm:"column:artist_uid;unqiueIndex:sttype_uid_batchtime_idx;comment:画家uid"` + ArtistName string `gorm:"column:artist_name;comment:画家姓名;"` + BatchTime string `gorm:"column:batch_time;unqiueIndex:sttype_uid_batchtime_idx;comment:批次时间;"` + FlowStatus int32 `gorm:"column:flow_status;default:1;comment:流程状态 1=未生成 2=已生成未签署 3=已签署"` - EntrustList []ArtworkEntrustDetail `gorm:"foreignKey:BatchId"` //当前批次的委托单详情 - SalesList []ArtworkSalesDetail `gorm:"foreignKey:BatchId"` //当前批次的销售单详情 + ViewUrl string `gorm:"column:view_url;type:varchar(500);comment:在线查看对账单链接" json:"view_url"` + DownloadUrl string `gorm:"column:download_url;type:varchar(500);comment:对账单下载链接" json:"download_url"` + BatchId int64 `gorm:"column:batch_id;unqiueIndex:batchid_tfnum_idx;comment:批次id;"` + EntrustList []ArtworkStatementDetail `gorm:"foreignKey:BatchId;references:ID"` //当前批次的委托单详情 } func (StatementBatch) TableName() string { return "statement_batch" } -// 对账单画作委托详情 -type ArtworkEntrustDetail struct { - Model - BatchId int64 `gorm:"column:batch_id;unqiueIndex:batchid_tfnum_idx;comment:批次id;"` - TfNum string `gorm:"column:tf_num;unqiueIndex:batchid_tfnum_idx;comment:"泰丰画作编号"` - ArtworkName string `gorm:"column:artwork_name;comment:画作名称"` - Ruler string `gorm:"column:ruler;comment:平尺"` - SaleNo string `gorm:"column:sale_no;comment:销售单号"` - CompleteDate string `gorm:"column:complete_date;comment:成交日期"` - MinPrice float32 `gorm:"column:min_price;comment:委托销售底价"` - GuaranteePrice float32 `gorm:"column:guarantee_price;comment:已收取保证金;"` -} +// // 对账单画作委托详情 +// type ArtworkStatementDetail struct { +// Model +// Uid string `gorm:"column:uid;type:varchar(100);comment:对账单画作详情表的唯一表示;NOT NULL" json:"uid"` +// BatchId int64 `gorm:"column:batch_id;unqiueIndex:batchid_tfnum_idx;comment:批次id;"` +// TfNum string `gorm:"column:tf_num;unqiueIndex:batchid_tfnum_idx;comment:"泰丰画作编号"` +// ArtworkName string `gorm:"column:artwork_name;comment:画作名称"` +// Ruler string `gorm:"column:ruler;comment:平尺"` +// SaleNo string `gorm:"column:sale_no;comment:销售单号"` +// CompleteDate string `gorm:"column:complete_date;comment:成交日期"` +// MinPrice float32 `gorm:"column:min_price;comment:委托销售底价"` +// GuaranteePrice float32 `gorm:"column:guarantee_price;comment:已收取保证金;"` +// } -func (ArtworkEntrustDetail) TableName() string { - return "artwork_entrust_detail" -} - -//对账单画作销售详情 -type ArtworkSalesDetail struct { - Model - BatchId int64 `gorm:"column:batch_id;unqiueIndex:batchid_tfnum_idx;comment:批次id;"` - TfNum string `gorm:"column:tf_num;unqiueIndex:batchid_tfnum_idx;comment:"泰丰画作编号"` - ArtworkName string `gorm:"column:artwork_name;comment:画作名称"` - Ruler string `gorm:"column:ruler;comment:平尺"` - SaleNo string `gorm:"column:sale_no;comment:销售单号"` - CompleteDate string `gorm:"column:complete_date;comment:成交日期"` -} - -func (ArtworkSalesDetail) TableName() string { - return "artwork_sales_detail" -} +// func (ArtworkStatementDetail) TableName() string { +// return "artwork_statement_detail" +// } diff --git a/cmd/model/contract.go b/cmd/model/contract.go index 3cfd999..1dab317 100644 --- a/cmd/model/contract.go +++ b/cmd/model/contract.go @@ -4,22 +4,42 @@ import "gorm.io/plugin/soft_delete" // Contract 用户模型 type Contract struct { - ID int32 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"` - Uid string `gorm:"column:uid;type:varchar(100);comment:合同表的唯一表示;NOT NULL" json:"uid"` - ArtistUid string `gorm:"column:artist_uid;type:varchar(100);comment:画家uid;NOT NULL" json:"artist_uid"` - ArtworkUid string `gorm:"column:artwork_uid;type:varchar(1000);comment:画作uid" json:"artwork_uid"` - ContractId string `gorm:"column:contract_id;type:varchar(300);comment:合同id" json:"contract_id"` - TransactionId string `gorm:"column:transaction_id;type:varchar(300);comment:交易id" json:"transaction_id"` - Type int32 `gorm:"column:type;type:int(1);comment:合同类型;NOT NULL" json:"type"` - ViewUrl string `gorm:"column:view_url;type:varchar(500);comment:在线查看合同链接" json:"view_url"` - DownloadUrl string `gorm:"column:download_url;type:varchar(500);comment:合同下载链接" json:"download_url"` - State int32 `gorm:"column:state;type:int(1);comment:合同状态;NOT NULL" json:"state"` //1 未签署 - Status int32 `gorm:"column:status;default:2;comment:2=锁定 3=解锁" json:"status" ` //跟随用户的锁定和解锁状态,用于控制数据的展示 - LockTime string `gorm:"column:lock_time;comment:锁定时间" json:"lockTime"` - SignTime string `gorm:"column:sign_time;comment:签署时间" json:"sign_time"` - BatchId int32 `gorm:"column:batch_id;comment:批次ID" json:"batch_id"` - BatchName string `gorm:"column:batch_name;comment:批次名" json:"batch_name"` - CreatedAt int32 `gorm:"column:created_at;autoCreateTime"` - UpdatedAt int32 `gorm:"column:updated_at;autoCreateTime"` + ID int32 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"` + Uid string `gorm:"column:uid;type:varchar(100);comment:合同表的唯一表示;NOT NULL" json:"uid"` + ArtistUid string `gorm:"column:artist_uid;type:varchar(100);comment:画家uid;NOT NULL" json:"artist_uid"` + ArtworkUid string `gorm:"column:artwork_uid;type:varchar(1000);comment:画作uid" json:"artwork_uid"` + ContractId string `gorm:"column:contract_id;type:varchar(300);comment:合同id" json:"contract_id"` + TransactionId string `gorm:"column:transaction_id;type:varchar(300);comment:交易id" json:"transaction_id"` + Type int32 `gorm:"column:type;type:int(1);comment:合同类型 (1);NOT NULL" json:"type"` + ViewUrl string `gorm:"column:view_url;type:varchar(500);comment:在线查看合同链接" json:"view_url"` + DownloadUrl string `gorm:"column:download_url;type:varchar(500);comment:合同下载链接" json:"download_url"` + State int32 `gorm:"column:state;type:int(1);comment:合同状态,1:未签署2:已签署;NOT NULL" json:"state"` //1 未签署 2 已签署 + Status int32 `gorm:"column:status;default:2;comment:2=锁定 3=解锁" json:"status" ` //跟随用户的锁定和解锁状态,用于控制数据的展示 + LockTime string `gorm:"column:lock_time;comment:锁定时间" json:"lockTime"` + SignTime string `gorm:"column:sign_time;comment:签署时间" json:"sign_time"` + BatchName string `gorm:"column:batch_name;comment:批次名" json:"batch_name"` + StType int32 `gorm:"column:st_type;unqiueIndex:sttype_uid_batchtime_idx;comment:对账单类型 1=版权 2=物权;"` + BatchId int32 `gorm:"column:batch_id;comment:批次ID" json:"batch_id"` + ArtworkInfo []ArtworkStatementDetail `gorm:"column:artwork_info;foreignKey:BatchId;references:ID"` //当前批次的委托单详情 + CreatedAt int32 `gorm:"column:created_at;autoCreateTime"` + UpdatedAt int32 `gorm:"column:updated_at;autoCreateTime"` DeletedAt soft_delete.DeletedAt } + +// 对账单画作委托详情 +type ArtworkStatementDetail struct { + Model + Uid string `gorm:"column:uid;type:varchar(100);comment:对账单画作详情表的唯一表示;NOT NULL" json:"uid"` + BatchId int64 `gorm:"column:batch_id;unqiueIndex:batchid_tfnum_idx;comment:批次id;"` + TfNum string `gorm:"column:tf_num;unqiueIndex:batchid_tfnum_idx;comment:"泰丰画作编号"` + ArtworkName string `gorm:"column:artwork_name;comment:画作名称"` + Ruler string `gorm:"column:ruler;comment:平尺"` + SaleNo string `gorm:"column:sale_no;comment:销售单号"` + CompleteDate string `gorm:"column:complete_date;comment:成交日期"` + MinPrice float32 `gorm:"column:min_price;comment:委托销售底价"` + GuaranteePrice float32 `gorm:"column:guarantee_price;comment:已收取保证金;"` +} + +func (ArtworkStatementDetail) TableName() string { + return "artwork_statement_detail" +} diff --git a/pb/artistinfoStatement/artistinfoStatement.pb.go b/pb/artistinfoStatement/artistinfoStatement.pb.go deleted file mode 100644 index b18d5d0..0000000 --- a/pb/artistinfoStatement/artistinfoStatement.pb.go +++ /dev/null @@ -1,1232 +0,0 @@ -// 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 artistinfoStatement - -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=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"` -} - -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"` - Ids []int64 `protobuf:"varint,4,rep,packed,name=ids,proto3" json:"ids,omitempty"` - BatchTimeList []string `protobuf:"bytes,5,rep,name=batchTimeList,proto3" json:"batchTimeList,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 -} - -func (x *GetStatementBatchListRequest) GetIds() []int64 { - if x != nil { - return x.Ids - } - return nil -} - -func (x *GetStatementBatchListRequest) GetBatchTimeList() []string { - if x != nil { - return x.BatchTimeList - } - return nil -} - -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 -} - -type GetStatementBatchTimeMenusResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data []string `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetStatementBatchTimeMenusResponse) Reset() { - *x = GetStatementBatchTimeMenusResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_pb_artistinfoStatement_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetStatementBatchTimeMenusResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetStatementBatchTimeMenusResponse) ProtoMessage() {} - -func (x *GetStatementBatchTimeMenusResponse) ProtoReflect() protoreflect.Message { - mi := &file_pb_artistinfoStatement_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetStatementBatchTimeMenusResponse.ProtoReflect.Descriptor instead. -func (*GetStatementBatchTimeMenusResponse) Descriptor() ([]byte, []int) { - return file_pb_artistinfoStatement_proto_rawDescGZIP(), []int{11} -} - -func (x *GetStatementBatchTimeMenusResponse) GetData() []string { - if x != nil { - return x.Data - } - 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, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, - 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x55, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, - 0x55, 0x69, 0x64, 0x12, 0x26, 0x0a, 0x0e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x52, 0x65, 0x61, - 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x61, 0x72, 0x74, - 0x69, 0x73, 0x74, 0x52, 0x65, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x66, - 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x0a, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x62, - 0x61, 0x74, 0x63, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x62, 0x61, 0x74, 0x63, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x69, 0x6e, - 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x02, 0x52, 0x08, 0x6d, 0x69, 0x6e, - 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x67, 0x75, 0x61, 0x72, 0x61, 0x6e, 0x74, - 0x65, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0e, 0x67, - 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, 0xa6, 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, 0x62, 0x61, 0x74, 0x63, 0x68, - 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x62, 0x61, 0x74, 0x63, 0x68, 0x49, - 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x66, 0x4e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x74, 0x66, 0x4e, 0x75, 0x6d, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x72, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x72, - 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x75, 0x6c, - 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x72, 0x12, - 0x16, 0x0a, 0x06, 0x73, 0x61, 0x6c, 0x65, 0x4e, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x73, 0x61, 0x6c, 0x65, 0x4e, 0x6f, 0x12, 0x22, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x70, 0x6c, - 0x65, 0x74, 0x65, 0x44, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, - 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, 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, 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, 0xc7, 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, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, - 0x28, 0x03, 0x52, 0x03, 0x69, 0x64, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x62, 0x61, 0x74, 0x63, 0x68, - 0x54, 0x69, 0x6d, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, - 0x62, 0x61, 0x74, 0x63, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x4c, 0x69, 0x73, 0x74, 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, 0x22, 0x38, 0x0a, 0x22, 0x47, - 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, - 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0x85, 0x06, 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, - 0x78, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, - 0x61, 0x74, 0x63, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x73, 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, 0x2e, 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, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x73, 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, 0x18, 0x5a, - 0x16, 0x2e, 0x2f, 0x3b, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 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, 12) -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 - (*GetStatementBatchTimeMenusResponse)(nil), // 11: artistinfo.GetStatementBatchTimeMenusResponse - (*emptypb.Empty)(nil), // 12: 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 - 7, // 11: artistinfo.Statement.GetStatementBatchTimeMenus:input_type -> artistinfo.GetStatementBatchListRequest - 4, // 12: artistinfo.Statement.CreateStatementDetail:input_type -> artistinfo.StatementDetailRequest - 6, // 13: artistinfo.Statement.BatchCreateStatementDetail:input_type -> artistinfo.BatchCreateStatementDetailRequest - 9, // 14: artistinfo.Statement.GetStatementDetailList:input_type -> artistinfo.GetStatementDetailListRequest - 2, // 15: artistinfo.Statement.CreateStatementBatch:output_type -> artistinfo.CreateStatementBatchResponse - 12, // 16: artistinfo.Statement.BatchCreateStatementBatch:output_type -> google.protobuf.Empty - 8, // 17: artistinfo.Statement.GetStatementBatchList:output_type -> artistinfo.GetStatementBatchListResponse - 11, // 18: artistinfo.Statement.GetStatementBatchTimeMenus:output_type -> artistinfo.GetStatementBatchTimeMenusResponse - 5, // 19: artistinfo.Statement.CreateStatementDetail:output_type -> artistinfo.CreateStatementDetailResponse - 12, // 20: artistinfo.Statement.BatchCreateStatementDetail:output_type -> google.protobuf.Empty - 10, // 21: artistinfo.Statement.GetStatementDetailList:output_type -> artistinfo.GetStatementDetailListResponse - 15, // [15:22] is the sub-list for method output_type - 8, // [8:15] 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 - } - } - file_pb_artistinfoStatement_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetStatementBatchTimeMenusResponse); 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: 12, - 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 deleted file mode 100644 index 109290d..0000000 --- a/pb/artistinfoStatement/artistinfoStatement.pb.validate.go +++ /dev/null @@ -1,1589 +0,0 @@ -// Code generated by protoc-gen-validate. DO NOT EDIT. -// source: pb/artistinfoStatement.proto - -package artistinfoStatement - -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{} - -// Validate checks the field values on GetStatementBatchTimeMenusResponse 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 *GetStatementBatchTimeMenusResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetStatementBatchTimeMenusResponse -// 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 -// GetStatementBatchTimeMenusResponseMultiError, or nil if none found. -func (m *GetStatementBatchTimeMenusResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *GetStatementBatchTimeMenusResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if len(errors) > 0 { - return GetStatementBatchTimeMenusResponseMultiError(errors) - } - - return nil -} - -// GetStatementBatchTimeMenusResponseMultiError is an error wrapping multiple -// validation errors returned by -// GetStatementBatchTimeMenusResponse.ValidateAll() if the designated -// constraints aren't met. -type GetStatementBatchTimeMenusResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetStatementBatchTimeMenusResponseMultiError) 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 GetStatementBatchTimeMenusResponseMultiError) AllErrors() []error { return m } - -// GetStatementBatchTimeMenusResponseValidationError is the validation error -// returned by GetStatementBatchTimeMenusResponse.Validate if the designated -// constraints aren't met. -type GetStatementBatchTimeMenusResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetStatementBatchTimeMenusResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetStatementBatchTimeMenusResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetStatementBatchTimeMenusResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetStatementBatchTimeMenusResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetStatementBatchTimeMenusResponseValidationError) ErrorName() string { - return "GetStatementBatchTimeMenusResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e GetStatementBatchTimeMenusResponseValidationError) 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 %sGetStatementBatchTimeMenusResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetStatementBatchTimeMenusResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetStatementBatchTimeMenusResponseValidationError{} diff --git a/pb/artistinfoStatement/artistinfoStatement_triple.pb.go b/pb/artistinfoStatement/artistinfoStatement_triple.pb.go deleted file mode 100644 index e62a012..0000000 --- a/pb/artistinfoStatement/artistinfoStatement_triple.pb.go +++ /dev/null @@ -1,418 +0,0 @@ -// 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 artistinfoStatement - -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) - GetStatementBatchTimeMenus(ctx context.Context, in *GetStatementBatchListRequest, opts ...grpc_go.CallOption) (*GetStatementBatchTimeMenusResponse, 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) - GetStatementBatchTimeMenus func(ctx context.Context, in *GetStatementBatchListRequest) (*GetStatementBatchTimeMenusResponse, 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) GetStatementBatchTimeMenus(ctx context.Context, in *GetStatementBatchListRequest, opts ...grpc_go.CallOption) (*GetStatementBatchTimeMenusResponse, common.ErrorWithAttachment) { - out := new(GetStatementBatchTimeMenusResponse) - interfaceKey := ctx.Value(constant.InterfaceKey).(string) - return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetStatementBatchTimeMenus", 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) - GetStatementBatchTimeMenus(context.Context, *GetStatementBatchListRequest) (*GetStatementBatchTimeMenusResponse, 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) GetStatementBatchTimeMenus(context.Context, *GetStatementBatchListRequest) (*GetStatementBatchTimeMenusResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetStatementBatchTimeMenus 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_GetStatementBatchTimeMenus_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("GetStatementBatchTimeMenus", 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: "GetStatementBatchTimeMenus", - Handler: _Statement_GetStatementBatchTimeMenus_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", -} diff --git a/pb/artistinfoStatement/statement.pb.go b/pb/artistinfoStatement/statement.pb.go new file mode 100644 index 0000000..8bbd512 --- /dev/null +++ b/pb/artistinfoStatement/statement.pb.go @@ -0,0 +1,436 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.21.8 +// source: statement.proto + +package statement + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Contracts struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ContractUid string `protobuf:"bytes,1,opt,name=ContractUid,json=contract_uid,proto3" json:"ContractUid,omitempty"` + ArtistUid string `protobuf:"bytes,2,opt,name=ArtistUid,json=artist_uid,proto3" json:"ArtistUid,omitempty"` + ArtworkUid string `protobuf:"bytes,3,opt,name=ArtworkUid,json=artwork_uid,proto3" json:"ArtworkUid,omitempty"` + ContractId string `protobuf:"bytes,4,opt,name=ContractId,json=contract_id,proto3" json:"ContractId,omitempty"` + TransactionId string `protobuf:"bytes,5,opt,name=TransactionId,json=transaction_id,proto3" json:"TransactionId,omitempty"` + Type int32 `protobuf:"varint,6,opt,name=Type,json=type,proto3" json:"Type,omitempty"` + ViewUrl string `protobuf:"bytes,7,opt,name=ViewUrl,json=view_url,proto3" json:"ViewUrl,omitempty"` + DownloadUrl string `protobuf:"bytes,8,opt,name=DownloadUrl,json=download_url,proto3" json:"DownloadUrl,omitempty"` + State int32 `protobuf:"varint,9,opt,name=State,json=state,proto3" json:"State,omitempty"` + Status int32 `protobuf:"varint,10,opt,name=Status,json=status,proto3" json:"Status,omitempty"` + ExpirationTime string `protobuf:"bytes,11,opt,name=ExpirationTime,json=expiration_time,proto3" json:"ExpirationTime,omitempty"` + LockTime string `protobuf:"bytes,12,opt,name=LockTime,json=lock_time,proto3" json:"LockTime,omitempty"` + SignTime string `protobuf:"bytes,13,opt,name=SignTime,json=sign_time,proto3" json:"SignTime,omitempty"` +} + +func (x *Contracts) Reset() { + *x = Contracts{} + if protoimpl.UnsafeEnabled { + mi := &file_statement_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Contracts) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Contracts) ProtoMessage() {} + +func (x *Contracts) ProtoReflect() protoreflect.Message { + mi := &file_statement_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 Contracts.ProtoReflect.Descriptor instead. +func (*Contracts) Descriptor() ([]byte, []int) { + return file_statement_proto_rawDescGZIP(), []int{0} +} + +func (x *Contracts) GetContractUid() string { + if x != nil { + return x.ContractUid + } + return "" +} + +func (x *Contracts) GetArtistUid() string { + if x != nil { + return x.ArtistUid + } + return "" +} + +func (x *Contracts) GetArtworkUid() string { + if x != nil { + return x.ArtworkUid + } + return "" +} + +func (x *Contracts) GetContractId() string { + if x != nil { + return x.ContractId + } + return "" +} + +func (x *Contracts) GetTransactionId() string { + if x != nil { + return x.TransactionId + } + return "" +} + +func (x *Contracts) GetType() int32 { + if x != nil { + return x.Type + } + return 0 +} + +func (x *Contracts) GetViewUrl() string { + if x != nil { + return x.ViewUrl + } + return "" +} + +func (x *Contracts) GetDownloadUrl() string { + if x != nil { + return x.DownloadUrl + } + return "" +} + +func (x *Contracts) GetState() int32 { + if x != nil { + return x.State + } + return 0 +} + +func (x *Contracts) GetStatus() int32 { + if x != nil { + return x.Status + } + return 0 +} + +func (x *Contracts) GetExpirationTime() string { + if x != nil { + return x.ExpirationTime + } + return "" +} + +func (x *Contracts) GetLockTime() string { + if x != nil { + return x.LockTime + } + return "" +} + +func (x *Contracts) GetSignTime() string { + if x != nil { + return x.SignTime + } + return "" +} + +type StatementListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ArtistUid string `protobuf:"bytes,1,opt,name=ArtistUid,json=artist_uid,proto3" json:"ArtistUid,omitempty"` + PageSize int32 `protobuf:"varint,2,opt,name=PageSize,json=pageSize,proto3" json:"PageSize,omitempty"` + Page int32 `protobuf:"varint,3,opt,name=Page,json=page,proto3" json:"Page,omitempty"` + State int32 `protobuf:"varint,4,opt,name=State,json=state,proto3" json:"State,omitempty"` +} + +func (x *StatementListRequest) Reset() { + *x = StatementListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_statement_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StatementListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StatementListRequest) ProtoMessage() {} + +func (x *StatementListRequest) ProtoReflect() protoreflect.Message { + mi := &file_statement_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 StatementListRequest.ProtoReflect.Descriptor instead. +func (*StatementListRequest) Descriptor() ([]byte, []int) { + return file_statement_proto_rawDescGZIP(), []int{1} +} + +func (x *StatementListRequest) GetArtistUid() string { + if x != nil { + return x.ArtistUid + } + return "" +} + +func (x *StatementListRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *StatementListRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *StatementListRequest) GetState() int32 { + if x != nil { + return x.State + } + return 0 +} + +type StatementListRespond struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Data []*Contracts `protobuf:"bytes,1,rep,name=Data,json=data,proto3" json:"Data,omitempty"` + Msg string `protobuf:"bytes,2,opt,name=Msg,json=msg,proto3" json:"Msg,omitempty"` +} + +func (x *StatementListRespond) Reset() { + *x = StatementListRespond{} + if protoimpl.UnsafeEnabled { + mi := &file_statement_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StatementListRespond) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StatementListRespond) ProtoMessage() {} + +func (x *StatementListRespond) ProtoReflect() protoreflect.Message { + mi := &file_statement_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 StatementListRespond.ProtoReflect.Descriptor instead. +func (*StatementListRespond) Descriptor() ([]byte, []int) { + return file_statement_proto_rawDescGZIP(), []int{2} +} + +func (x *StatementListRespond) GetData() []*Contracts { + if x != nil { + return x.Data + } + return nil +} + +func (x *StatementListRespond) GetMsg() string { + if x != nil { + return x.Msg + } + return "" +} + +var File_statement_proto protoreflect.FileDescriptor + +var file_statement_proto_rawDesc = []byte{ + 0x0a, 0x0f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x99, 0x03, 0x0a, + 0x09, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x12, 0x21, 0x0a, 0x0b, 0x43, 0x6f, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x55, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x75, 0x69, 0x64, 0x12, 0x1d, 0x0a, + 0x09, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x55, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x5f, 0x75, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x0a, + 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x55, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x61, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x75, 0x69, 0x64, 0x12, 0x1f, 0x0a, + 0x0a, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x12, 0x25, + 0x0a, 0x0d, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x07, 0x56, 0x69, 0x65, + 0x77, 0x55, 0x72, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x69, 0x65, 0x77, + 0x5f, 0x75, 0x72, 0x6c, 0x12, 0x21, 0x0a, 0x0b, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, + 0x55, 0x72, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x6f, 0x77, 0x6e, 0x6c, + 0x6f, 0x61, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, + 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x27, 0x0a, 0x0e, 0x45, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x65, + 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1b, + 0x0a, 0x08, 0x4c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x08, 0x53, + 0x69, 0x67, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, + 0x69, 0x67, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x7b, 0x0a, 0x14, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x1d, 0x0a, 0x09, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x55, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x5f, 0x75, 0x69, 0x64, 0x12, + 0x1a, 0x0a, 0x08, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x50, + 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, + 0x14, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x52, 0x0a, 0x14, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x12, 0x28, 0x0a, + 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, + 0x73, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x32, 0x60, 0x0a, 0x09, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x53, 0x0a, 0x0d, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1f, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x22, 0x00, 0x42, 0x0e, 0x5a, 0x0c, 0x2e, + 0x2f, 0x3b, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_statement_proto_rawDescOnce sync.Once + file_statement_proto_rawDescData = file_statement_proto_rawDesc +) + +func file_statement_proto_rawDescGZIP() []byte { + file_statement_proto_rawDescOnce.Do(func() { + file_statement_proto_rawDescData = protoimpl.X.CompressGZIP(file_statement_proto_rawDescData) + }) + return file_statement_proto_rawDescData +} + +var file_statement_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_statement_proto_goTypes = []interface{}{ + (*Contracts)(nil), // 0: statement.Contracts + (*StatementListRequest)(nil), // 1: statement.StatementListRequest + (*StatementListRespond)(nil), // 2: statement.StatementListRespond +} +var file_statement_proto_depIdxs = []int32{ + 0, // 0: statement.StatementListRespond.Data:type_name -> statement.Contracts + 1, // 1: statement.Statement.StatementList:input_type -> statement.StatementListRequest + 2, // 2: statement.Statement.StatementList:output_type -> statement.StatementListRespond + 2, // [2:3] is the sub-list for method output_type + 1, // [1:2] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_statement_proto_init() } +func file_statement_proto_init() { + if File_statement_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_statement_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Contracts); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_statement_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StatementListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_statement_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StatementListRespond); 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_statement_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_statement_proto_goTypes, + DependencyIndexes: file_statement_proto_depIdxs, + MessageInfos: file_statement_proto_msgTypes, + }.Build() + File_statement_proto = out.File + file_statement_proto_rawDesc = nil + file_statement_proto_goTypes = nil + file_statement_proto_depIdxs = nil +} diff --git a/pb/artistinfoStatement/statement.proto b/pb/artistinfoStatement/statement.proto new file mode 100644 index 0000000..689b3a3 --- /dev/null +++ b/pb/artistinfoStatement/statement.proto @@ -0,0 +1,36 @@ +syntax = "proto3"; +package statement; +option go_package = "./;statement"; + +service Statement { + rpc StatementList (StatementListRequest) returns (StatementListRespond) {} +} + +message Contracts{ + string ContractUid = 1 [json_name = "contract_uid"]; + string ArtistUid = 2 [json_name = "artist_uid"]; + string ArtworkUid = 3 [json_name = "artwork_uid"]; + string ContractId = 4 [json_name = "contract_id"]; + string TransactionId = 5 [json_name = "transaction_id"]; + int32 Type = 6 [json_name = "type"]; + string ViewUrl = 7 [json_name = "view_url"]; + string DownloadUrl = 8 [json_name = "download_url"]; + int32 State = 9 [json_name = "state"]; + int32 Status = 10 [json_name = "status"]; + string ExpirationTime = 11 [json_name = "expiration_time"]; + string LockTime = 12 [json_name = "lock_time"]; + string SignTime = 13 [json_name = "sign_time"]; + + } + +message StatementListRequest { + string ArtistUid = 1 [json_name = "artist_uid"]; + int32 PageSize = 2 [json_name="pageSize"]; + int32 Page = 3 [json_name="page"]; + int32 State = 4 [json_name="state"]; +} + +message StatementListRespond { + repeated Contracts Data = 1 [json_name = "data"]; + string Msg = 2 [json_name = "msg"]; +} \ No newline at end of file diff --git a/pb/artistinfoStatement/statement.validator.pb.go b/pb/artistinfoStatement/statement.validator.pb.go new file mode 100644 index 0000000..0957f4c --- /dev/null +++ b/pb/artistinfoStatement/statement.validator.pb.go @@ -0,0 +1,33 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: statement.proto + +package statement + +import ( + fmt "fmt" + math "math" + proto "github.com/golang/protobuf/proto" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +func (this *Contracts) Validate() error { + return nil +} +func (this *StatementListRequest) Validate() error { + return nil +} +func (this *StatementListRespond) Validate() error { + for _, item := range this.Data { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Data", err) + } + } + } + return nil +} diff --git a/pb/artistinfoStatement/statement_triple.pb.go b/pb/artistinfoStatement/statement_triple.pb.go new file mode 100644 index 0000000..e9a1ae1 --- /dev/null +++ b/pb/artistinfoStatement/statement_triple.pb.go @@ -0,0 +1,147 @@ +// Code generated by protoc-gen-go-triple. DO NOT EDIT. +// versions: +// - protoc-gen-go-triple v1.0.8 +// - protoc v3.21.8 +// source: statement.proto + +package statement + +import ( + context "context" + protocol "dubbo.apache.org/dubbo-go/v3/protocol" + dubbo3 "dubbo.apache.org/dubbo-go/v3/protocol/dubbo3" + invocation "dubbo.apache.org/dubbo-go/v3/protocol/invocation" + grpc_go "github.com/dubbogo/grpc-go" + codes "github.com/dubbogo/grpc-go/codes" + metadata "github.com/dubbogo/grpc-go/metadata" + status "github.com/dubbogo/grpc-go/status" + common "github.com/dubbogo/triple/pkg/common" + constant "github.com/dubbogo/triple/pkg/common/constant" + triple "github.com/dubbogo/triple/pkg/triple" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc_go.SupportPackageIsVersion7 + +// 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 { + StatementList(ctx context.Context, in *StatementListRequest, opts ...grpc_go.CallOption) (*StatementListRespond, common.ErrorWithAttachment) +} + +type statementClient struct { + cc *triple.TripleConn +} + +type StatementClientImpl struct { + StatementList func(ctx context.Context, in *StatementListRequest) (*StatementListRespond, error) +} + +func (c *StatementClientImpl) GetDubboStub(cc *triple.TripleConn) StatementClient { + return NewStatementClient(cc) +} + +func (c *StatementClientImpl) XXX_InterfaceName() string { + return "statement.Statement" +} + +func NewStatementClient(cc *triple.TripleConn) StatementClient { + return &statementClient{cc} +} + +func (c *statementClient) StatementList(ctx context.Context, in *StatementListRequest, opts ...grpc_go.CallOption) (*StatementListRespond, common.ErrorWithAttachment) { + out := new(StatementListRespond) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/StatementList", in, out) +} + +// StatementServer is the server API for Statement service. +// All implementations must embed UnimplementedStatementServer +// for forward compatibility +type StatementServer interface { + StatementList(context.Context, *StatementListRequest) (*StatementListRespond, error) + mustEmbedUnimplementedStatementServer() +} + +// UnimplementedStatementServer must be embedded to have forward compatible implementations. +type UnimplementedStatementServer struct { + proxyImpl protocol.Invoker +} + +func (UnimplementedStatementServer) StatementList(context.Context, *StatementListRequest) (*StatementListRespond, error) { + return nil, status.Errorf(codes.Unimplemented, "method StatementList 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 "statement.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_StatementList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(StatementListRequest) + 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("StatementList", 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: "statement.Statement", + HandlerType: (*StatementServer)(nil), + Methods: []grpc_go.MethodDesc{ + { + MethodName: "StatementList", + Handler: _Statement_StatementList_Handler, + }, + }, + Streams: []grpc_go.StreamDesc{}, + Metadata: "statement.proto", +} diff --git a/pb/contract/contract.proto b/pb/contract/contract.proto index e8605d9..4611451 100644 --- a/pb/contract/contract.proto +++ b/pb/contract/contract.proto @@ -59,7 +59,6 @@ message ContractListRequest { int32 PageSize = 2 [json_name="pageSize"]; int32 Page = 3 [json_name="page"]; int32 State = 4 [json_name="state"]; - } message ContractListRespond { diff --git a/pkg/db/init.go b/pkg/db/init.go index 1e4dac8..60089f3 100644 --- a/pkg/db/init.go +++ b/pkg/db/init.go @@ -123,9 +123,10 @@ func migration() { &model.ArtshowArtistIndex{}, //画展-画家指数 &model.ArtshowArtistSupplement{}, //画展-画家补充信息 &model.Contract{}, //合同 - &model.StatementBatch{}, //对账单批次 - &model.ArtworkEntrustDetail{}, // - &model.ArtworkSalesDetail{}, // + &model.ArtworkStatementDetail{}, //对账单详情 + // &model.StatementBatch{}, //对账单批次 + // &model.ArtworkEntrustDetail{}, // + // &model.ArtworkSalesDetail{}, // ) if err != nil { fmt.Println("register table fail")