230 lines
8.4 KiB
Protocol Buffer
230 lines
8.4 KiB
Protocol Buffer
syntax = "proto3";
|
|
package statement;
|
|
option go_package = "./;statement";
|
|
|
|
service Statement {
|
|
rpc UploadExcelOneTx (UploadExcelOneTxRequest) returns (UploadExcelOneTxRespond) {}
|
|
rpc UploadExcelTwoTx (UploadExcelTwoTxRequest) returns (UploadExcelTwoTxRespond) {}
|
|
rpc UploadExcelOneCopy (UploadExcelOneCopyRequest) returns (UploadExcelOneCopyRespond) {}
|
|
rpc UploadExcelTwoCopy (UploadExcelTwoCopyRequest) returns (UploadExcelTwoCopyRespond) {}
|
|
rpc GetAllBatchTimeTx (GetAllBatchTimeTxRequest) returns (GetAllBatchTimeTxRespond) {}
|
|
rpc GetAllBatchTimeCopy (GetAllBatchTimeCopyRequest) returns (GetAllBatchTimeCopyRespond) {}
|
|
rpc GetArtworkSoldTxDetailList (GetArtworkSoldTxDetailListRequest) returns (GetArtworkSoldTxDetailListRespond) {}
|
|
rpc GetArtworkSoldCopyDetailList (GetArtworkSoldCopyDetailListRequest) returns (GetArtworkSoldCopyDetailListRespond) {}
|
|
rpc StatementList (StatementListRequest) returns (StatementListRespond) {}
|
|
rpc GetTxInfoByBatchUid (GetTxInfoByBatchUidRequest) returns (GetTxInfoByBatchUidRespond) {}
|
|
rpc GetCopyInfoByBatchUid (GetCopyInfoByBatchUidRequest) returns (GetCopyInfoByBatchUidRespond) {}
|
|
}
|
|
|
|
message Contracts{
|
|
string contractUid = 1 [json_name = "contract_uid"];
|
|
string artistUid = 2 [json_name = "artist_uid"];
|
|
string artworkUid = 3 [json_name = "artwork_uid"];
|
|
string contractId = 4 [json_name = "contract_id"];
|
|
string transactionId = 5 [json_name = "transaction_id"];
|
|
int32 type = 6 [json_name = "type"];
|
|
string viewUrl = 7 [json_name = "view_url"];
|
|
string downloadUrl = 8 [json_name = "download_url"];
|
|
int32 state = 9 [json_name = "state"];
|
|
int32 status = 10 [json_name = "status"];
|
|
string expirationTime = 11 [json_name = "expiration_time"];
|
|
string lockTime = 12 [json_name = "lock_time"];
|
|
string signTime = 13 [json_name = "sign_time"];
|
|
string batchTime = 14 [json_name = "batch_time"];
|
|
string batchUid = 15 [json_name = "batch_uid"];
|
|
}
|
|
|
|
message ArtworkTxDetail{
|
|
string batchUid = 1 [json_name = "batch_uid"];
|
|
string tfNum = 2 [json_name = "TfNum"];
|
|
string artworkName = 3 [json_name = "artwork_name"];
|
|
float ruler = 4 [json_name = "ruler"];
|
|
float minPrice = 5 [json_name = "min_price"];
|
|
float guaranteePrice = 6 [json_name = "guarantee_price"];
|
|
}
|
|
|
|
message ArtworkSoldTxDetail{
|
|
string batchUid = 1 [json_name = "batch_uid"];
|
|
string tfNum = 2 [json_name = "TfNum"];
|
|
string artworkName = 3 [json_name = "artwork_name"];
|
|
float ruler = 4 [json_name = "ruler"];
|
|
string saleNo = 5 [json_name = "sale_no"];
|
|
string completeDate = 6 [json_name = "complete_date"];
|
|
float minPrice = 7 [json_name = "min_price"];
|
|
float salePrice = 8 [json_name = "sale_price"];
|
|
float guaranteePrice = 9 [json_name = "guarantee_price"];
|
|
}
|
|
|
|
message ArtworkCopyDetail{
|
|
string batchUid = 1 [json_name = "batch_uid"];
|
|
string tfNum = 2 [json_name = "TfNum"];
|
|
string artworkName = 3 [json_name = "artwork_name"];
|
|
float ruler = 4 [json_name = "ruler"];
|
|
float minPrice = 5 [json_name = "min_price"];
|
|
float guaranteePrice = 6 [json_name = "guarantee_price"];
|
|
}
|
|
|
|
message ArtworkSoldCopyDetail{
|
|
string batchUid = 1 [json_name = "batch_uid"];
|
|
string tfNum = 2 [json_name = "TfNum"];
|
|
string artworkName = 3 [json_name = "artwork_name"];
|
|
float ruler = 4 [json_name = "ruler"];
|
|
string saleNo = 5 [json_name = "sale_no"];
|
|
string completeDate = 6 [json_name = "complete_date"];
|
|
float minPrice = 7 [json_name = "min_price"];
|
|
float salePrice = 8 [json_name = "sale_price"];
|
|
float guaranteePrice = 9 [json_name = "guarantee_price"];
|
|
}
|
|
|
|
message ExcelOneInfo {
|
|
string artistUid = 1 [json_name = "artist_uid"];
|
|
string batchTime = 2 [json_name = "batch_time"];
|
|
string artistName = 3 [json_name = "artist_uid"];
|
|
string tfNum = 4 [json_name = "tf_num"];
|
|
string artworkName = 5 [json_name = "artwork_name"];
|
|
float ruler = 6 [json_name = "ruler"];
|
|
float minPrice = 7 [json_name = "min_price"];
|
|
float guaranteePrice = 8 [json_name = "guarantee_price"];
|
|
}
|
|
|
|
message ExcelTwoInfo{
|
|
string artistUid = 1 [json_name = "artist_uid"];
|
|
string batchTime = 2 [json_name = "batch_time"];
|
|
string artistName = 3 [json_name = "artist_uid"];
|
|
string tfNum = 4 [json_name = "tf_num"];
|
|
string artworkName = 5 [json_name = "artwork_name"];
|
|
float ruler = 6 [json_name = "ruler"];
|
|
string saleNo = 7 [json_name = "saleNo"];
|
|
string completeDate = 8 [json_name = "complete_date"];
|
|
float salePrice = 9 [json_name = "salePrice"];
|
|
}
|
|
|
|
message ArtworkSoldDetailList{
|
|
string artworkName = 6 [json_name = "artwork_name"];
|
|
string tfNum = 7 [json_name = "tf_num"];
|
|
float ruler = 8 [json_name = "ruler"];
|
|
string saleNo = 9 [json_name = "saleNo"];
|
|
string completeDate = 10 [json_name = "complete_date"];
|
|
float salePrice = 11 [json_name = "salePrice"];
|
|
}
|
|
|
|
message ArtistList {
|
|
string batchUid = 1 [json_name = "batch_uid"];
|
|
string artistName = 2 [json_name = "artist_uid"];
|
|
string batchTime = 3 [json_name = "batch_time"];
|
|
int32 state = 4 [json_name = "state"];
|
|
int32 status = 5 [json_name = "status"];
|
|
string viewUrl = 6 [json_name = "view_url"];
|
|
string downloadUrl = 7 [json_name = "download_url"];
|
|
repeated ArtworkSoldDetailList artworkSoldDetailList = 8 [json_name = "artwork_sold_detail_list"];
|
|
}
|
|
|
|
message UploadExcelOneTxRequest {
|
|
repeated ExcelOneInfo excelOneInfo = 1 [json_name = "excel_one_info"];
|
|
}
|
|
|
|
message UploadExcelOneTxRespond {
|
|
string msg = 1 [json_name = "msg"];
|
|
}
|
|
|
|
message UploadExcelTwoTxRequest {
|
|
repeated ExcelTwoInfo excelTwoInfo = 1 [json_name = "excel_one_info"];
|
|
}
|
|
|
|
message UploadExcelTwoTxRespond {
|
|
string msg = 1 [json_name = "msg"];
|
|
}
|
|
|
|
message UploadExcelOneCopyRequest {
|
|
repeated ExcelOneInfo excelOneInfo = 1 [json_name = "excel_one_info"];
|
|
}
|
|
|
|
message UploadExcelOneCopyRespond {
|
|
string msg = 1 [json_name = "msg"];
|
|
}
|
|
|
|
message UploadExcelTwoCopyRequest {
|
|
repeated ExcelTwoInfo excelTwoInfo = 1 [json_name = "excel_one_info"];
|
|
}
|
|
|
|
message UploadExcelTwoCopyRespond {
|
|
string msg = 1 [json_name = "msg"];
|
|
}
|
|
|
|
message GetAllBatchTimeTxRequest {
|
|
|
|
}
|
|
|
|
message GetAllBatchTimeTxRespond {
|
|
repeated string BatchTime = 1 [json_name = "batch_time"];
|
|
string msg = 2 [json_name = "msg"];
|
|
}
|
|
|
|
message GetAllBatchTimeCopyRequest {
|
|
|
|
}
|
|
|
|
message GetAllBatchTimeCopyRespond {
|
|
repeated string BatchTime = 1 [json_name = "batch_time"];
|
|
string msg = 2 [json_name = "msg"];
|
|
}
|
|
|
|
message GetArtworkSoldTxDetailListRequest {
|
|
string artistName = 1 [json_name = "artist_name"];
|
|
string batchTime = 2 [json_name = "batch_time"];
|
|
int32 state = 3 [json_name = "state"];
|
|
int32 page = 4 [json_name = "page"];
|
|
int32 num = 5 [json_name = "num"];
|
|
}
|
|
|
|
message GetArtworkSoldTxDetailListRespond {
|
|
repeated ArtistList artist_list = 1 [json_name = "artist_list"];
|
|
string msg = 2 [json_name = "msg"];
|
|
}
|
|
|
|
message GetArtworkSoldCopyDetailListRequest {
|
|
string artistName = 1 [json_name = "artist_name"];
|
|
string batchTime = 2 [json_name = "batch_time"];
|
|
int32 state = 3 [json_name = "state"];
|
|
int32 page = 4 [json_name = "page"];
|
|
int32 num = 5 [json_name = "num"];
|
|
}
|
|
|
|
message GetArtworkSoldCopyDetailListRespond {
|
|
repeated ArtistList artist_list = 1 [json_name = "artist_list"];
|
|
string msg = 2 [json_name = "msg"];
|
|
}
|
|
|
|
message StatementListRequest {
|
|
string artistUid = 1 [json_name = "artist_uid"];
|
|
int32 pageSize = 2 [json_name="pageSize"];
|
|
int32 page = 3 [json_name="page"];
|
|
int32 state = 4 [json_name="state"];
|
|
}
|
|
|
|
message StatementListRespond {
|
|
repeated Contracts data = 1 [json_name = "data"];
|
|
string msg = 2 [json_name = "msg"];
|
|
}
|
|
|
|
message GetTxInfoByBatchUidRequest {
|
|
string batchUid = 1 [json_name = "batch_uid"];
|
|
}
|
|
|
|
message GetTxInfoByBatchUidRespond {
|
|
string artistName = 1 [json_name = "artist_name"];
|
|
repeated ArtworkTxDetail artworkTxDetail = 2 [json_name = "artwork_tx_detail"];
|
|
repeated ArtworkSoldTxDetail artworkSoldTxDetail = 3 [json_name = "artwork_sold_tx_detail"];
|
|
string msg = 4 [json_name = "msg"];
|
|
}
|
|
|
|
message GetCopyInfoByBatchUidRequest {
|
|
string batchUid = 1 [json_name = "batch_uid"];
|
|
}
|
|
|
|
message GetCopyInfoByBatchUidRespond {
|
|
string artistName = 1 [json_name = "artist_name"];
|
|
repeated ArtworkCopyDetail artworkCopyDetail = 2 [json_name = "artwork_copy_detail"];
|
|
repeated ArtworkSoldCopyDetail artworkSoldCopyDetail = 3 [json_name = "artwork_sold_copy_detail"];
|
|
string msg = 4 [json_name = "msg"];
|
|
} |