From b44b229b4e00a71a02c9e8d58b4708037d81fc34 Mon Sep 17 00:00:00 2001 From: dorlolo <428192774@qq.com> Date: Thu, 16 Mar 2023 18:17:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/internal/dao/artistinfo_statement.go | 25 ++++++++++++++ cmd/internal/logic/artistinfo_statement.go | 33 +++++++++++++++++++ pb/artistinfoStatement.proto | 15 +++++---- .../artistinfoStatement.pb.go | 10 +++--- .../artistinfoStatement.pb.validate.go | 2 +- .../artistinfoStatement_triple.pb.go | 2 +- 6 files changed, 73 insertions(+), 14 deletions(-) create mode 100644 cmd/internal/dao/artistinfo_statement.go create mode 100644 cmd/internal/logic/artistinfo_statement.go diff --git a/cmd/internal/dao/artistinfo_statement.go b/cmd/internal/dao/artistinfo_statement.go new file mode 100644 index 0000000..8312752 --- /dev/null +++ b/cmd/internal/dao/artistinfo_statement.go @@ -0,0 +1,25 @@ +package dao + +import ( + "github.com/fonchain/fonchain-artistinfo/pb/artistinfoStatement" + "google.golang.org/protobuf/types/known/emptypb" +) + +func CreateStatementBatch(in *artistinfoStatement.StatementBatchRequest) (res *artistinfoStatement.CreateStatementBatchResponse, err error) { + return nil, nil +} +func BatchCreateStatementBatch(in *artistinfoStatement.BatchCreateStatementBatchRequest) (*emptypb.Empty, error) { + return nil, nil +} +func GetStatementBatchList(in *artistinfoStatement.GetStatementBatchListRequest) (*artistinfoStatement.GetStatementBatchListResponse, error) { + return nil, nil +} +func CreateStatementDetail(in *artistinfoStatement.StatementDetailRequest) (*artistinfoStatement.CreateStatementDetailResponse, error) { + return nil, nil +} +func BatchCreateStatementDetail(in *artistinfoStatement.BatchCreateStatementDetailRequest) (*emptypb.Empty, error) { + return nil, nil +} +func GetStatementDetailList(in *artistinfoStatement.GetStatementDetailListRequest) (*artistinfoStatement.GetStatementDetailListResponse, error) { + return nil, nil +} diff --git a/cmd/internal/logic/artistinfo_statement.go b/cmd/internal/logic/artistinfo_statement.go new file mode 100644 index 0000000..89c7c1a --- /dev/null +++ b/cmd/internal/logic/artistinfo_statement.go @@ -0,0 +1,33 @@ +package logic + +import ( + "github.com/fonchain/fonchain-artistinfo/cmd/internal/dao" + "github.com/fonchain/fonchain-artistinfo/pb/artistinfoStatement" + "google.golang.org/protobuf/types/known/emptypb" +) + +type StatementServerLogic struct{} + +func (s *StatementServerLogic) CreateStatementBatch(in *artistinfoStatement.StatementBatchRequest) (res *artistinfoStatement.CreateStatementBatchResponse, err error) { + return dao.CreateStatementBatch(in) +} + +func (s *StatementServerLogic) BatchCreateStatementBatch(in *artistinfoStatement.BatchCreateStatementBatchRequest) (*emptypb.Empty, error) { + return dao.BatchCreateStatementBatch(in) +} + +func (s *StatementServerLogic) GetStatementBatchList(in *artistinfoStatement.GetStatementBatchListRequest) (*artistinfoStatement.GetStatementBatchListResponse, error) { + return dao.GetStatementBatchList(in) +} + +func (s *StatementServerLogic) CreateStatementDetail(in *artistinfoStatement.StatementDetailRequest) (*artistinfoStatement.CreateStatementDetailResponse, error) { + return dao.CreateStatementDetail(in) +} + +func (s *StatementServerLogic) BatchCreateStatementDetail(in *artistinfoStatement.BatchCreateStatementDetailRequest) (*emptypb.Empty, error) { + return dao.BatchCreateStatementDetail(in) +} + +func (s *StatementServerLogic) GetStatementDetailList(in *artistinfoStatement.GetStatementDetailListRequest) (*artistinfoStatement.GetStatementDetailListResponse, error) { + return dao.GetStatementDetailList(in) +} diff --git a/pb/artistinfoStatement.proto b/pb/artistinfoStatement.proto index 026b007..93c8cc1 100644 --- a/pb/artistinfoStatement.proto +++ b/pb/artistinfoStatement.proto @@ -1,6 +1,6 @@ syntax = "proto3"; package artistinfo; -option go_package = "./;artistinfoArtshow"; +option go_package = "./;artistinfoStatement"; //import "validate.proto"; import public "google/protobuf/timestamp.proto"; @@ -22,6 +22,7 @@ message StatementPageInfo{ int64 pageSize =2; int64 total=3; } + message StatementBatchRequest{ int32 StType=1; // 字段注释请查看对账单结构体模型 cmd/model/artworkStatement.go string ArtistUid=2; @@ -30,11 +31,11 @@ message StatementBatchRequest{ string BatchTime=5; float MinPrice=6; float GuaranteePrice=7; - int64 id = 8; - string createdAt =9; - string updatedAt =10; - int64 deletedAt =11; - string fileUrl =12; + int64 id = 8; + string createdAt =9; + string updatedAt =10; + int64 deletedAt =11; + string fileUrl =12; } message CreateStatementBatchResponse{ int64 id =1; @@ -76,7 +77,7 @@ message GetStatementBatchListResponse{ message GetStatementDetailListRequest{ - StatementDetailRequest condition=1; + StatementDetailRequest condition=1; //通用条件 int64 page =2; int64 pageSize =3; } diff --git a/pb/artistinfoStatement/artistinfoStatement.pb.go b/pb/artistinfoStatement/artistinfoStatement.pb.go index 5d50b55..c2a801b 100644 --- a/pb/artistinfoStatement/artistinfoStatement.pb.go +++ b/pb/artistinfoStatement/artistinfoStatement.pb.go @@ -4,7 +4,7 @@ // protoc v4.22.0--rc2 // source: pb/artistinfoStatement.proto -package artistinfoArtshow +package artistinfoStatement import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -654,7 +654,7 @@ type GetStatementDetailListRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Condition *StatementDetailRequest `protobuf:"bytes,1,opt,name=condition,proto3" json:"condition,omitempty"` + 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"` } @@ -919,9 +919,9 @@ var file_pb_artistinfoStatement_proto_rawDesc = []byte{ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x42, 0x16, 0x5a, 0x14, 0x2e, 0x2f, 0x3b, 0x61, 0x72, 0x74, 0x69, 0x73, - 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x41, 0x72, 0x74, 0x73, 0x68, 0x6f, 0x77, 0x50, 0x00, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 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 ( diff --git a/pb/artistinfoStatement/artistinfoStatement.pb.validate.go b/pb/artistinfoStatement/artistinfoStatement.pb.validate.go index 8999fa0..8a66b19 100644 --- a/pb/artistinfoStatement/artistinfoStatement.pb.validate.go +++ b/pb/artistinfoStatement/artistinfoStatement.pb.validate.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-validate. DO NOT EDIT. // source: pb/artistinfoStatement.proto -package artistinfoArtshow +package artistinfoStatement import ( "bytes" diff --git a/pb/artistinfoStatement/artistinfoStatement_triple.pb.go b/pb/artistinfoStatement/artistinfoStatement_triple.pb.go index 0f04ce1..1a1ee47 100644 --- a/pb/artistinfoStatement/artistinfoStatement_triple.pb.go +++ b/pb/artistinfoStatement/artistinfoStatement_triple.pb.go @@ -4,7 +4,7 @@ // - protoc v4.22.0--rc2 // source: pb/artistinfoStatement.proto -package artistinfoArtshow +package artistinfoStatement import ( context "context"