242 lines
8.4 KiB
Protocol Buffer
242 lines
8.4 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 ShowArtworkInfo (ShowDetailReq) 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) {} // 画展包申请列表
|
|
}
|
|
|
|
// 创建 更新画展包
|
|
message SaveShowReq {
|
|
string ShowName = 1 [json_name = "show_name"];
|
|
string ArtistName = 2 [json_name = "artist_name"];
|
|
string ArtistID = 3 [json_name = "artist_id"];
|
|
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 ShowTime = 9 [json_name = "show_time"];
|
|
|
|
repeated ShowArtworkDetail ShowArtwork = 10 [json_name = "show_artwork"];
|
|
repeated DelArtworkDetail DelShowArtwork = 11 [json_name = "del_show_artwork"];
|
|
|
|
int64 ID = 12 [json_name = "id"];
|
|
}
|
|
|
|
message SaveShowRes {
|
|
string Msg = 1 [json_name = "msg"];
|
|
int64 ShowID = 2 [json_name = "show_id"];
|
|
}
|
|
|
|
message CommonRes {
|
|
string Msg = 1 [json_name = "msg"];
|
|
}
|
|
|
|
// 画展包详情
|
|
message ShowDetailReq {
|
|
int64 ShowID = 1 [json_name = "show_id"];
|
|
}
|
|
|
|
message ShowDetail {
|
|
int64 ID = 1 [json_name = "id"];
|
|
string ShowSeq = 2 [json_name = "show_seq"];
|
|
string ShowName = 3 [json_name = "show_name"];
|
|
string ArtistName = 4 [json_name = "artist_name"];
|
|
string ArtistID = 5 [json_name = "artist_id"];
|
|
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 ShowTime = 10 [json_name = "show_time"];
|
|
int32 IsShow = 11 [json_name = "is_show"];
|
|
}
|
|
|
|
message ShowDetailRes {
|
|
ShowDetail Data = 1 [json_name = "data"];
|
|
string Msg = 2 [json_name = "msg"];
|
|
}
|
|
|
|
message ShowArtworkDetailRes {
|
|
repeated ShowArtworkDetail 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 StartTime = 3 [json_name = "start_time"];
|
|
string EndTime = 4 [json_name = "end_time"];
|
|
string ArtistID = 5 [json_name = "artist_id"];
|
|
int32 IsShow = 6 [json_name = "is_show"];
|
|
}
|
|
|
|
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 DelShowReq {
|
|
repeated int64 ShowID = 1 [json_name = "show_id"];
|
|
}
|
|
|
|
// 画展包中画作详情 除价格
|
|
message ShowArtworkDetail {
|
|
int64 ID = 1 [json_name = "id"];
|
|
int64 ShowID =2 [json_name = "show_id"];
|
|
int64 ArtworkID = 3 [json_name = "artwork_id"];
|
|
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"];
|
|
}
|
|
|
|
// 画展包 删除的画作信息
|
|
message DelArtworkDetail {
|
|
int64 ID = 1 [json_name = "id"];
|
|
int64 ArtworkID = 2 [json_name = "artwork_id"];
|
|
}
|
|
|
|
// 画展包 画家 画作 统计数据
|
|
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 {
|
|
int64 ArtworkID = 1 [json_name = "artwork_id"];
|
|
}
|
|
|
|
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"];
|
|
}
|
|
PriceInfo Data = 1 [json_name = "data"];
|
|
string Msg = 2 [json_name = "msg"];
|
|
}
|
|
|
|
|
|
message ShowRel {
|
|
int64 ID = 1 [json_name = "id"];
|
|
int64 ApplyID = 2 [json_name = "apply_id"];
|
|
int64 ShowID = 3 [json_name = "show_id"];
|
|
int32 Index = 4 [json_name = "index"];
|
|
string Address = 5 [json_name = "address"];
|
|
}
|
|
|
|
message DelShowRel {
|
|
int64 ID = 1 [json_name = "id"];
|
|
int64 ShowID = 2 [json_name = "show_id"];
|
|
}
|
|
|
|
|
|
message SaveApplyReq {
|
|
string Applicant = 1 [json_name = "applicant"];
|
|
int64 ApplicantID = 2 [json_name = "applicant_id"];
|
|
int32 Num = 3 [json_name = "num"];
|
|
string ApplyTime = 4 [json_name = "apply_time"];
|
|
int64 ID = 5 [json_name = "id"];
|
|
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"];
|
|
int64 ApplyID = 2 [json_name = "apply_id"];
|
|
}
|
|
|
|
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 {
|
|
int64 ApplyID = 1 [json_name = "apply_id"];
|
|
}
|
|
|
|
message ApplyShowRes {
|
|
ApplyDetail Apply = 1 [json_name = "apply"];
|
|
repeated ShowDetail Show = 2 [json_name = "show"];
|
|
string Msg = 3 [json_name = "msg"];
|
|
}
|
|
|
|
message ApplyDetail {
|
|
int64 ID = 1 [json_name = "id"];
|
|
string ApplySeq = 2 [json_name = "apply_seq"];
|
|
string Applicant = 3 [json_name = "applicant"];
|
|
int64 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 {
|
|
int64 ApplyID = 1 [json_name = "apply_id"];
|
|
}
|
|
|
|
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"];
|
|
int64 ApplyID = 3 [json_name = "apply_id"];
|
|
}
|
|
|
|
message DelApplyReq {
|
|
repeated int64 ApplyID = 1 [json_name = "apply_id"];
|
|
}
|