同上
This commit is contained in:
parent
2c95d31139
commit
b44b229b4e
25
cmd/internal/dao/artistinfo_statement.go
Normal file
25
cmd/internal/dao/artistinfo_statement.go
Normal 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
|
||||
}
|
33
cmd/internal/logic/artistinfo_statement.go
Normal file
33
cmd/internal/logic/artistinfo_statement.go
Normal 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)
|
||||
}
|
@ -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;
|
||||
}
|
||||
|
@ -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 (
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Code generated by protoc-gen-validate. DO NOT EDIT.
|
||||
// source: pb/artistinfoStatement.proto
|
||||
|
||||
package artistinfoArtshow
|
||||
package artistinfoStatement
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
@ -4,7 +4,7 @@
|
||||
// - protoc v4.22.0--rc2
|
||||
// source: pb/artistinfoStatement.proto
|
||||
|
||||
package artistinfoArtshow
|
||||
package artistinfoStatement
|
||||
|
||||
import (
|
||||
context "context"
|
||||
|
Loading…
Reference in New Issue
Block a user