You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

363 lines
13 KiB
Protocol Buffer

syntax = "proto3";
package ArtShow;
option go_package = "./artShow;artShow";
service ArtShow {
rpc CreateShow (SaveShowReq) returns (SaveShowRes) {} // 画展包创建操作
rpc UpdateShow (SaveShowReq) returns (SaveShowRes) {} // 画展包更新操作
rpc DelShow (DelShowReq) returns (CommonRes) {} // 画展包删除操作
rpc ShowList (ShowListReq) returns (ShowListRes) {} // 画展包列表展示 不携带 画展时间 画展地址
rpc ShowListWithRel (ShowListReq) returns (ShowListRes) {} // 画展包列表展示 携带 画展时间 画展地址
rpc ShowListForArtwork (ShowListForArtworkReq) returns (ShowListForArtworkRes) {} // 画展包列表展示 画作使用
rpc ShowArtworkInfo (ArtworkDetailReq) returns (ShowArtworkDetailRes) {} // 画展包画作展示
rpc ShowDetail (ShowDetailReq) returns (ShowDetailRes) {} // 画展包展示
rpc ShowStatisticalInfo (ShowStatisticalInfoReq) returns (ShowStatisticalInfoRes) {} // 画展统计(画作数量、画家数量)
rpc ArtworkPrice (ArtworkPriceReq) returns (ArtworkPriceRes) {} // 画作价格
rpc CreateApply (SaveApplyReq) returns (SaveApplyRes) {} // 创建画展包申请
rpc UpdateApply (SaveApplyReq) returns (SaveApplyRes) {} // 更新画展包申请
rpc DelApply (DelApplyReq) returns (CommonRes) {} // 删除画展包申请
rpc ShowListWithApply (ShowListReq) returns (ShowListRes) {} // 已申请画展包展示
rpc UpdateApplyStatus (UpdateApplyStatusReq) returns (CommonRes) {} // 更新画展包状态
rpc ApplyList (ApplyListReq) returns (ApplyListRes) {} // 画展包申请列表
rpc ApplyDetail (ApplyShowReq) returns (ApplyShowRes) {} // 画展包申请列表
rpc ArtworkPriceList (ShowDetailReq) returns (ArtworkPriceListRes) {} // 画作详情列表
rpc CancelShow (CancelShowReq) returns (CommonRes) {} // 画展包取消展出
rpc UpdateArtworkReward(UpdateArtworkRewardReq) returns (CommonRes) {} // 更新 画作润格
rpc UpdateArtworkSaleAddress(UpdateArtworkSaleAddressReq) returns (CommonRes) {} // 更新 画作销售地址
rpc QueryShowStatus(ShowStatusReq) returns (ShowStatusRes) {} // 查询 画展包状态
rpc QuerySaleAddress(SaleAddressReq) returns (SaleAddressRes) {} // 画作 销售地址查询
}
// 创建 更新画展包
message SaveShowReq {
string ShowName = 1 [json_name = "show_name"];
string ArtistName = 2 [json_name = "artist_name"];
string ArtistUID = 3 [json_name = "artist_uid"];
int32 ArtworkNum = 4 [json_name = "artwork_num"];
int32 Ruler = 5 [json_name = "ruler"];
int64 Price = 6 [json_name = "price"];
int64 Reward = 7 [json_name = "reward"];
int32 IsShow = 8 [json_name = "is_show"];
string CreateTime = 9 [json_name = "create_time"];
string Operator = 10 [json_name = "operator"];
string ShowSeq = 11 [json_name = "show_seq"];
string ShowUID = 12 [json_name = "id"];
repeated ArtworkDetail Artwork = 13 [json_name = "show_artwork"];
repeated DelArtworkDetail DelArtwork = 14 [json_name = "del_show_artwork"];
}
message SaveShowRes {
string Msg = 1 [json_name = "msg"];
string ShowUID = 2 [json_name = "show_uid"];
}
message CommonRes {
string Msg = 1 [json_name = "msg"];
}
// 画展包详情
message ShowDetailReq {
repeated string ShowUID = 1 [json_name = "show_uid"];
string ApplyID = 2 [json_name = "apply_id"];
}
message ArtworkDetailReq {
string ShowUID = 1 [json_name = "show_uid"];
}
message ShowDetail {
string ShowUID = 1 [json_name = "show_uid"];
string ShowSeq = 2 [json_name = "show_seq"];
string ShowName = 3 [json_name = "show_name"];
string ArtistName = 4 [json_name = "artist_name"];
string ArtistUID = 5 [json_name = "artist_uid"];
int32 ArtworkNum = 6 [json_name = "artwork_num"];
int32 Ruler = 7 [json_name = "ruler"];
int64 Price = 8 [json_name = "price"];
int64 Reward = 9 [json_name = "reward"];
string CreateTime = 10 [json_name = "create_time"];
string Operator = 11 [json_name = "operator"];
int32 IsShow = 12 [json_name = "is_show"];
string ShowTime = 13 [json_name = "show_time"];
string Address = 14 [json_name = "address"];
}
message ShowDetailRes {
repeated ShowDetail Data = 1 [json_name = "data"];
string Msg = 2 [json_name = "msg"];
}
message ShowArtworkDetailRes {
repeated ArtworkPriceDetail data = 1 [json_name = "data"];
string Msg = 2 [json_name = "msg"];
}
// 画展包列表
message ShowListReq {
int32 Page = 1 [json_name = "page"];
int32 PageSize = 2 [json_name = "page_size"];
string StartShowTime = 3 [json_name = "start_show_time"];
string EndShowTime = 4 [json_name = "end_show_time"];
string ShowSeq = 5 [json_name = "show_seq"];
string ShowName = 6 [json_name = "show_name"];
string ArtistName = 7 [json_name = "artist_name"];
int64 StartPrice = 8 [json_name = "start_price"];
int64 EndPrice = 9 [json_name = "end_price"];
int64 StartReward = 10 [json_name = "start_reward"];
int64 EndReward = 11 [json_name = "end_reward"];
string Address = 12 [json_name = "address"];
repeated int32 IsShow = 13 [json_name = "is_show"];
}
message ShowListForArtworkReq {
int32 Page = 1 [json_name = "page"];
int32 PageSize = 2 [json_name = "page_size"];
string ArtistUID = 3 [json_name = "artist_uid"];
}
message ShowListRes {
int64 Total = 1 [json_name = "total"];
int64 TotalPackageNum = 2 [json_name = "total_package_num"];
int64 TotalArtistNum = 3 [json_name = "total_artist_num"];
repeated ShowDetail Data = 4 [json_name = "data"];
string Msg = 5 [json_name = "msg"];
}
message ShowListForArtworkRes {
int64 Total = 1 [json_name = "total"];
string Msg = 2 [json_name = "msg"];
repeated ShowDetail Data = 3 [json_name = "data"];
}
// 删除画展包
message DelShowReq {
repeated string ShowUID = 1 [json_name = "show_uid"];
}
// 画展包中画作详情 除价格
message ArtworkDetail {
string ArtworkPriceUID = 1 [json_name = "artwork_price_uid"];
string ShowUID =2 [json_name = "show_uid"];
string ArtworkUID = 3 [json_name = "artwork_uid"];
string ArtworkName = 4 [json_name = "artwork_name"];
string ArtistName = 5 [json_name = "artist_name"];
int32 Length = 6 [json_name = "length"];
int32 Width = 7 [json_name = "width"];
int32 Ruler = 8 [json_name = "ruler"];
string SmallPic = 9 [json_name = "small_pic"];
string Tfnum = 10 [json_name = "tfnum"];
}
// 画作详情
message ArtworkPriceDetail {
string ArtworkPriceUID = 1 [json_name = "artwork_price_uid"];
string ShowUID =2 [json_name = "show_uid"];
string ArtworkUID = 3 [json_name = "artwork_uid"];
string ArtworkName = 4 [json_name = "artwork_name"];
string ArtistName = 5 [json_name = "artist_name"];
int32 Length = 6 [json_name = "length"];
int32 Width = 7 [json_name = "width"];
int32 Ruler = 8 [json_name = "ruler"];
string SmallPic = 9 [json_name = "small_pic"];
int64 Price = 10 [json_name = "price"];
int64 RulerPrice = 11 [json_name = "ruler_price"];
int64 ArtworkPrice = 12 [json_name = "artwork_price"];
int64 MarketPrice = 13 [json_name = "market_price"];
int64 CopyrightPrice = 14 [json_name = "copyright_price"];
string Tfnum = 15 [json_name = "tfnum"];
string Reward = 16 [json_name = "reward"];
string SaleAddress = 17 [json_name = "sale_address"];
}
message ArtworkPriceListRes {
repeated ArtworkPriceDetail Data = 1 [json_name = "data"];
string Msg = 2 [json_name = "msg"];
}
// 画展包 删除的画作信息
message DelArtworkDetail {
string ArtworkPriceUID = 1 [json_name = "artwork_price_uid"];
string ArtworkUID = 2 [json_name = "artwork_uid"];
}
// 画展包 画家 画作 统计数据
message ShowStatisticalInfoReq {
int32 IsShow = 1 [json_name = "is_show"];
}
message ShowStatisticalInfoRes {
message Num {
int64 ArtistNum = 1 [json_name = "artist_num"];
int64 PackageNum = 2 [json_name = "package_num"];
int64 TotalNum = 3 [json_name = "total_num"];
int64 NotShowNum = 4 [json_name = "not_show_num"];
int64 ShowHisNum = 5 [json_name = "show_his_num"];
}
Num Data = 1 [json_name = "data"];
string Msg = 2 [json_name = "msg"];
}
message ArtworkPriceReq {
string ArtworkUID = 1 [json_name = "artwork_uid"];
}
message ArtworkPriceRes {
message PriceInfo {
int64 Price = 1 [json_name = "price"];
int64 RulerPrice = 2 [json_name = "ruler_price"];
int64 ArtworkPrice = 3 [json_name = "artwork_price"];
int64 MarketPrice = 4 [json_name = "market_price"];
int64 CopyrightPrice = 5 [json_name = "copyright_price"];
int64 Reward = 6 [json_name = "reward"];
}
PriceInfo Data = 1 [json_name = "data"];
string Msg = 2 [json_name = "msg"];
}
message ShowRel {
string ShowRelUID = 1 [json_name = "show_rel_uid"];
string ApplyUID = 2 [json_name = "apply_uid"];
string ShowUID = 3 [json_name = "show_uid"];
int32 Index = 4 [json_name = "index"];
string Address = 5 [json_name = "address"];
string ShowTime = 6 [json_name = "show_time"];
}
message DelShowRel {
string ShowRelUID = 1 [json_name = "show_rel_uid"];
string ShowUID = 2 [json_name = "show_uid"];
}
message SaveApplyReq {
string Applicant = 1 [json_name = "applicant"];
string ApplicantID = 2 [json_name = "applicant_id"];
int32 Num = 3 [json_name = "num"];
string ApplyTime = 4 [json_name = "apply_time"];
string ApplyUID = 5 [json_name = "apply_uid"];
int32 Status = 6 [json_name = "status"];
string Remark = 7 [json_name = "remark"];
repeated ShowRel Rel = 8 [json_name = "rel"];
repeated DelShowRel DelRel = 9 [json_name = "del_rel"];
}
message SaveApplyRes {
string Msg = 1 [json_name = "msg"];
string ApplyUID = 2 [json_name = "apply_uid"];
}
message ApplyListReq {
int32 Page = 1 [json_name = "page"];
int32 PageSize = 2 [json_name = "page_size"];
int32 Status = 3 [json_name = "status"];
}
message ApplyListRes {
int64 Total = 1 [json_name = "total"];
repeated ApplyDetail Data = 2 [json_name = "data"];
string Msg = 3 [json_name = "msg"];
}
message ApplyShowReq {
string ApplyUID = 1 [json_name = "apply_uid"];
}
message ApplyShowRes {
ApplyDetail Apply = 1 [json_name = "apply"];
repeated ShowDetail Show = 2 [json_name = "show"];
string Msg = 3 [json_name = "msg"];
}
message ApplyDetail {
string ApplyUID = 1 [json_name = "apply_uid"];
string ApplySeq = 2 [json_name = "apply_seq"];
string Applicant = 3 [json_name = "applicant"];
string ApplicantID = 4 [json_name = "applicant_id"];
int32 Num = 5 [json_name = "num"];
string ApplyTime = 6 [json_name = "apply_time"];
int32 Status = 7 [json_name = "status"];
string Remark = 8 [json_name = "remark"];
}
message ShowRelListReq {
string ApplyUID = 1 [json_name = "apply_uid"];
}
message ShowRelListRes {
string Msg = 1 [json_name = "msg"];
repeated ShowRel Data = 2 [json_name = "data"];
}
message UpdateApplyStatusReq {
int32 Status = 1 [json_name = "status"];
string Remark = 2 [json_name = "remark"];
string ApplyUID = 3 [json_name = "apply_uid"];
}
message DelApplyReq {
repeated string ApplyUID = 1 [json_name = "apply_uid"];
}
message CancelShowReq {
repeated string ShowUID = 1 [json_name = "show_uid"];
}
message ArtworkReward {
string ArtworkPriceUid = 1 [json_name = "artwork_price_uid"];
string Reward = 2 [json_name = "reward"];
}
message UpdateArtworkRewardReq {
repeated ArtworkReward data = 1 [json_name = "data"];
}
message ArtworkSaleAddress {
string ArtworkPriceUid = 1 [json_name = "artwork_price_uid"];
string SaleAddress = 2 [json_name = "sale_address"];
}
message UpdateArtworkSaleAddressReq {
repeated ArtworkSaleAddress data = 1 [json_name = "data"];
}
message ShowStatusReq {
repeated string ShowUID = 1 [json_name = "show_uid"];
}
message ShowStatus {
string ShowUID = 1 [json_name = "show_uid"];
int32 IsShow = 2 [json_name = "is_show"];
}
message ShowStatusRes {
repeated ShowStatus Status = 1 [json_name = "status"];
}
message SaleAddressReq {
string ParentName = 1 [json_name = "parent_name"];
}
message SaleAddress {
string Address = 1 [json_name = "address"];
string StoreID = 2 [json_name = "store_id"];
}
message SaleAddressRes {
repeated SaleAddress Address = 1 [json_name = "address"];
string Msg = 2 [json_name = "msg"];
}