79 lines
2.9 KiB
Protocol Buffer
79 lines
2.9 KiB
Protocol Buffer
syntax = "proto3";
|
|
package statement;
|
|
option go_package = "./;statement";
|
|
|
|
service Statement {
|
|
rpc StatementList (StatementListRequest) returns (StatementListRespond) {}
|
|
rpc CreateTxContract (CreateTxContractRequest) returns (CreateTxContractRespond) {}
|
|
rpc GetTxInfoByBatchUid (GetTxInfoByBatchUidRequest) returns (GetTxInfoByBatchUidRespond) {}
|
|
}
|
|
|
|
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"];
|
|
string 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"];
|
|
string 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 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 CreateTxContractRequest {
|
|
string BatchUid = 1 [json_name = "batch_uid"];
|
|
}
|
|
|
|
message CreateTxContractRespond {
|
|
string Msg = 1 [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"];
|
|
} |