This commit is contained in:
徐俊杰 2023-03-16 18:17:12 +08:00
parent 2c95d31139
commit b44b229b4e
6 changed files with 73 additions and 14 deletions

View File

@ -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
}

View File

@ -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)
}

View File

@ -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;
@ -76,7 +77,7 @@ message GetStatementBatchListResponse{
message GetStatementDetailListRequest{
StatementDetailRequest condition=1;
StatementDetailRequest condition=1; //
int64 page =2;
int64 pageSize =3;
}

View File

@ -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 (

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-validate. DO NOT EDIT.
// source: pb/artistinfoStatement.proto
package artistinfoArtshow
package artistinfoStatement
import (
"bytes"

View File

@ -4,7 +4,7 @@
// - protoc v4.22.0--rc2
// source: pb/artistinfoStatement.proto
package artistinfoArtshow
package artistinfoStatement
import (
context "context"