2023-04-03 06:07:37 +00:00
|
|
|
|
//proto版本
|
|
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
|
|
//默认的包名
|
|
|
|
|
package mgmtStatement;
|
|
|
|
|
|
|
|
|
|
//在golang中的包名
|
|
|
|
|
option go_package = "./;mgmtStatement";
|
|
|
|
|
|
|
|
|
|
//画家宝管理系统提供的服务
|
|
|
|
|
service MgmtStatement {
|
|
|
|
|
rpc AddBatchDetail(AddBatchDetailreq) returns (AddBatchDetailres){}//增加批次数据
|
|
|
|
|
rpc UploadExcelOne(UploadExcelOnereq) returns (UploadExcelOneres){}//通过导入excel附件一
|
|
|
|
|
rpc UploadExcelTwo(UploadExcelTworeq) returns (UploadExcelTwores){}//通过导入excel附件二
|
|
|
|
|
rpc ArtistStatementList(ArtistStatementListreq) returns (ArtistStatementListres){}//对账单画家列表
|
|
|
|
|
rpc ArtStatementList(ArtStatementListreq) returns (ArtStatementListres){}//对账单画作列表
|
|
|
|
|
rpc UpdateState(UpdateStatementreq) returns (UpdateStatementres){}//更新对账单状态
|
|
|
|
|
rpc CreateTxContract(CreateTxContractreq) returns (CreateTxContractres){}//生成合同
|
|
|
|
|
rpc ExportContract(ExportContractreq) returns (ExportContractres){}//导出合同
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//批次数据
|
|
|
|
|
message AddBatchDetailreq {
|
|
|
|
|
int32 Id = 1 [json_name = "id"]; //批次id
|
|
|
|
|
string BatchUid = 2 [json_name = "batch_uid"]; //批次uid 批次唯一标识
|
|
|
|
|
string ArtistUid = 3 [json_name = "artist_uid"];//画家uid
|
|
|
|
|
string ArtistName = 4 [json_name = "artist_name"];//画家名
|
|
|
|
|
string BatchTime = 5 [json_name = "batch_time"];//批次名
|
|
|
|
|
int32 StType = 6 [json_name = "st_type"];//对账单类型:1=版权 2=物权
|
|
|
|
|
int32 Status = 7 [json_name = "status"];//对账单状态 1:未签署;2:已生成,未签署;3:已签署
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message AddBatchRes {
|
|
|
|
|
string BatchUid = 1 [json_name = "batch_uid"];//批次uid 批次唯一标识
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message AddBatchDetailres {
|
|
|
|
|
string Msg = 1 [json_name = "msg"];
|
|
|
|
|
AddBatchRes Data = 2 [json_name = "data"];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//附件一
|
|
|
|
|
message UploadExcelOnereq {
|
|
|
|
|
int32 Id = 1 [json_name = "id"]; //对账单id
|
|
|
|
|
string StatementUid = 2 [json_name = "statement_uid"]; //对账单uid 对账单唯一标识
|
|
|
|
|
string BatchUid = 3 [json_name = "batch_uid"]; //批次uid 批次唯一标识
|
|
|
|
|
string TfNum = 4 [json_name = "TfNum"];//画作的泰丰编号
|
|
|
|
|
string Ruler = 5 [json_name = "ruler"];//画作的平尺数
|
|
|
|
|
string ArtworkName = 6 [json_name = "artwork_name"];//画作名称
|
|
|
|
|
float GuaranteePrice = 7 [json_name = "guarantee_price"];//公司保证金
|
|
|
|
|
float MinPrice = 8 [json_name = "min_price"];//委托销售底价
|
|
|
|
|
string ArtistUid = 9 [json_name = "artist_uid"];//画家uid
|
|
|
|
|
string ArtistName = 10 [json_name = "artist_name"];//画家名
|
|
|
|
|
string BatchTime = 11 [json_name = "batch_time"];//批次名
|
|
|
|
|
int32 StType = 12 [json_name = "st_type"];//对账单类型:1=版权 2=物权
|
|
|
|
|
int32 Status = 13 [json_name = "status"];//对账单状态 1:未签署;2:已生成,未签署;3:已签署
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message StatementAddRes {
|
|
|
|
|
string StatementUid = 1 [json_name = "statement_uid"];//对账单uid 对账单唯一标识
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message UploadExcelOneres {
|
|
|
|
|
string Msg = 1 [json_name = "msg"];
|
|
|
|
|
StatementAddRes Data = 2 [json_name = "data"];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//附件二
|
|
|
|
|
message UploadExcelTworeq {
|
|
|
|
|
int32 Id = 1 [json_name = "id"]; //对账单id
|
|
|
|
|
string StatementUid = 2 [json_name = "statement_uid"]; //对账单uid 对账单唯一标识
|
|
|
|
|
string BatchUid = 3 [json_name = "batch_uid"]; //批次uid 批次唯一标识
|
|
|
|
|
string TfNum = 4 [json_name = "TfNum"];//画作的泰丰编号
|
|
|
|
|
string Ruler = 5 [json_name = "ruler"];//画作的平尺数
|
|
|
|
|
string ArtworkName = 6 [json_name = "artwork_name"];//画作名称
|
|
|
|
|
float MinPrice = 7 [json_name = "min_price"];//委托销售底价
|
|
|
|
|
string ArtistUid = 8 [json_name = "artist_uid"];//画家uid
|
|
|
|
|
string ArtistName = 9 [json_name = "artist_name"];//画家名
|
|
|
|
|
string BatchTime = 10 [json_name = "batch_time"];//批次名
|
|
|
|
|
string CompleteDate = 11 [json_name = "complete_date"];//成交日期
|
|
|
|
|
string SaleNo = 12 [json_name = "sale_no"];//销售单号
|
|
|
|
|
int32 StType = 13 [json_name = "st_type"];//对账单类型:1=版权 2=物权
|
|
|
|
|
int32 Status = 14 [json_name = "status"];//对账单状态 1:未签署;2:已生成,未签署;3:已签署
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message UploadExcelTwores {
|
|
|
|
|
string Msg = 1 [json_name = "msg"];
|
|
|
|
|
StatementAddRes Data = 2 [json_name = "data"];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//画家列表
|
|
|
|
|
message ArtistStatementListreq {
|
|
|
|
|
int32 Page = 1 [json_name = "page"]; //页数
|
|
|
|
|
int32 PageSize = 2 [json_name = "page_size"]; //每页有多少数据
|
|
|
|
|
int32 StType = 3 [json_name = "st_type"];//对账单类型:1=版权 2=物权
|
|
|
|
|
string BatchUid = 4 [json_name = "batch_uid"]; //批次uid 批次唯一标识
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message ArtistStatementListres {
|
|
|
|
|
message Info {
|
|
|
|
|
string ArtistUid = 1 [json_name = "artist_uid"];//画家uid
|
|
|
|
|
string ArtistName = 2 [json_name = "artist_name"];//画家名
|
|
|
|
|
string BatchTime = 3 [json_name = "batch_time"];//批次名
|
|
|
|
|
string ViewUrl = 4 [json_name = "view_url"];//预览地址
|
|
|
|
|
string DownloadUrl = 5 [json_name = "download_url"];//下载地址
|
2023-04-04 01:37:00 +00:00
|
|
|
|
string BatchUid = 6 [json_name = "batch_uid"]; //批次uid 批次唯一标识
|
2023-04-03 06:07:37 +00:00
|
|
|
|
}
|
|
|
|
|
repeated Info Data = 1 [json_name = "data"];
|
|
|
|
|
int32 Count = 2 [json_name = "count"]; //总数
|
|
|
|
|
int32 Page = 3 [json_name = "page"];
|
|
|
|
|
int32 PageSize = 4 [json_name = "page_size"];
|
|
|
|
|
string Msg = 5 [json_name = "message"];
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message ArtStatementListreq {
|
|
|
|
|
int32 Page = 1 [json_name = "page"]; //页数
|
|
|
|
|
int32 PageSize = 2 [json_name = "page_size"]; //每页有多少数据
|
|
|
|
|
int32 StType = 3 [json_name = "st_type"];//对账单类型:1=版权 2=物权
|
|
|
|
|
string BatchUid = 4 [json_name = "batch_uid"]; //批次uid 批次唯一标识
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message ArtStatementListres {
|
|
|
|
|
message Info {
|
|
|
|
|
string ArtistUid = 1 [json_name = "artist_uid"];//画家uid
|
|
|
|
|
string ArtistName = 2 [json_name = "artist_name"];//画家名
|
|
|
|
|
string ArtworkName = 3 [json_name = "artwork_name"];//画作名称
|
|
|
|
|
string TfNum = 4 [json_name = "TfNum"];//画作的泰丰编号
|
|
|
|
|
string Ruler = 5 [json_name = "ruler"];//画作的平尺数
|
|
|
|
|
string CompleteDate = 6 [json_name = "complete_date"];//成交日期
|
|
|
|
|
string SaleNo = 7 [json_name = "sale_no"];//销售单号
|
|
|
|
|
float MinPrice = 8 [json_name = "min_price"];//委托销售底价
|
|
|
|
|
}
|
|
|
|
|
repeated Info Data = 1 [json_name = "data"];
|
|
|
|
|
int32 Count = 2 [json_name = "count"]; //总数
|
|
|
|
|
int32 Page = 3 [json_name = "page"];
|
|
|
|
|
int32 PageSize = 4 [json_name = "page_size"];
|
|
|
|
|
string Msg = 5 [json_name = "message"];
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message UpdateStatementreq {
|
|
|
|
|
string StatementUid = 1 [json_name = "statement_uid"]; //对账单uid 对账单唯一标识
|
|
|
|
|
int32 Status = 2 [json_name = "status"];//对账单状态
|
|
|
|
|
int32 StType = 3 [json_name = "st_type"];//对账单类型:1=版权 2=物权
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message UpdateStatementres {
|
|
|
|
|
string Msg = 1[json_name = "message"];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message CreateTxContractreq {
|
|
|
|
|
string BatchUid = 1 [json_name = "batch_uid"]; //批次uid链接所有表的唯一标识
|
|
|
|
|
int32 StType = 2 [json_name = "st_type"];//对账单类型:1=版权 2=物权
|
|
|
|
|
string BatchTime = 3 [json_name = "batch_time"];//批次名
|
|
|
|
|
string DownloadUrl = 4 [json_name = "download_url"];//下载地址
|
|
|
|
|
string ViewUrl = 5 [json_name = "view_url"];//预览地址
|
|
|
|
|
string ContractId = 6 [json_name = "contract_id"];//合同id
|
|
|
|
|
string ArtistUid = 7 [json_name = "artist_uid"];//画家uid
|
|
|
|
|
int32 Status = 8 [json_name = "status"];//对账单状态
|
|
|
|
|
string CardId = 9 [json_name = "card_id"];//银行卡号
|
|
|
|
|
int64 UserId = 10 [json_name="userId"];
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message CreateTxContractres {
|
|
|
|
|
string Msg = 1 [json_name = "message"];
|
|
|
|
|
AddContractRes Data = 2 [json_name = "data"];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message AddContractRes {
|
|
|
|
|
string BatchUid = 1 [json_name = "batch_uid"]; //批次uid链接所有表的唯一标识
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message ExportContractreq {
|
|
|
|
|
int32 Page = 1 [json_name = "page"]; //页数
|
|
|
|
|
int32 PageSize = 2 [json_name = "page_size"]; //每页有多少数据
|
|
|
|
|
int32 StType = 3 [json_name = "st_type"];//对账单类型:1=版权 2=物权
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message ExportContractres{
|
|
|
|
|
message Info {
|
|
|
|
|
string BatchUid = 1 [json_name = "batch_uid"]; //批次uid链接所有表的唯一标识
|
|
|
|
|
string BatchTime = 2 [json_name = "batch_time"];//批次名
|
|
|
|
|
string DownloadUrl = 3 [json_name = "download_url"];//下载地址
|
|
|
|
|
string ViewUrl = 4 [json_name = "view_url"];//预览地址
|
|
|
|
|
int32 StType = 5 [json_name = "st_type"];//对账单类型:1=版权 2=物权
|
|
|
|
|
string ArtistName = 6 [json_name = "artist_name"];//画家名
|
|
|
|
|
string ArtistUid = 7 [json_name = "artist_uid"];//画家uid
|
|
|
|
|
}
|
|
|
|
|
repeated Info Data = 1 [json_name = "data"];
|
|
|
|
|
int32 Count = 2 [json_name = "count"]; //总数
|
|
|
|
|
int32 Page = 3 [json_name = "page"];
|
|
|
|
|
int32 PageSize = 4 [json_name = "page_size"];
|
|
|
|
|
string Msg = 5 [json_name = "message"];
|
|
|
|
|
}
|