对账单代码测试修改

This commit is contained in:
songchuang 2023-04-19 16:44:14 +08:00
parent a713709c62
commit ef9f739faa
3 changed files with 2 additions and 123 deletions

View File

@ -123,6 +123,7 @@ func CreateStatementContract(tx *gorm.DB, artistUid, batchUid, batchTime string,
Uid: uid.String(),
ArtistUid: artistUid,
Type: contractType,
Status: 0,
BatchTime: batchTime,
BatchUid: batchUid,
}

View File

@ -14,7 +14,7 @@ type Contract struct {
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;default:1;type:int(1);comment:合同状态,1:未签署2:已签署;NOT NULL" json:"state"` //1 未签署 2 已签署
Status int32 `gorm:"column:status;default:2;comment:2=锁定 3=解锁" json:"status" ` //跟随用户的锁定和解锁状态,用于控制数据的展示
Status int32 `gorm:"column:status;default:2;comment:2=锁定 3=解锁 0=合同和锁定无关" json:"status" ` //跟随用户的锁定和解锁状态,用于控制数据的展示
LockTime string `gorm:"column:lock_time;comment:锁定时间" json:"lockTime"`
SignTime string `gorm:"column:sign_time;comment:签署时间" json:"sign_time"`
BatchTime string `gorm:"column:batch_time;comment:批次时间" json:"batch_time"`

View File

@ -1,122 +0,0 @@
syntax = "proto3";
package artistinfo;
option go_package = "./;artistinfoStatement";
//import "validate.proto";
import public "google/protobuf/timestamp.proto";
import "google/protobuf/empty.proto"; //使 google.protobuf.Empty
// 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 {
rpc CreateOrUpdateStatementBatch(StatementBatchRequest)returns(CreateStatementBatchResponse){}; //
rpc BatchCreateStatementBatch(BatchCreateStatementBatchRequest)returns(google.protobuf.Empty){}; //
rpc GetStatementBatchList(GetStatementBatchListRequest)returns(GetStatementBatchListResponse){}; //
rpc GetStatementBatchTimeMenus(GetStatementBatchListRequest)returns(GetStatementBatchTimeMenusResponse){}; //
rpc CreateStatementDetail(StatementDetailRequest)returns(CreateStatementDetailResponse){};//
rpc BatchCreateStatementDetail(BatchCreateStatementDetailRequest)returns(google.protobuf.Empty){};//
rpc GetStatementDetailList(GetStatementDetailListRequest)returns(GetStatementDetailListResponse){};//
}
message StatementPageInfo{
int64 page =1;
int64 pageSize =2;
int64 total=3;
}
enum StatementCreateType{
saveEntrust=0;
saveSalse=1;
}
message StatementBatchRequest{ // cmd/model/artworkStatement.go
string artistUid=1;
string artistName=2;
string aatchTime=3;
int32 flowStatus=4;
StatementCreateType updateType=5;
repeated EntrustRequest entrustList=6;
repeated SalesRequest salesList=7;
}
message EntrustRequest{
string tfNum =1;
string artworkName =2;
string ruler =3;
string saleNo =4;
string completeDate =5;
float minPrice =6;
float guaranteePrice =7;
}
message SalesRequest {
string tfNum =1;
string artworkName =2;
string ruler =3;
string saleNo =4;
string completeDate =5;
}
message StatementBatchInfo{ // cmd/model/artworkStatement.go
// int32 stType=1;
string artistUid=2;
string artistName=3;
int32 flowStatus=4;
string batchTime=5;
float guaranteePrice=7;
int64 id = 8;
string createdAt =9;
string updatedAt =10;
int64 deletedAt =11;
}
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 createdAt=9;
string updatedAt=10;
int64 deletedAt=11;
}
message CreateStatementDetailResponse{
int64 id=1;
}
message BatchCreateStatementDetailRequest{
repeated StatementDetailRequest data =1;
}
message GetStatementBatchListRequest{
StatementBatchRequest condition=1;
int64 page =2;
int64 pageSize =3;
repeated int64 ids =4;
repeated string batchTimeList =5;
}
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;
}
message GetStatementBatchTimeMenusResponse{
repeated string data=1;
}