2023-03-15 06:51:41 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package artistinfo;
|
|
|
|
option go_package = "./;artistinfoArtshow";
|
|
|
|
|
|
|
|
//import "validate.proto";
|
|
|
|
import public "google/protobuf/timestamp.proto";
|
2023-03-16 08:53:25 +00:00
|
|
|
import "google/protobuf/empty.proto"; //使用 google.protobuf.Empty
|
2023-03-15 06:51:41 +00:00
|
|
|
|
|
|
|
// protoc -I . -I ./pb --proto_path=. --go_out=./pb/artistinfoStatement --go-triple_out=./pb/artistinfoStatement --validate_out="lang=go:./pb/artistinfoStatement" ./pb/artistinfoStatement.proto
|
|
|
|
service Statement {
|
2023-03-16 08:53:25 +00:00
|
|
|
rpc CreateStatementBatch(StatementBatchRequest)returns(CreateStatementBatchResponse){}; //创建对账单批次
|
|
|
|
rpc BatchCreateStatementBatch(BatchCreateStatementBatchRequest)returns(google.protobuf.Empty){};//批量创建对账单批次
|
|
|
|
rpc GetStatementBatchList(GetStatementBatchListRequest)returns(GetStatementBatchListResponse){};//查询对账单批次列表
|
2023-03-15 10:08:37 +00:00
|
|
|
|
2023-03-16 08:53:25 +00:00
|
|
|
rpc CreateStatementDetail(StatementDetailRequest)returns(CreateStatementDetailResponse){};//创建对账单详情
|
|
|
|
rpc BatchCreateStatementDetail(BatchCreateStatementDetailRequest)returns(google.protobuf.Empty){};//批量创建对账单详情
|
|
|
|
rpc GetStatementDetailList(GetStatementDetailListRequest)returns(GetStatementDetailListResponse){};//查询对账单详情列表
|
|
|
|
}
|
2023-03-15 06:51:41 +00:00
|
|
|
|
2023-03-16 08:53:25 +00:00
|
|
|
message StatementPageInfo{
|
|
|
|
int64 page =1;
|
|
|
|
int64 pageSize =2;
|
|
|
|
int64 total=3;
|
|
|
|
}
|
|
|
|
message StatementBatchRequest{
|
|
|
|
int32 StType=1; // 字段注释请查看对账单结构体模型 cmd/model/artworkStatement.go
|
|
|
|
string ArtistUid=2;
|
|
|
|
string ArtistRealName=3;
|
|
|
|
int32 FlowStatus=4;
|
|
|
|
string BatchTime=5;
|
|
|
|
float MinPrice=6;
|
|
|
|
float GuaranteePrice=7;
|
|
|
|
int64 id = 8;
|
|
|
|
string createdAt =9;
|
|
|
|
string updatedAt =10;
|
|
|
|
int64 deletedAt =11;
|
|
|
|
string fileUrl =12;
|
|
|
|
}
|
|
|
|
message CreateStatementBatchResponse{
|
|
|
|
int64 id =1;
|
|
|
|
}
|
|
|
|
message BatchCreateStatementBatchRequest{
|
|
|
|
repeated StatementBatchRequest data =1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
message StatementDetailRequest{
|
|
|
|
int64 BatchId = 1; //字段注释请查看对账单结构体模型 cmd/model/artworkStatement.go
|
|
|
|
string TfNum = 2;
|
|
|
|
string ArtworkName =3;
|
|
|
|
string Ruler = 4;
|
|
|
|
string SaleNo = 5;
|
|
|
|
string CompleteDate = 6;
|
|
|
|
int64 id = 8;
|
|
|
|
string created_at=9;
|
|
|
|
string updated_at=10;
|
|
|
|
int64 deleted_at=11;
|
|
|
|
}
|
|
|
|
message CreateStatementDetailResponse{
|
|
|
|
int64 id=1;
|
|
|
|
}
|
|
|
|
message BatchCreateStatementDetailRequest{
|
|
|
|
repeated StatementDetailRequest data =1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetStatementBatchListRequest{
|
|
|
|
StatementBatchRequest condition=1;
|
|
|
|
int64 page =2;
|
|
|
|
int64 pageSize =3;
|
2023-03-15 06:51:41 +00:00
|
|
|
|
2023-03-16 08:53:25 +00:00
|
|
|
}
|
|
|
|
message GetStatementBatchListResponse{
|
|
|
|
repeated StatementBatchRequest data=1;
|
|
|
|
StatementPageInfo page =2;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
message GetStatementDetailListRequest{
|
|
|
|
StatementDetailRequest condition=1;
|
|
|
|
int64 page =2;
|
|
|
|
int64 pageSize =3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetStatementDetailListResponse{
|
|
|
|
repeated StatementDetailRequest data=1;
|
|
|
|
StatementPageInfo page =2;
|
2023-03-15 06:51:41 +00:00
|
|
|
}
|