diff --git a/clear.sh b/clear.sh new file mode 100644 index 0000000..20c15f9 --- /dev/null +++ b/clear.sh @@ -0,0 +1,2 @@ + +ls pb/artShow/*.pb.go | xargs -n1 -IX bash -c 'sed s/,omitempty// X > X.tmp && mv X{.tmp,}'; \ No newline at end of file diff --git a/cmd/controller/art_show.go b/cmd/controller/art_show.go index c08e9bc..8895e82 100644 --- a/cmd/controller/art_show.go +++ b/cmd/controller/art_show.go @@ -18,7 +18,7 @@ func (p *ArtShowProvider) CreateShow(ctx context.Context, req *artShow.SaveShowR err = errors.New(m.ERROR_SHOW_NAME) return nil, err } - if req.ShowTime == "" { + if req.CreateTime == "" { err = errors.New(m.ERROR_TIME) return nil, err } @@ -162,3 +162,20 @@ func (p *ArtShowProvider) ShowListWithApply(ctx context.Context, req *artShow.Sh } return } + +func (p *ArtShowProvider) ShowListForArtwork(ctx context.Context, req *artShow.ShowListForArtworkReq) (res *artShow.ShowListForArtworkRes, err error) { + if req.Page == 0 { + req.Page = 1 + } + if req.PageSize == 0 { + req.Page = 10 + } + res = new(artShow.ShowListForArtworkRes) + err, res = service.QueryArtShowForArtwork(req) + if err != nil { + res.Msg = err.Error() + err = errors.New(m.ERROR_QUERY) + return + } + return +} diff --git a/cmd/dao/art_show.go b/cmd/dao/art_show.go index c8c4e2a..660f13a 100644 --- a/cmd/dao/art_show.go +++ b/cmd/dao/art_show.go @@ -1,6 +1,7 @@ package dao import ( + "fmt" "fonchain-artshow/cmd/model" "fonchain-artshow/pb/artShow" "fonchain-artshow/pkg/db" @@ -37,38 +38,41 @@ func UpdateArtShow(tx *gorm.DB, artShow *model.ArtShow) (err error) { return } -func ArtShowList(in *artShow.ShowListReq) (err error, total int64, out []*model.ArtShow) { - queryDB := db.DbArtShow.Model(&model.ArtShow{}) +func ArtShowList(in *artShow.ShowListReq) (err error, total int64, out []*model.ArtShowRes) { + queryDB := db.DbArtShow.Table("art_show as a ").Distinct("a.id"). + Select("a.show_uid, a.show_seq, a.show_name, a.artist_name, a.artist_uid, a.artwork_num, a.ruler, a.price, a.create_time, a.is_show, c.address ,c.show_time"). + Joins("left join artwork_price as b on a.show_uid = b.show_uid"). + Joins("left join show_rel as c on a.show_uid = c.show_uid ") - if in.ArtistUID != "" { - queryDB = queryDB.Where("artist_uid = ? ", in.ArtistUID) - } - if in.StartTime != "" && in.EndTime != "" { - queryDB = queryDB.Where("convert(show_time, date) between ? and ?", in.StartTime, in.EndTime) + if in.Name != "" { + queryDB.Where(" a.artist_name like ? or a.show_name like ? or b.artwork_name like ? ", "%"+in.Name+"%", "%"+in.Name+"%", "%"+in.Name+"%") } if in.IsShow != 0 { - queryDB = queryDB.Where("is_show = ?", in.IsShow) + queryDB.Where(" a.is_show = ?", in.IsShow) + } + if in.StartTime != "" && in.EndTime != "" { + queryDB.Where("convert(a.create_time, date) between ? and ?", in.StartTime, in.EndTime) } - err = queryDB.Count(&total).Error + out = make([]*model.ArtShowRes, 0) + err = queryDB.Where("a.deleted_at is null").Offset(int((in.Page - 1) * in.PageSize)). + Limit(int(in.PageSize)).Find(&out).Error if err != nil { - zap.L().Error("ArtShowList Count err", zap.Error(err)) + zap.L().Error("ArtShowList Find err", zap.Error(err)) return } - out = make([]*model.ArtShow, 0) - err = queryDB.Offset(int((in.Page - 1) * in.PageSize)). - Limit(int(in.PageSize)).Find(&out).Error + err = queryDB.Where("a.deleted_at is null").Group("a.id").Count(&total).Error if err != nil { - zap.L().Error("ArtShowList Find err", zap.Error(err)) + zap.L().Error("ArtShowList Count err", zap.Error(err)) return } return } -func ArtShowList_apply(applyUID string) (err error, out []*model.ArtShow) { - out = make([]*model.ArtShow, 0) - err = db.DbArtShow.Table("art_show as a ").Distinct("a.show_uid").Select("a.show_uid,a.show_seq,a.show_name,a.artist_name,a.artist_uid,a.artwork_num,a.ruler,a.price,a.reward,a.show_time,a.is_show").Joins(" right join show_rel as b on a.show_uid = b.show_uid").Where("b.apply_uid = ? ", applyUID).Find(&out).Error +func ArtShowList_apply(applyUID string) (err error, out []*model.ArtShowRes) { + out = make([]*model.ArtShowRes, 0) + err = db.DbArtShow.Table("art_show as a ").Distinct("a.show_uid").Select("a.show_uid, a.show_seq, a.show_name, a.artist_name, a.artist_uid, a.artwork_num, a.ruler, a.price, a.reward, a.create_time, a.is_show, b.address ,b.show_time").Joins(" right join show_rel as b on a.show_uid = b.show_uid").Where("b.apply_uid = ? ", applyUID).Find(&out).Error if err != nil { zap.L().Error("ArtShowList_apply Find err", zap.Error(err)) return @@ -76,18 +80,16 @@ func ArtShowList_apply(applyUID string) (err error, out []*model.ArtShow) { return } -func ArtShowListByApplyStatus(in *artShow.ShowListReq) (err error, total int64, out []*model.ArtShow) { - out = make([]*model.ArtShow, 0) - tx := db.DbArtShow.Table("art_show as a") - - tx.Joins(" left join show_rel as b on b.show_uid = a.show_uid").Where("a.is_show = ?", in.IsShow) - err = tx.Count(&total).Error +func ArtShowListByApplyStatus(in *artShow.ShowListReq) (err error, total int64, out []*model.ArtShowRes) { + out = make([]*model.ArtShowRes, 0) + queryDB := db.DbArtShow.Table("art_show as a").Select("a.show_uid, a.show_seq, a.show_name, a.artist_name, a.artist_uid, a.artwork_num, a.ruler, a.price, a.create_time, a.is_show, b.address ,b.show_time").Joins(" left join show_rel as b on b.show_uid = a.show_uid").Where("a.is_show = ?", in.IsShow) + err = queryDB.Count(&total).Error if err != nil { zap.L().Error("ArtShowListByApplyStatus Count err", zap.Error(err)) return } - err = tx.Offset(int((in.Page - 1) * in.PageSize)). + err = queryDB.Offset(int((in.Page - 1) * in.PageSize)). Limit(int(in.PageSize)).Find(&out).Error if err != nil { zap.L().Error("ArtShowListByApplyStatus Find err", zap.Error(err)) @@ -105,12 +107,13 @@ func DelArtShow(tx *gorm.DB, show_uid string) (err error) { return } -func QueryArtShow(show_uid string) (err error, out *model.ArtShow) { - err = db.DbArtShow.Model(&model.ArtShow{}).Where("show_uid = ?", show_uid).Find(&out).Error +func QueryArtShow(show_uid string) (err error, out *model.ArtShowRes) { + err = db.DbArtShow.Table("art_show as a ").Select("a.show_uid, a.show_seq, a.show_name, a.artist_name, a.artist_uid, a.artwork_num, a.ruler, a.price, a.create_time, a.is_show, b.address ,b.show_time").Joins("left join show_rel as b on a.show_uid = b.show_uid").Where("a.show_uid = ?", show_uid).Find(&out).Error if err != nil { zap.L().Error("ArtShow Find err", zap.Error(err)) return } + fmt.Printf("%+v\n", out) return } @@ -138,17 +141,36 @@ func ShowStatistical(isShow int32) (err error, artistNum, packageNum, totalNum, } NotShowNum = 0 - err = db.DbArtShow.Table("art_show as a").Distinct("a.artist_uid").Joins(" join artwork_price as b on b.show_uid = a.show_uid").Where("a.is_show in (1,2)").Count(&NotShowNum).Error + err = db.DbArtShow.Table("art_show as a").Distinct("a.artist_uid").Joins(" join artwork_price as b on b.show_uid = a.show_uid").Where("a.is_show in (1,2) and a.deleted_at is null").Count(&NotShowNum).Error if err != nil { zap.L().Error("ShowStatistical totalNum count err", zap.Error(err)) return } ShowHisNum = 0 - err = db.DbArtShow.Table("art_show as a").Distinct("a.artist_uid").Joins(" join artwork_price as b on b.show_uid = a.show_uid").Where("a.is_show = 3 ").Count(&ShowHisNum).Error + err = db.DbArtShow.Table("art_show as a").Distinct("a.artist_uid").Joins(" join artwork_price as b on b.show_uid = a.show_uid").Where("a.is_show = 3 and a.deleted_at is null").Count(&ShowHisNum).Error if err != nil { zap.L().Error("ShowStatistical totalNum count err", zap.Error(err)) return } return } + +func QueryArtShowForArtwork(in *artShow.ShowListForArtworkReq) (err error, total int64, out []*model.ArtShowRes) { + // 查询 画家已出展 画展包 + queryDB := db.DbArtShow.Table("art_show as a ").Select("a.show_uid, a.show_seq, a.show_name, a.artist_name, a.artist_uid, a.artwork_num, a.ruler, a.price, a.create_time, a.is_show, b.address ,b.show_time").Joins("left join show_rel as b on a.show_uid = b.show_uid").Where("a.artist_uid = ? and a.is_show = ?", in.ArtistUID, 3) + + err = queryDB.Count(&total).Error + if err != nil { + zap.L().Error("QueryArtShowForArtwork count err", zap.Error(err)) + return + } + out = make([]*model.ArtShowRes, 0) + err = queryDB.Offset(int((in.Page - 1) * in.PageSize)). + Limit(int(in.PageSize)).Find(&out).Error + if err != nil { + zap.L().Error("QueryArtShowForArtwork err", zap.Error(err)) + return + } + return +} diff --git a/cmd/model/art_show.go b/cmd/model/art_show.go index b289fda..6f2d5de 100644 --- a/cmd/model/art_show.go +++ b/cmd/model/art_show.go @@ -14,6 +14,22 @@ type ArtShow struct { Ruler int32 `json:"ruler" gorm:"ruler"` // 画作总平尺 Price int64 `json:"price" gorm:"price"` // 画展包价格 Reward int64 `json:"reward" gorm:"reward"` // 润格 - ShowTime string `json:"show_time" gorm:"show_time"` // 画展时间 + CreateTime string `json:"create_time" gorm:"create_time"` // 创建时间 IsShow int8 `json:"is_show" gorm:"is_show"` // 是否出展 1,内部(default) 2,可展 3,已展 } + +type ArtShowRes struct { + ShowUID string `json:"show_uid" gorm:"show_uid"` + ShowSeq string `json:"show_seq" gorm:"show_seq"` // 画展包序列 + ShowName string `json:"show_name" gorm:"show_name"` // 画展包名称 + ArtistName string `json:"artist_name" gorm:"artist_name"` // 画家 + ArtistUID string `json:"artist_uid" gorm:"artist_uid"` // 画家ID + ArtworkNum int32 `json:"artwork_num" gorm:"artwork_num"` // 画作数量 + Ruler int32 `json:"ruler" gorm:"ruler"` // 画作总平尺 + Price int64 `json:"price" gorm:"price"` // 画展包价格 + CreateTime string `json:"create_time" gorm:"create_time"` // 创建时间 + IsShow int8 `json:"is_show" gorm:"is_show"` // 是否出展 1,内部(default) 2,可展 3,已展 + + Address string `json:"address" gorm:"address"` // 地点 + ShowTime string `json:"show_time" gorm:"show_time"` // 时间 +} diff --git a/cmd/model/show_apply.go b/cmd/model/show_apply.go index 5934f14..ec5edc3 100644 --- a/cmd/model/show_apply.go +++ b/cmd/model/show_apply.go @@ -13,6 +13,6 @@ type ShowApply struct { ApplicantID string `json:"applicant_id" gorm:"applicant_id"` // 申请人 Num int32 `json:"num" gorm:"num"` // 申请画展包数量 ApplyTime string `json:"apply_time" gorm:"apply_time"` // 申请时间 - Status int `json:"status" gorm:"status"` // 申请画展包状态 10,创建 11,数量审批 12,数量审批驳回 13,关联画展包 14,画展包关联审批 15,关联审批驳回 16,可展 + Status int `json:"status" gorm:"status"` // 申请画展包状态 Remark string `json:"remark" gorm:"remark"` // 备注 } diff --git a/cmd/model/show_rel.go b/cmd/model/show_rel.go index 2f1f554..575a71e 100644 --- a/cmd/model/show_rel.go +++ b/cmd/model/show_rel.go @@ -10,8 +10,5 @@ type ShowRel struct { ApplyUID string `json:"apply_uid" gorm:"show_uid"` // 申请ID Index int32 `json:"index" gorm:"index"` // 申请下标 Address string `json:"address" gorm:"address"` // 参展地址 - //ShowSeq string `json:"show_seq" gorm:"show_seq"` // 画展包序列 - //ApplySeq string `json:"apply_seq" gorm:"apply_seq"` // 申请序列 - //Status int32 `json:"status" gorm:"status"` // 参展状态 1、待展 2、驳回 3、可展 - //Remark string `json:"remark" gorm:"remark"` // 备注 + ShowTime string `json:"show_time" gorm:"show_time"` // 画展时间 } diff --git a/cmd/runtime/log/artwork_server.log b/cmd/runtime/log/artwork_server.log deleted file mode 100644 index 16c8ceb..0000000 --- a/cmd/runtime/log/artwork_server.log +++ /dev/null @@ -1,3 +0,0 @@ -{"level":"ERROR","time":"2022-11-08T10:50:49.304+0800","caller":"dao/art_show.go:144","msg":"ShowStatistical totalNum count err","error":"Error 1054: Unknown column 'b.show_id' in 'on clause'"} -{"level":"ERROR","time":"2022-11-08T10:56:33.377+0800","caller":"dao/art_show.go:144","msg":"ShowStatistical totalNum count err","error":"Error 1054: Unknown column 'b.artist_uid' in 'field list'"} -{"level":"ERROR","time":"2022-11-08T16:51:33.241+0800","caller":"dao/art_show.go:73","msg":"ArtShowList_apply Find err","error":"Error 1054: Unknown column 'b.show_id' in 'on clause'"} diff --git a/cmd/service/art_show.go b/cmd/service/art_show.go index 902b31d..2e77327 100644 --- a/cmd/service/art_show.go +++ b/cmd/service/art_show.go @@ -22,14 +22,10 @@ func CreateArtShowWithArtworkPrice(in *artShow.SaveShowReq) (err error, showUID return } - if len(in.ShowArtwork) > 0 { - artworks := serializer.BuildShowArtworkM(in.ShowArtwork, artShowM.ShowUID) - - artworks = serializer.CalcPrice(artShowM.Price, artShowM.Ruler, artworks) - - err, artworks = serializer.CalcReward(artworks, artShowM.Reward) - if err != nil { - return + if len(in.Artwork) > 0 { + artworks := serializer.BuildShowArtworkM(in.Artwork, artShowM.ShowUID) + if in.Price > 0 && in.Ruler > 0 { + artworks = serializer.CalcPrice(artShowM.Price, artShowM.Ruler, artworks) } for i := 0; i < len(artworks); i++ { err = dao.SaveArtworkPrice(tx, artworks[i]) @@ -61,22 +57,16 @@ func UpdateArtShowWithArtworkPrice(in *artShow.SaveShowReq) (err error, showUID } // 判断是否有新增画作 - if len(in.ShowArtwork) > 0 { - showArtwork := serializer.BuildShowArtworkM(in.ShowArtwork, in.ShowUID) + if len(in.Artwork) > 0 { + showArtwork := serializer.BuildShowArtworkM(in.Artwork, in.ShowUID) artworks = append(artworks, showArtwork...) } // 更新 画作 if len(artworks) > 0 { - if in.Price != 0 { + if in.Price > 0 && in.Ruler > 0 { artworks = serializer.CalcPrice(artShowM.Price, artShowM.Ruler, artworks) } - if in.Reward != 0 { - err, artworks = serializer.CalcReward(artworks, artShowM.Reward) - if err != nil { - return - } - } for i := 0; i < len(artworks); i++ { if artworks[i].ArtworkPriceUID != "" { @@ -97,10 +87,10 @@ func UpdateArtShowWithArtworkPrice(in *artShow.SaveShowReq) (err error, showUID } // 删除旧画作 - if len(in.DelShowArtwork) > 0 { + if len(in.DelArtwork) > 0 { del := make([]string, 0) - for i := 0; i < len(in.DelShowArtwork); i++ { - del = append(del, in.DelShowArtwork[i].ArtworkPriceUID) + for i := 0; i < len(in.DelArtwork); i++ { + del = append(del, in.DelArtwork[i].ArtworkPriceUID) } err = dao.DelArtworkPrice(tx, del) if err != nil { @@ -149,7 +139,7 @@ func DelArtShow(in *artShow.DelShowReq) (err error) { // 画展包列表 func ArtShowList(in *artShow.ShowListReq) (err error, out *artShow.ShowListRes) { out = new(artShow.ShowListRes) - artShows := make([]*model.ArtShow, 0) + artShows := make([]*model.ArtShowRes, 0) err, out.Total, artShows = dao.ArtShowList(in) if err != nil { return @@ -177,7 +167,7 @@ func ShowArtworkInfo(in *artShow.ShowDetailReq) (err error, out *artShow.ShowArt // 画展包详情 func ShowDetail(in *artShow.ShowDetailReq) (err error, out *artShow.ShowDetailRes) { out = new(artShow.ShowDetailRes) - show := new(model.ArtShow) + show := new(model.ArtShowRes) err, show = dao.QueryArtShow(in.ShowUID) if err != nil { return @@ -188,7 +178,7 @@ func ShowDetail(in *artShow.ShowDetailReq) (err error, out *artShow.ShowDetailRe func ArtShowListWithApply(in *artShow.ShowListReq) (err error, out *artShow.ShowListRes) { out = new(artShow.ShowListRes) - artShows := make([]*model.ArtShow, 0) + artShows := make([]*model.ArtShowRes, 0) err, out.Total, artShows = dao.ArtShowListByApplyStatus(in) err, out.TotalArtistNum, out.TotalPackageNum, _, _, _ = dao.ShowStatistical(m.ARTSHOW_PASS) if err != nil { @@ -206,3 +196,16 @@ func ShowStatisticalInfo(in *artShow.ShowStatisticalInfoReq) (err error, out *ar } return } + +func QueryArtShowForArtwork(in *artShow.ShowListForArtworkReq) (err error, out *artShow.ShowListForArtworkRes) { + out = new(artShow.ShowListForArtworkRes) + err, total, shows := dao.QueryArtShowForArtwork(in) + if err != nil { + return err, out + } + if len(shows) > 0 { + out.Total = total + out.Data = serializer.BuildArtShowListRes(shows) + } + return +} diff --git a/cmd/service/show_apply.go b/cmd/service/show_apply.go index 31b3bfd..716b132 100644 --- a/cmd/service/show_apply.go +++ b/cmd/service/show_apply.go @@ -7,6 +7,7 @@ import ( "fonchain-artshow/pb/artShow" "fonchain-artshow/pkg/m" "fonchain-artshow/pkg/serializer" + "log" ) // 创建画展包申请 @@ -34,6 +35,10 @@ func UpdateShowApplyWithShowRel(in *artShow.SaveApplyReq) (err error, applyUID s if len(in.Rel) > 0 { // 保存 新 show_rel newShowRelS := serializer.BuildShowRelM(in.Rel, showApply.ApplyUID) + for i := 0; i < len(newShowRelS); i++ { + log.Printf("%+v\n", newShowRelS[i]) + } + err, _ := dao.SaveShowRels(tx, newShowRelS) if err != nil { tx.Rollback() diff --git a/conf/conf.ini b/conf/conf.ini index 0fc6455..cd47b1a 100644 --- a/conf/conf.ini +++ b/conf/conf.ini @@ -54,7 +54,7 @@ RedisDBNAme = [zap_log] level: "info" -filename: "./runtime/log/artwork_server.log" +filename: "./runtime/log/artshow_server.log" max_size: 200 max_age: 30 max_backups: 7 \ No newline at end of file diff --git a/pb/artShow/artshow.pb.go b/pb/artShow/artshow.pb.go index 2d8d8b9..036fce9 100644 --- a/pb/artShow/artshow.pb.go +++ b/pb/artShow/artshow.pb.go @@ -26,18 +26,18 @@ type SaveShowReq struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ShowName string `protobuf:"bytes,1,opt,name=ShowName,json=show_name,proto3" json:"ShowName,omitempty"` - ArtistName string `protobuf:"bytes,2,opt,name=ArtistName,json=artist_name,proto3" json:"ArtistName,omitempty"` - ArtistUID string `protobuf:"bytes,3,opt,name=ArtistUID,json=artist_uid,proto3" json:"ArtistUID,omitempty"` - ArtworkNum int32 `protobuf:"varint,4,opt,name=ArtworkNum,json=artwork_num,proto3" json:"ArtworkNum,omitempty"` - Ruler int32 `protobuf:"varint,5,opt,name=Ruler,json=ruler,proto3" json:"Ruler,omitempty"` - Price int64 `protobuf:"varint,6,opt,name=Price,json=price,proto3" json:"Price,omitempty"` - Reward int64 `protobuf:"varint,7,opt,name=Reward,json=reward,proto3" json:"Reward,omitempty"` - IsShow int32 `protobuf:"varint,8,opt,name=IsShow,json=is_show,proto3" json:"IsShow,omitempty"` - ShowTime string `protobuf:"bytes,9,opt,name=ShowTime,json=show_time,proto3" json:"ShowTime,omitempty"` - ShowUID string `protobuf:"bytes,10,opt,name=ShowUID,json=id,proto3" json:"ShowUID,omitempty"` - ShowArtwork []*ShowArtworkDetail `protobuf:"bytes,11,rep,name=ShowArtwork,json=show_artwork,proto3" json:"ShowArtwork,omitempty"` - DelShowArtwork []*DelArtworkDetail `protobuf:"bytes,12,rep,name=DelShowArtwork,json=del_show_artwork,proto3" json:"DelShowArtwork,omitempty"` + ShowName string `protobuf:"bytes,1,opt,name=ShowName,json=show_name,proto3" json:"ShowName"` + ArtistName string `protobuf:"bytes,2,opt,name=ArtistName,json=artist_name,proto3" json:"ArtistName"` + ArtistUID string `protobuf:"bytes,3,opt,name=ArtistUID,json=artist_uid,proto3" json:"ArtistUID"` + ArtworkNum int32 `protobuf:"varint,4,opt,name=ArtworkNum,json=artwork_num,proto3" json:"ArtworkNum"` + Ruler int32 `protobuf:"varint,5,opt,name=Ruler,json=ruler,proto3" json:"Ruler"` + Price int64 `protobuf:"varint,6,opt,name=Price,json=price,proto3" json:"Price"` + Reward int64 `protobuf:"varint,7,opt,name=Reward,json=reward,proto3" json:"Reward"` + IsShow int32 `protobuf:"varint,8,opt,name=IsShow,json=is_show,proto3" json:"IsShow"` + CreateTime string `protobuf:"bytes,9,opt,name=CreateTime,json=create_time,proto3" json:"CreateTime"` + ShowUID string `protobuf:"bytes,10,opt,name=ShowUID,json=id,proto3" json:"ShowUID"` + Artwork []*ArtworkDetail `protobuf:"bytes,11,rep,name=Artwork,json=show_artwork,proto3" json:"Artwork"` + DelArtwork []*DelArtworkDetail `protobuf:"bytes,12,rep,name=DelArtwork,json=del_show_artwork,proto3" json:"DelArtwork"` } func (x *SaveShowReq) Reset() { @@ -128,9 +128,9 @@ func (x *SaveShowReq) GetIsShow() int32 { return 0 } -func (x *SaveShowReq) GetShowTime() string { +func (x *SaveShowReq) GetCreateTime() string { if x != nil { - return x.ShowTime + return x.CreateTime } return "" } @@ -142,16 +142,16 @@ func (x *SaveShowReq) GetShowUID() string { return "" } -func (x *SaveShowReq) GetShowArtwork() []*ShowArtworkDetail { +func (x *SaveShowReq) GetArtwork() []*ArtworkDetail { if x != nil { - return x.ShowArtwork + return x.Artwork } return nil } -func (x *SaveShowReq) GetDelShowArtwork() []*DelArtworkDetail { +func (x *SaveShowReq) GetDelArtwork() []*DelArtworkDetail { if x != nil { - return x.DelShowArtwork + return x.DelArtwork } return nil } @@ -161,8 +161,8 @@ type SaveShowRes struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Msg string `protobuf:"bytes,1,opt,name=Msg,json=msg,proto3" json:"Msg,omitempty"` - ShowUID string `protobuf:"bytes,2,opt,name=ShowUID,json=show_uid,proto3" json:"ShowUID,omitempty"` + Msg string `protobuf:"bytes,1,opt,name=Msg,json=msg,proto3" json:"Msg"` + ShowUID string `protobuf:"bytes,2,opt,name=ShowUID,json=show_uid,proto3" json:"ShowUID"` } func (x *SaveShowRes) Reset() { @@ -216,7 +216,7 @@ type CommonRes struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Msg string `protobuf:"bytes,1,opt,name=Msg,json=msg,proto3" json:"Msg,omitempty"` + Msg string `protobuf:"bytes,1,opt,name=Msg,json=msg,proto3" json:"Msg"` } func (x *CommonRes) Reset() { @@ -264,7 +264,7 @@ type ShowDetailReq struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ShowUID string `protobuf:"bytes,1,opt,name=ShowUID,json=show_uid,proto3" json:"ShowUID,omitempty"` + ShowUID string `protobuf:"bytes,1,opt,name=ShowUID,json=show_uid,proto3" json:"ShowUID"` } func (x *ShowDetailReq) Reset() { @@ -311,17 +311,19 @@ type ShowDetail struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ShowUID string `protobuf:"bytes,1,opt,name=ShowUID,json=show_uid,proto3" json:"ShowUID,omitempty"` - ShowSeq string `protobuf:"bytes,2,opt,name=ShowSeq,json=show_seq,proto3" json:"ShowSeq,omitempty"` - ShowName string `protobuf:"bytes,3,opt,name=ShowName,json=show_name,proto3" json:"ShowName,omitempty"` - ArtistName string `protobuf:"bytes,4,opt,name=ArtistName,json=artist_name,proto3" json:"ArtistName,omitempty"` - ArtistUID string `protobuf:"bytes,5,opt,name=ArtistUID,json=artist_uid,proto3" json:"ArtistUID,omitempty"` - ArtworkNum int32 `protobuf:"varint,6,opt,name=ArtworkNum,json=artwork_num,proto3" json:"ArtworkNum,omitempty"` - Ruler int32 `protobuf:"varint,7,opt,name=Ruler,json=ruler,proto3" json:"Ruler,omitempty"` - Price int64 `protobuf:"varint,8,opt,name=Price,json=price,proto3" json:"Price,omitempty"` - Reward int64 `protobuf:"varint,9,opt,name=Reward,json=reward,proto3" json:"Reward,omitempty"` - ShowTime string `protobuf:"bytes,10,opt,name=ShowTime,json=show_time,proto3" json:"ShowTime,omitempty"` - IsShow int32 `protobuf:"varint,11,opt,name=IsShow,json=is_show,proto3" json:"IsShow,omitempty"` + ShowUID string `protobuf:"bytes,1,opt,name=ShowUID,json=show_uid,proto3" json:"ShowUID"` + ShowSeq string `protobuf:"bytes,2,opt,name=ShowSeq,json=show_seq,proto3" json:"ShowSeq"` + ShowName string `protobuf:"bytes,3,opt,name=ShowName,json=show_name,proto3" json:"ShowName"` + ArtistName string `protobuf:"bytes,4,opt,name=ArtistName,json=artist_name,proto3" json:"ArtistName"` + ArtistUID string `protobuf:"bytes,5,opt,name=ArtistUID,json=artist_uid,proto3" json:"ArtistUID"` + ArtworkNum int32 `protobuf:"varint,6,opt,name=ArtworkNum,json=artwork_num,proto3" json:"ArtworkNum"` + Ruler int32 `protobuf:"varint,7,opt,name=Ruler,json=ruler,proto3" json:"Ruler"` + Price int64 `protobuf:"varint,8,opt,name=Price,json=price,proto3" json:"Price"` + Reward int64 `protobuf:"varint,9,opt,name=Reward,json=reward,proto3" json:"Reward"` + CreateTime string `protobuf:"bytes,10,opt,name=CreateTime,json=create_time,proto3" json:"CreateTime"` + IsShow int32 `protobuf:"varint,11,opt,name=IsShow,json=is_show,proto3" json:"IsShow"` + ShowTime string `protobuf:"bytes,12,opt,name=ShowTime,json=show_time,proto3" json:"ShowTime"` + Address string `protobuf:"bytes,13,opt,name=Address,json=address,proto3" json:"Address"` } func (x *ShowDetail) Reset() { @@ -419,9 +421,9 @@ func (x *ShowDetail) GetReward() int64 { return 0 } -func (x *ShowDetail) GetShowTime() string { +func (x *ShowDetail) GetCreateTime() string { if x != nil { - return x.ShowTime + return x.CreateTime } return "" } @@ -433,13 +435,27 @@ func (x *ShowDetail) GetIsShow() int32 { return 0 } +func (x *ShowDetail) GetShowTime() string { + if x != nil { + return x.ShowTime + } + return "" +} + +func (x *ShowDetail) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + type ShowDetailRes struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Data *ShowDetail `protobuf:"bytes,1,opt,name=Data,json=data,proto3" json:"Data,omitempty"` - Msg string `protobuf:"bytes,2,opt,name=Msg,json=msg,proto3" json:"Msg,omitempty"` + Data *ShowDetail `protobuf:"bytes,1,opt,name=Data,json=data,proto3" json:"Data"` + Msg string `protobuf:"bytes,2,opt,name=Msg,json=msg,proto3" json:"Msg"` } func (x *ShowDetailRes) Reset() { @@ -493,8 +509,8 @@ type ShowArtworkDetailRes struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Data []*ShowArtworkDetail `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` - Msg string `protobuf:"bytes,2,opt,name=Msg,json=msg,proto3" json:"Msg,omitempty"` + Data []*ArtworkDetail `protobuf:"bytes,1,rep,name=data,proto3" json:"data"` + Msg string `protobuf:"bytes,2,opt,name=Msg,json=msg,proto3" json:"Msg"` } func (x *ShowArtworkDetailRes) Reset() { @@ -529,7 +545,7 @@ func (*ShowArtworkDetailRes) Descriptor() ([]byte, []int) { return file_pb_artshow_proto_rawDescGZIP(), []int{6} } -func (x *ShowArtworkDetailRes) GetData() []*ShowArtworkDetail { +func (x *ShowArtworkDetailRes) GetData() []*ArtworkDetail { if x != nil { return x.Data } @@ -549,12 +565,12 @@ type ShowListReq struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Page int32 `protobuf:"varint,1,opt,name=Page,json=page,proto3" json:"Page,omitempty"` - PageSize int32 `protobuf:"varint,2,opt,name=PageSize,json=page_size,proto3" json:"PageSize,omitempty"` - StartTime string `protobuf:"bytes,3,opt,name=StartTime,json=start_time,proto3" json:"StartTime,omitempty"` - EndTime string `protobuf:"bytes,4,opt,name=EndTime,json=end_time,proto3" json:"EndTime,omitempty"` - ArtistUID string `protobuf:"bytes,5,opt,name=ArtistUID,json=artist_uid,proto3" json:"ArtistUID,omitempty"` - IsShow int32 `protobuf:"varint,6,opt,name=IsShow,json=is_show,proto3" json:"IsShow,omitempty"` + Page int32 `protobuf:"varint,1,opt,name=Page,json=page,proto3" json:"Page"` + PageSize int32 `protobuf:"varint,2,opt,name=PageSize,json=page_size,proto3" json:"PageSize"` + StartTime string `protobuf:"bytes,3,opt,name=StartTime,json=start_time,proto3" json:"StartTime"` + EndTime string `protobuf:"bytes,4,opt,name=EndTime,json=end_time,proto3" json:"EndTime"` + Name string `protobuf:"bytes,5,opt,name=Name,json=name,proto3" json:"Name"` + IsShow int32 `protobuf:"varint,6,opt,name=IsShow,json=is_show,proto3" json:"IsShow"` } func (x *ShowListReq) Reset() { @@ -617,9 +633,9 @@ func (x *ShowListReq) GetEndTime() string { return "" } -func (x *ShowListReq) GetArtistUID() string { +func (x *ShowListReq) GetName() string { if x != nil { - return x.ArtistUID + return x.Name } return "" } @@ -631,22 +647,85 @@ func (x *ShowListReq) GetIsShow() int32 { return 0 } +type ShowListForArtworkReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Page int32 `protobuf:"varint,1,opt,name=Page,json=page,proto3" json:"Page"` + PageSize int32 `protobuf:"varint,2,opt,name=PageSize,json=page_size,proto3" json:"PageSize"` + ArtistUID string `protobuf:"bytes,3,opt,name=ArtistUID,json=artist_uid,proto3" json:"ArtistUID"` +} + +func (x *ShowListForArtworkReq) Reset() { + *x = ShowListForArtworkReq{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_artshow_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ShowListForArtworkReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ShowListForArtworkReq) ProtoMessage() {} + +func (x *ShowListForArtworkReq) ProtoReflect() protoreflect.Message { + mi := &file_pb_artshow_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ShowListForArtworkReq.ProtoReflect.Descriptor instead. +func (*ShowListForArtworkReq) Descriptor() ([]byte, []int) { + return file_pb_artshow_proto_rawDescGZIP(), []int{8} +} + +func (x *ShowListForArtworkReq) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *ShowListForArtworkReq) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ShowListForArtworkReq) GetArtistUID() string { + if x != nil { + return x.ArtistUID + } + return "" +} + type ShowListRes struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Total int64 `protobuf:"varint,1,opt,name=Total,json=total,proto3" json:"Total,omitempty"` - TotalPackageNum int64 `protobuf:"varint,2,opt,name=TotalPackageNum,json=total_package_num,proto3" json:"TotalPackageNum,omitempty"` - TotalArtistNum int64 `protobuf:"varint,3,opt,name=TotalArtistNum,json=total_artist_num,proto3" json:"TotalArtistNum,omitempty"` - Data []*ShowDetail `protobuf:"bytes,4,rep,name=Data,json=data,proto3" json:"Data,omitempty"` - Msg string `protobuf:"bytes,5,opt,name=Msg,json=msg,proto3" json:"Msg,omitempty"` + Total int64 `protobuf:"varint,1,opt,name=Total,json=total,proto3" json:"Total"` + TotalPackageNum int64 `protobuf:"varint,2,opt,name=TotalPackageNum,json=total_package_num,proto3" json:"TotalPackageNum"` + TotalArtistNum int64 `protobuf:"varint,3,opt,name=TotalArtistNum,json=total_artist_num,proto3" json:"TotalArtistNum"` + Data []*ShowDetail `protobuf:"bytes,4,rep,name=Data,json=data,proto3" json:"Data"` + Msg string `protobuf:"bytes,5,opt,name=Msg,json=msg,proto3" json:"Msg"` } func (x *ShowListRes) Reset() { *x = ShowListRes{} if protoimpl.UnsafeEnabled { - mi := &file_pb_artshow_proto_msgTypes[8] + mi := &file_pb_artshow_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -659,7 +738,7 @@ func (x *ShowListRes) String() string { func (*ShowListRes) ProtoMessage() {} func (x *ShowListRes) ProtoReflect() protoreflect.Message { - mi := &file_pb_artshow_proto_msgTypes[8] + mi := &file_pb_artshow_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -672,7 +751,7 @@ func (x *ShowListRes) ProtoReflect() protoreflect.Message { // Deprecated: Use ShowListRes.ProtoReflect.Descriptor instead. func (*ShowListRes) Descriptor() ([]byte, []int) { - return file_pb_artshow_proto_rawDescGZIP(), []int{8} + return file_pb_artshow_proto_rawDescGZIP(), []int{9} } func (x *ShowListRes) GetTotal() int64 { @@ -710,19 +789,82 @@ func (x *ShowListRes) GetMsg() string { return "" } +type ShowListForArtworkRes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Total int64 `protobuf:"varint,1,opt,name=Total,json=total,proto3" json:"Total"` + Msg string `protobuf:"bytes,2,opt,name=Msg,json=msg,proto3" json:"Msg"` + Data []*ShowDetail `protobuf:"bytes,3,rep,name=Data,json=data,proto3" json:"Data"` +} + +func (x *ShowListForArtworkRes) Reset() { + *x = ShowListForArtworkRes{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_artshow_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ShowListForArtworkRes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ShowListForArtworkRes) ProtoMessage() {} + +func (x *ShowListForArtworkRes) ProtoReflect() protoreflect.Message { + mi := &file_pb_artshow_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ShowListForArtworkRes.ProtoReflect.Descriptor instead. +func (*ShowListForArtworkRes) Descriptor() ([]byte, []int) { + return file_pb_artshow_proto_rawDescGZIP(), []int{10} +} + +func (x *ShowListForArtworkRes) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +func (x *ShowListForArtworkRes) GetMsg() string { + if x != nil { + return x.Msg + } + return "" +} + +func (x *ShowListForArtworkRes) GetData() []*ShowDetail { + if x != nil { + return x.Data + } + return nil +} + // 删除画展包 type DelShowReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ShowUID []string `protobuf:"bytes,1,rep,name=ShowUID,json=show_uid,proto3" json:"ShowUID,omitempty"` + ShowUID []string `protobuf:"bytes,1,rep,name=ShowUID,json=show_uid,proto3" json:"ShowUID"` } func (x *DelShowReq) Reset() { *x = DelShowReq{} if protoimpl.UnsafeEnabled { - mi := &file_pb_artshow_proto_msgTypes[9] + mi := &file_pb_artshow_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -735,7 +877,7 @@ func (x *DelShowReq) String() string { func (*DelShowReq) ProtoMessage() {} func (x *DelShowReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_artshow_proto_msgTypes[9] + mi := &file_pb_artshow_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -748,7 +890,7 @@ func (x *DelShowReq) ProtoReflect() protoreflect.Message { // Deprecated: Use DelShowReq.ProtoReflect.Descriptor instead. func (*DelShowReq) Descriptor() ([]byte, []int) { - return file_pb_artshow_proto_rawDescGZIP(), []int{9} + return file_pb_artshow_proto_rawDescGZIP(), []int{11} } func (x *DelShowReq) GetShowUID() []string { @@ -759,39 +901,39 @@ func (x *DelShowReq) GetShowUID() []string { } // 画展包中画作详情 除价格 -type ShowArtworkDetail struct { +type ArtworkDetail struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ArtworkPriceUID string `protobuf:"bytes,1,opt,name=ArtworkPriceUID,json=artwork_price_uid,proto3" json:"ArtworkPriceUID,omitempty"` - ShowUID string `protobuf:"bytes,2,opt,name=ShowUID,json=show_uid,proto3" json:"ShowUID,omitempty"` - ArtworkUID string `protobuf:"bytes,3,opt,name=ArtworkUID,json=artwork_uid,proto3" json:"ArtworkUID,omitempty"` - ArtworkName string `protobuf:"bytes,4,opt,name=ArtworkName,json=artwork_name,proto3" json:"ArtworkName,omitempty"` - ArtistName string `protobuf:"bytes,5,opt,name=ArtistName,json=artist_name,proto3" json:"ArtistName,omitempty"` - Length int32 `protobuf:"varint,6,opt,name=Length,json=length,proto3" json:"Length,omitempty"` - Width int32 `protobuf:"varint,7,opt,name=Width,json=width,proto3" json:"Width,omitempty"` - Ruler int32 `protobuf:"varint,8,opt,name=Ruler,json=ruler,proto3" json:"Ruler,omitempty"` - SmallPic string `protobuf:"bytes,9,opt,name=SmallPic,json=small_pic,proto3" json:"SmallPic,omitempty"` + ArtworkPriceUID string `protobuf:"bytes,1,opt,name=ArtworkPriceUID,json=artwork_price_uid,proto3" json:"ArtworkPriceUID"` + ShowUID string `protobuf:"bytes,2,opt,name=ShowUID,json=show_uid,proto3" json:"ShowUID"` + ArtworkUID string `protobuf:"bytes,3,opt,name=ArtworkUID,json=artwork_uid,proto3" json:"ArtworkUID"` + ArtworkName string `protobuf:"bytes,4,opt,name=ArtworkName,json=artwork_name,proto3" json:"ArtworkName"` + ArtistName string `protobuf:"bytes,5,opt,name=ArtistName,json=artist_name,proto3" json:"ArtistName"` + Length int32 `protobuf:"varint,6,opt,name=Length,json=length,proto3" json:"Length"` + Width int32 `protobuf:"varint,7,opt,name=Width,json=width,proto3" json:"Width"` + Ruler int32 `protobuf:"varint,8,opt,name=Ruler,json=ruler,proto3" json:"Ruler"` + SmallPic string `protobuf:"bytes,9,opt,name=SmallPic,json=small_pic,proto3" json:"SmallPic"` } -func (x *ShowArtworkDetail) Reset() { - *x = ShowArtworkDetail{} +func (x *ArtworkDetail) Reset() { + *x = ArtworkDetail{} if protoimpl.UnsafeEnabled { - mi := &file_pb_artshow_proto_msgTypes[10] + mi := &file_pb_artshow_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ShowArtworkDetail) String() string { +func (x *ArtworkDetail) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ShowArtworkDetail) ProtoMessage() {} +func (*ArtworkDetail) ProtoMessage() {} -func (x *ShowArtworkDetail) ProtoReflect() protoreflect.Message { - mi := &file_pb_artshow_proto_msgTypes[10] +func (x *ArtworkDetail) ProtoReflect() protoreflect.Message { + mi := &file_pb_artshow_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -802,68 +944,68 @@ func (x *ShowArtworkDetail) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ShowArtworkDetail.ProtoReflect.Descriptor instead. -func (*ShowArtworkDetail) Descriptor() ([]byte, []int) { - return file_pb_artshow_proto_rawDescGZIP(), []int{10} +// Deprecated: Use ArtworkDetail.ProtoReflect.Descriptor instead. +func (*ArtworkDetail) Descriptor() ([]byte, []int) { + return file_pb_artshow_proto_rawDescGZIP(), []int{12} } -func (x *ShowArtworkDetail) GetArtworkPriceUID() string { +func (x *ArtworkDetail) GetArtworkPriceUID() string { if x != nil { return x.ArtworkPriceUID } return "" } -func (x *ShowArtworkDetail) GetShowUID() string { +func (x *ArtworkDetail) GetShowUID() string { if x != nil { return x.ShowUID } return "" } -func (x *ShowArtworkDetail) GetArtworkUID() string { +func (x *ArtworkDetail) GetArtworkUID() string { if x != nil { return x.ArtworkUID } return "" } -func (x *ShowArtworkDetail) GetArtworkName() string { +func (x *ArtworkDetail) GetArtworkName() string { if x != nil { return x.ArtworkName } return "" } -func (x *ShowArtworkDetail) GetArtistName() string { +func (x *ArtworkDetail) GetArtistName() string { if x != nil { return x.ArtistName } return "" } -func (x *ShowArtworkDetail) GetLength() int32 { +func (x *ArtworkDetail) GetLength() int32 { if x != nil { return x.Length } return 0 } -func (x *ShowArtworkDetail) GetWidth() int32 { +func (x *ArtworkDetail) GetWidth() int32 { if x != nil { return x.Width } return 0 } -func (x *ShowArtworkDetail) GetRuler() int32 { +func (x *ArtworkDetail) GetRuler() int32 { if x != nil { return x.Ruler } return 0 } -func (x *ShowArtworkDetail) GetSmallPic() string { +func (x *ArtworkDetail) GetSmallPic() string { if x != nil { return x.SmallPic } @@ -876,14 +1018,14 @@ type DelArtworkDetail struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ArtworkPriceUID string `protobuf:"bytes,1,opt,name=ArtworkPriceUID,json=artwork_price_uid,proto3" json:"ArtworkPriceUID,omitempty"` - ArtworkUID string `protobuf:"bytes,2,opt,name=ArtworkUID,json=artwork_uid,proto3" json:"ArtworkUID,omitempty"` + ArtworkPriceUID string `protobuf:"bytes,1,opt,name=ArtworkPriceUID,json=artwork_price_uid,proto3" json:"ArtworkPriceUID"` + ArtworkUID string `protobuf:"bytes,2,opt,name=ArtworkUID,json=artwork_uid,proto3" json:"ArtworkUID"` } func (x *DelArtworkDetail) Reset() { *x = DelArtworkDetail{} if protoimpl.UnsafeEnabled { - mi := &file_pb_artshow_proto_msgTypes[11] + mi := &file_pb_artshow_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -896,7 +1038,7 @@ func (x *DelArtworkDetail) String() string { func (*DelArtworkDetail) ProtoMessage() {} func (x *DelArtworkDetail) ProtoReflect() protoreflect.Message { - mi := &file_pb_artshow_proto_msgTypes[11] + mi := &file_pb_artshow_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -909,7 +1051,7 @@ func (x *DelArtworkDetail) ProtoReflect() protoreflect.Message { // Deprecated: Use DelArtworkDetail.ProtoReflect.Descriptor instead. func (*DelArtworkDetail) Descriptor() ([]byte, []int) { - return file_pb_artshow_proto_rawDescGZIP(), []int{11} + return file_pb_artshow_proto_rawDescGZIP(), []int{13} } func (x *DelArtworkDetail) GetArtworkPriceUID() string { @@ -932,13 +1074,13 @@ type ShowStatisticalInfoReq struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - IsShow int32 `protobuf:"varint,1,opt,name=IsShow,json=is_show,proto3" json:"IsShow,omitempty"` + IsShow int32 `protobuf:"varint,1,opt,name=IsShow,json=is_show,proto3" json:"IsShow"` } func (x *ShowStatisticalInfoReq) Reset() { *x = ShowStatisticalInfoReq{} if protoimpl.UnsafeEnabled { - mi := &file_pb_artshow_proto_msgTypes[12] + mi := &file_pb_artshow_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -951,7 +1093,7 @@ func (x *ShowStatisticalInfoReq) String() string { func (*ShowStatisticalInfoReq) ProtoMessage() {} func (x *ShowStatisticalInfoReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_artshow_proto_msgTypes[12] + mi := &file_pb_artshow_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -964,7 +1106,7 @@ func (x *ShowStatisticalInfoReq) ProtoReflect() protoreflect.Message { // Deprecated: Use ShowStatisticalInfoReq.ProtoReflect.Descriptor instead. func (*ShowStatisticalInfoReq) Descriptor() ([]byte, []int) { - return file_pb_artshow_proto_rawDescGZIP(), []int{12} + return file_pb_artshow_proto_rawDescGZIP(), []int{14} } func (x *ShowStatisticalInfoReq) GetIsShow() int32 { @@ -979,14 +1121,14 @@ type ShowStatisticalInfoRes struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Data *ShowStatisticalInfoRes_Num `protobuf:"bytes,1,opt,name=Data,json=data,proto3" json:"Data,omitempty"` - Msg string `protobuf:"bytes,2,opt,name=Msg,json=msg,proto3" json:"Msg,omitempty"` + Data *ShowStatisticalInfoRes_Num `protobuf:"bytes,1,opt,name=Data,json=data,proto3" json:"Data"` + Msg string `protobuf:"bytes,2,opt,name=Msg,json=msg,proto3" json:"Msg"` } func (x *ShowStatisticalInfoRes) Reset() { *x = ShowStatisticalInfoRes{} if protoimpl.UnsafeEnabled { - mi := &file_pb_artshow_proto_msgTypes[13] + mi := &file_pb_artshow_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -999,7 +1141,7 @@ func (x *ShowStatisticalInfoRes) String() string { func (*ShowStatisticalInfoRes) ProtoMessage() {} func (x *ShowStatisticalInfoRes) ProtoReflect() protoreflect.Message { - mi := &file_pb_artshow_proto_msgTypes[13] + mi := &file_pb_artshow_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1012,7 +1154,7 @@ func (x *ShowStatisticalInfoRes) ProtoReflect() protoreflect.Message { // Deprecated: Use ShowStatisticalInfoRes.ProtoReflect.Descriptor instead. func (*ShowStatisticalInfoRes) Descriptor() ([]byte, []int) { - return file_pb_artshow_proto_rawDescGZIP(), []int{13} + return file_pb_artshow_proto_rawDescGZIP(), []int{15} } func (x *ShowStatisticalInfoRes) GetData() *ShowStatisticalInfoRes_Num { @@ -1034,13 +1176,13 @@ type ArtworkPriceReq struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ArtworkUID string `protobuf:"bytes,1,opt,name=ArtworkUID,json=artwork_uid,proto3" json:"ArtworkUID,omitempty"` + ArtworkUID string `protobuf:"bytes,1,opt,name=ArtworkUID,json=artwork_uid,proto3" json:"ArtworkUID"` } func (x *ArtworkPriceReq) Reset() { *x = ArtworkPriceReq{} if protoimpl.UnsafeEnabled { - mi := &file_pb_artshow_proto_msgTypes[14] + mi := &file_pb_artshow_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1053,7 +1195,7 @@ func (x *ArtworkPriceReq) String() string { func (*ArtworkPriceReq) ProtoMessage() {} func (x *ArtworkPriceReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_artshow_proto_msgTypes[14] + mi := &file_pb_artshow_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1066,7 +1208,7 @@ func (x *ArtworkPriceReq) ProtoReflect() protoreflect.Message { // Deprecated: Use ArtworkPriceReq.ProtoReflect.Descriptor instead. func (*ArtworkPriceReq) Descriptor() ([]byte, []int) { - return file_pb_artshow_proto_rawDescGZIP(), []int{14} + return file_pb_artshow_proto_rawDescGZIP(), []int{16} } func (x *ArtworkPriceReq) GetArtworkUID() string { @@ -1081,14 +1223,14 @@ type ArtworkPriceRes struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Data *ArtworkPriceRes_PriceInfo `protobuf:"bytes,1,opt,name=Data,json=data,proto3" json:"Data,omitempty"` - Msg string `protobuf:"bytes,2,opt,name=Msg,json=msg,proto3" json:"Msg,omitempty"` + Data *ArtworkPriceRes_PriceInfo `protobuf:"bytes,1,opt,name=Data,json=data,proto3" json:"Data"` + Msg string `protobuf:"bytes,2,opt,name=Msg,json=msg,proto3" json:"Msg"` } func (x *ArtworkPriceRes) Reset() { *x = ArtworkPriceRes{} if protoimpl.UnsafeEnabled { - mi := &file_pb_artshow_proto_msgTypes[15] + mi := &file_pb_artshow_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1101,7 +1243,7 @@ func (x *ArtworkPriceRes) String() string { func (*ArtworkPriceRes) ProtoMessage() {} func (x *ArtworkPriceRes) ProtoReflect() protoreflect.Message { - mi := &file_pb_artshow_proto_msgTypes[15] + mi := &file_pb_artshow_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1114,7 +1256,7 @@ func (x *ArtworkPriceRes) ProtoReflect() protoreflect.Message { // Deprecated: Use ArtworkPriceRes.ProtoReflect.Descriptor instead. func (*ArtworkPriceRes) Descriptor() ([]byte, []int) { - return file_pb_artshow_proto_rawDescGZIP(), []int{15} + return file_pb_artshow_proto_rawDescGZIP(), []int{17} } func (x *ArtworkPriceRes) GetData() *ArtworkPriceRes_PriceInfo { @@ -1136,17 +1278,18 @@ type ShowRel struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ShowRelUID string `protobuf:"bytes,1,opt,name=ShowRelUID,json=show_rel_uid,proto3" json:"ShowRelUID,omitempty"` - ApplyUID string `protobuf:"bytes,2,opt,name=ApplyUID,json=apply_uid,proto3" json:"ApplyUID,omitempty"` - ShowUID string `protobuf:"bytes,3,opt,name=ShowUID,json=show_uid,proto3" json:"ShowUID,omitempty"` - Index int32 `protobuf:"varint,4,opt,name=Index,json=index,proto3" json:"Index,omitempty"` - Address string `protobuf:"bytes,5,opt,name=Address,json=address,proto3" json:"Address,omitempty"` + ShowRelUID string `protobuf:"bytes,1,opt,name=ShowRelUID,json=show_rel_uid,proto3" json:"ShowRelUID"` + ApplyUID string `protobuf:"bytes,2,opt,name=ApplyUID,json=apply_uid,proto3" json:"ApplyUID"` + ShowUID string `protobuf:"bytes,3,opt,name=ShowUID,json=show_uid,proto3" json:"ShowUID"` + Index int32 `protobuf:"varint,4,opt,name=Index,json=index,proto3" json:"Index"` + Address string `protobuf:"bytes,5,opt,name=Address,json=address,proto3" json:"Address"` + ShowTime string `protobuf:"bytes,6,opt,name=ShowTime,json=show_time,proto3" json:"ShowTime"` } func (x *ShowRel) Reset() { *x = ShowRel{} if protoimpl.UnsafeEnabled { - mi := &file_pb_artshow_proto_msgTypes[16] + mi := &file_pb_artshow_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1159,7 +1302,7 @@ func (x *ShowRel) String() string { func (*ShowRel) ProtoMessage() {} func (x *ShowRel) ProtoReflect() protoreflect.Message { - mi := &file_pb_artshow_proto_msgTypes[16] + mi := &file_pb_artshow_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1172,7 +1315,7 @@ func (x *ShowRel) ProtoReflect() protoreflect.Message { // Deprecated: Use ShowRel.ProtoReflect.Descriptor instead. func (*ShowRel) Descriptor() ([]byte, []int) { - return file_pb_artshow_proto_rawDescGZIP(), []int{16} + return file_pb_artshow_proto_rawDescGZIP(), []int{18} } func (x *ShowRel) GetShowRelUID() string { @@ -1210,19 +1353,26 @@ func (x *ShowRel) GetAddress() string { return "" } +func (x *ShowRel) GetShowTime() string { + if x != nil { + return x.ShowTime + } + return "" +} + type DelShowRel struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ShowRelUID string `protobuf:"bytes,1,opt,name=ShowRelUID,json=show_rel_uid,proto3" json:"ShowRelUID,omitempty"` - ShowUID string `protobuf:"bytes,2,opt,name=ShowUID,json=show_uid,proto3" json:"ShowUID,omitempty"` + ShowRelUID string `protobuf:"bytes,1,opt,name=ShowRelUID,json=show_rel_uid,proto3" json:"ShowRelUID"` + ShowUID string `protobuf:"bytes,2,opt,name=ShowUID,json=show_uid,proto3" json:"ShowUID"` } func (x *DelShowRel) Reset() { *x = DelShowRel{} if protoimpl.UnsafeEnabled { - mi := &file_pb_artshow_proto_msgTypes[17] + mi := &file_pb_artshow_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1235,7 +1385,7 @@ func (x *DelShowRel) String() string { func (*DelShowRel) ProtoMessage() {} func (x *DelShowRel) ProtoReflect() protoreflect.Message { - mi := &file_pb_artshow_proto_msgTypes[17] + mi := &file_pb_artshow_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1248,7 +1398,7 @@ func (x *DelShowRel) ProtoReflect() protoreflect.Message { // Deprecated: Use DelShowRel.ProtoReflect.Descriptor instead. func (*DelShowRel) Descriptor() ([]byte, []int) { - return file_pb_artshow_proto_rawDescGZIP(), []int{17} + return file_pb_artshow_proto_rawDescGZIP(), []int{19} } func (x *DelShowRel) GetShowRelUID() string { @@ -1270,21 +1420,21 @@ type SaveApplyReq struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Applicant string `protobuf:"bytes,1,opt,name=Applicant,json=applicant,proto3" json:"Applicant,omitempty"` - ApplicantID string `protobuf:"bytes,2,opt,name=ApplicantID,json=applicant_id,proto3" json:"ApplicantID,omitempty"` - Num int32 `protobuf:"varint,3,opt,name=Num,json=num,proto3" json:"Num,omitempty"` - ApplyTime string `protobuf:"bytes,4,opt,name=ApplyTime,json=apply_time,proto3" json:"ApplyTime,omitempty"` - ApplyUID string `protobuf:"bytes,5,opt,name=ApplyUID,json=apply_uid,proto3" json:"ApplyUID,omitempty"` - Status int32 `protobuf:"varint,6,opt,name=Status,json=status,proto3" json:"Status,omitempty"` - Remark string `protobuf:"bytes,7,opt,name=Remark,json=remark,proto3" json:"Remark,omitempty"` - Rel []*ShowRel `protobuf:"bytes,8,rep,name=Rel,json=rel,proto3" json:"Rel,omitempty"` - DelRel []*DelShowRel `protobuf:"bytes,9,rep,name=DelRel,json=del_rel,proto3" json:"DelRel,omitempty"` + Applicant string `protobuf:"bytes,1,opt,name=Applicant,json=applicant,proto3" json:"Applicant"` + ApplicantID string `protobuf:"bytes,2,opt,name=ApplicantID,json=applicant_id,proto3" json:"ApplicantID"` + Num int32 `protobuf:"varint,3,opt,name=Num,json=num,proto3" json:"Num"` + ApplyTime string `protobuf:"bytes,4,opt,name=ApplyTime,json=apply_time,proto3" json:"ApplyTime"` + ApplyUID string `protobuf:"bytes,5,opt,name=ApplyUID,json=apply_uid,proto3" json:"ApplyUID"` + Status int32 `protobuf:"varint,6,opt,name=Status,json=status,proto3" json:"Status"` + Remark string `protobuf:"bytes,7,opt,name=Remark,json=remark,proto3" json:"Remark"` + Rel []*ShowRel `protobuf:"bytes,8,rep,name=Rel,json=rel,proto3" json:"Rel"` + DelRel []*DelShowRel `protobuf:"bytes,9,rep,name=DelRel,json=del_rel,proto3" json:"DelRel"` } func (x *SaveApplyReq) Reset() { *x = SaveApplyReq{} if protoimpl.UnsafeEnabled { - mi := &file_pb_artshow_proto_msgTypes[18] + mi := &file_pb_artshow_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1297,7 +1447,7 @@ func (x *SaveApplyReq) String() string { func (*SaveApplyReq) ProtoMessage() {} func (x *SaveApplyReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_artshow_proto_msgTypes[18] + mi := &file_pb_artshow_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1310,7 +1460,7 @@ func (x *SaveApplyReq) ProtoReflect() protoreflect.Message { // Deprecated: Use SaveApplyReq.ProtoReflect.Descriptor instead. func (*SaveApplyReq) Descriptor() ([]byte, []int) { - return file_pb_artshow_proto_rawDescGZIP(), []int{18} + return file_pb_artshow_proto_rawDescGZIP(), []int{20} } func (x *SaveApplyReq) GetApplicant() string { @@ -1381,14 +1531,14 @@ type SaveApplyRes struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Msg string `protobuf:"bytes,1,opt,name=Msg,json=msg,proto3" json:"Msg,omitempty"` - ApplyUID string `protobuf:"bytes,2,opt,name=ApplyUID,json=apply_uid,proto3" json:"ApplyUID,omitempty"` + Msg string `protobuf:"bytes,1,opt,name=Msg,json=msg,proto3" json:"Msg"` + ApplyUID string `protobuf:"bytes,2,opt,name=ApplyUID,json=apply_uid,proto3" json:"ApplyUID"` } func (x *SaveApplyRes) Reset() { *x = SaveApplyRes{} if protoimpl.UnsafeEnabled { - mi := &file_pb_artshow_proto_msgTypes[19] + mi := &file_pb_artshow_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1401,7 +1551,7 @@ func (x *SaveApplyRes) String() string { func (*SaveApplyRes) ProtoMessage() {} func (x *SaveApplyRes) ProtoReflect() protoreflect.Message { - mi := &file_pb_artshow_proto_msgTypes[19] + mi := &file_pb_artshow_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1414,7 +1564,7 @@ func (x *SaveApplyRes) ProtoReflect() protoreflect.Message { // Deprecated: Use SaveApplyRes.ProtoReflect.Descriptor instead. func (*SaveApplyRes) Descriptor() ([]byte, []int) { - return file_pb_artshow_proto_rawDescGZIP(), []int{19} + return file_pb_artshow_proto_rawDescGZIP(), []int{21} } func (x *SaveApplyRes) GetMsg() string { @@ -1436,15 +1586,15 @@ type ApplyListReq struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Page int32 `protobuf:"varint,1,opt,name=Page,json=page,proto3" json:"Page,omitempty"` - PageSize int32 `protobuf:"varint,2,opt,name=PageSize,json=page_size,proto3" json:"PageSize,omitempty"` - Status int32 `protobuf:"varint,3,opt,name=Status,json=status,proto3" json:"Status,omitempty"` + Page int32 `protobuf:"varint,1,opt,name=Page,json=page,proto3" json:"Page"` + PageSize int32 `protobuf:"varint,2,opt,name=PageSize,json=page_size,proto3" json:"PageSize"` + Status int32 `protobuf:"varint,3,opt,name=Status,json=status,proto3" json:"Status"` } func (x *ApplyListReq) Reset() { *x = ApplyListReq{} if protoimpl.UnsafeEnabled { - mi := &file_pb_artshow_proto_msgTypes[20] + mi := &file_pb_artshow_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1457,7 +1607,7 @@ func (x *ApplyListReq) String() string { func (*ApplyListReq) ProtoMessage() {} func (x *ApplyListReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_artshow_proto_msgTypes[20] + mi := &file_pb_artshow_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1470,7 +1620,7 @@ func (x *ApplyListReq) ProtoReflect() protoreflect.Message { // Deprecated: Use ApplyListReq.ProtoReflect.Descriptor instead. func (*ApplyListReq) Descriptor() ([]byte, []int) { - return file_pb_artshow_proto_rawDescGZIP(), []int{20} + return file_pb_artshow_proto_rawDescGZIP(), []int{22} } func (x *ApplyListReq) GetPage() int32 { @@ -1499,15 +1649,15 @@ type ApplyListRes struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Total int64 `protobuf:"varint,1,opt,name=Total,json=total,proto3" json:"Total,omitempty"` - Data []*ApplyDetail `protobuf:"bytes,2,rep,name=Data,json=data,proto3" json:"Data,omitempty"` - Msg string `protobuf:"bytes,3,opt,name=Msg,json=msg,proto3" json:"Msg,omitempty"` + Total int64 `protobuf:"varint,1,opt,name=Total,json=total,proto3" json:"Total"` + Data []*ApplyDetail `protobuf:"bytes,2,rep,name=Data,json=data,proto3" json:"Data"` + Msg string `protobuf:"bytes,3,opt,name=Msg,json=msg,proto3" json:"Msg"` } func (x *ApplyListRes) Reset() { *x = ApplyListRes{} if protoimpl.UnsafeEnabled { - mi := &file_pb_artshow_proto_msgTypes[21] + mi := &file_pb_artshow_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1520,7 +1670,7 @@ func (x *ApplyListRes) String() string { func (*ApplyListRes) ProtoMessage() {} func (x *ApplyListRes) ProtoReflect() protoreflect.Message { - mi := &file_pb_artshow_proto_msgTypes[21] + mi := &file_pb_artshow_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1533,7 +1683,7 @@ func (x *ApplyListRes) ProtoReflect() protoreflect.Message { // Deprecated: Use ApplyListRes.ProtoReflect.Descriptor instead. func (*ApplyListRes) Descriptor() ([]byte, []int) { - return file_pb_artshow_proto_rawDescGZIP(), []int{21} + return file_pb_artshow_proto_rawDescGZIP(), []int{23} } func (x *ApplyListRes) GetTotal() int64 { @@ -1562,13 +1712,13 @@ type ApplyShowReq struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ApplyUID string `protobuf:"bytes,1,opt,name=ApplyUID,json=apply_uid,proto3" json:"ApplyUID,omitempty"` + ApplyUID string `protobuf:"bytes,1,opt,name=ApplyUID,json=apply_uid,proto3" json:"ApplyUID"` } func (x *ApplyShowReq) Reset() { *x = ApplyShowReq{} if protoimpl.UnsafeEnabled { - mi := &file_pb_artshow_proto_msgTypes[22] + mi := &file_pb_artshow_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1581,7 +1731,7 @@ func (x *ApplyShowReq) String() string { func (*ApplyShowReq) ProtoMessage() {} func (x *ApplyShowReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_artshow_proto_msgTypes[22] + mi := &file_pb_artshow_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1594,7 +1744,7 @@ func (x *ApplyShowReq) ProtoReflect() protoreflect.Message { // Deprecated: Use ApplyShowReq.ProtoReflect.Descriptor instead. func (*ApplyShowReq) Descriptor() ([]byte, []int) { - return file_pb_artshow_proto_rawDescGZIP(), []int{22} + return file_pb_artshow_proto_rawDescGZIP(), []int{24} } func (x *ApplyShowReq) GetApplyUID() string { @@ -1609,15 +1759,15 @@ type ApplyShowRes struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Apply *ApplyDetail `protobuf:"bytes,1,opt,name=Apply,json=apply,proto3" json:"Apply,omitempty"` - Show []*ShowDetail `protobuf:"bytes,2,rep,name=Show,json=show,proto3" json:"Show,omitempty"` - Msg string `protobuf:"bytes,3,opt,name=Msg,json=msg,proto3" json:"Msg,omitempty"` + Apply *ApplyDetail `protobuf:"bytes,1,opt,name=Apply,json=apply,proto3" json:"Apply"` + Show []*ShowDetail `protobuf:"bytes,2,rep,name=Show,json=show,proto3" json:"Show"` + Msg string `protobuf:"bytes,3,opt,name=Msg,json=msg,proto3" json:"Msg"` } func (x *ApplyShowRes) Reset() { *x = ApplyShowRes{} if protoimpl.UnsafeEnabled { - mi := &file_pb_artshow_proto_msgTypes[23] + mi := &file_pb_artshow_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1630,7 +1780,7 @@ func (x *ApplyShowRes) String() string { func (*ApplyShowRes) ProtoMessage() {} func (x *ApplyShowRes) ProtoReflect() protoreflect.Message { - mi := &file_pb_artshow_proto_msgTypes[23] + mi := &file_pb_artshow_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1643,7 +1793,7 @@ func (x *ApplyShowRes) ProtoReflect() protoreflect.Message { // Deprecated: Use ApplyShowRes.ProtoReflect.Descriptor instead. func (*ApplyShowRes) Descriptor() ([]byte, []int) { - return file_pb_artshow_proto_rawDescGZIP(), []int{23} + return file_pb_artshow_proto_rawDescGZIP(), []int{25} } func (x *ApplyShowRes) GetApply() *ApplyDetail { @@ -1672,20 +1822,20 @@ type ApplyDetail struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ApplyUID string `protobuf:"bytes,1,opt,name=ApplyUID,json=apply_uid,proto3" json:"ApplyUID,omitempty"` - ApplySeq string `protobuf:"bytes,2,opt,name=ApplySeq,json=apply_seq,proto3" json:"ApplySeq,omitempty"` - Applicant string `protobuf:"bytes,3,opt,name=Applicant,json=applicant,proto3" json:"Applicant,omitempty"` - ApplicantID string `protobuf:"bytes,4,opt,name=ApplicantID,json=applicant_id,proto3" json:"ApplicantID,omitempty"` - Num int32 `protobuf:"varint,5,opt,name=Num,json=num,proto3" json:"Num,omitempty"` - ApplyTime string `protobuf:"bytes,6,opt,name=ApplyTime,json=apply_time,proto3" json:"ApplyTime,omitempty"` - Status int32 `protobuf:"varint,7,opt,name=Status,json=status,proto3" json:"Status,omitempty"` - Remark string `protobuf:"bytes,8,opt,name=Remark,json=remark,proto3" json:"Remark,omitempty"` + ApplyUID string `protobuf:"bytes,1,opt,name=ApplyUID,json=apply_uid,proto3" json:"ApplyUID"` + ApplySeq string `protobuf:"bytes,2,opt,name=ApplySeq,json=apply_seq,proto3" json:"ApplySeq"` + Applicant string `protobuf:"bytes,3,opt,name=Applicant,json=applicant,proto3" json:"Applicant"` + ApplicantID string `protobuf:"bytes,4,opt,name=ApplicantID,json=applicant_id,proto3" json:"ApplicantID"` + Num int32 `protobuf:"varint,5,opt,name=Num,json=num,proto3" json:"Num"` + ApplyTime string `protobuf:"bytes,6,opt,name=ApplyTime,json=apply_time,proto3" json:"ApplyTime"` + Status int32 `protobuf:"varint,7,opt,name=Status,json=status,proto3" json:"Status"` + Remark string `protobuf:"bytes,8,opt,name=Remark,json=remark,proto3" json:"Remark"` } func (x *ApplyDetail) Reset() { *x = ApplyDetail{} if protoimpl.UnsafeEnabled { - mi := &file_pb_artshow_proto_msgTypes[24] + mi := &file_pb_artshow_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1698,7 +1848,7 @@ func (x *ApplyDetail) String() string { func (*ApplyDetail) ProtoMessage() {} func (x *ApplyDetail) ProtoReflect() protoreflect.Message { - mi := &file_pb_artshow_proto_msgTypes[24] + mi := &file_pb_artshow_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1711,7 +1861,7 @@ func (x *ApplyDetail) ProtoReflect() protoreflect.Message { // Deprecated: Use ApplyDetail.ProtoReflect.Descriptor instead. func (*ApplyDetail) Descriptor() ([]byte, []int) { - return file_pb_artshow_proto_rawDescGZIP(), []int{24} + return file_pb_artshow_proto_rawDescGZIP(), []int{26} } func (x *ApplyDetail) GetApplyUID() string { @@ -1775,13 +1925,13 @@ type ShowRelListReq struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ApplyUID string `protobuf:"bytes,1,opt,name=ApplyUID,json=apply_uid,proto3" json:"ApplyUID,omitempty"` + ApplyUID string `protobuf:"bytes,1,opt,name=ApplyUID,json=apply_uid,proto3" json:"ApplyUID"` } func (x *ShowRelListReq) Reset() { *x = ShowRelListReq{} if protoimpl.UnsafeEnabled { - mi := &file_pb_artshow_proto_msgTypes[25] + mi := &file_pb_artshow_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1794,7 +1944,7 @@ func (x *ShowRelListReq) String() string { func (*ShowRelListReq) ProtoMessage() {} func (x *ShowRelListReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_artshow_proto_msgTypes[25] + mi := &file_pb_artshow_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1807,7 +1957,7 @@ func (x *ShowRelListReq) ProtoReflect() protoreflect.Message { // Deprecated: Use ShowRelListReq.ProtoReflect.Descriptor instead. func (*ShowRelListReq) Descriptor() ([]byte, []int) { - return file_pb_artshow_proto_rawDescGZIP(), []int{25} + return file_pb_artshow_proto_rawDescGZIP(), []int{27} } func (x *ShowRelListReq) GetApplyUID() string { @@ -1822,14 +1972,14 @@ type ShowRelListRes struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Msg string `protobuf:"bytes,1,opt,name=Msg,json=msg,proto3" json:"Msg,omitempty"` - Data []*ShowRel `protobuf:"bytes,2,rep,name=Data,json=data,proto3" json:"Data,omitempty"` + Msg string `protobuf:"bytes,1,opt,name=Msg,json=msg,proto3" json:"Msg"` + Data []*ShowRel `protobuf:"bytes,2,rep,name=Data,json=data,proto3" json:"Data"` } func (x *ShowRelListRes) Reset() { *x = ShowRelListRes{} if protoimpl.UnsafeEnabled { - mi := &file_pb_artshow_proto_msgTypes[26] + mi := &file_pb_artshow_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1842,7 +1992,7 @@ func (x *ShowRelListRes) String() string { func (*ShowRelListRes) ProtoMessage() {} func (x *ShowRelListRes) ProtoReflect() protoreflect.Message { - mi := &file_pb_artshow_proto_msgTypes[26] + mi := &file_pb_artshow_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1855,7 +2005,7 @@ func (x *ShowRelListRes) ProtoReflect() protoreflect.Message { // Deprecated: Use ShowRelListRes.ProtoReflect.Descriptor instead. func (*ShowRelListRes) Descriptor() ([]byte, []int) { - return file_pb_artshow_proto_rawDescGZIP(), []int{26} + return file_pb_artshow_proto_rawDescGZIP(), []int{28} } func (x *ShowRelListRes) GetMsg() string { @@ -1877,15 +2027,15 @@ type UpdateApplyStatusReq struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Status int32 `protobuf:"varint,1,opt,name=Status,json=status,proto3" json:"Status,omitempty"` - Remark string `protobuf:"bytes,2,opt,name=Remark,json=remark,proto3" json:"Remark,omitempty"` - ApplyUID string `protobuf:"bytes,3,opt,name=ApplyUID,json=apply_uid,proto3" json:"ApplyUID,omitempty"` + Status int32 `protobuf:"varint,1,opt,name=Status,json=status,proto3" json:"Status"` + Remark string `protobuf:"bytes,2,opt,name=Remark,json=remark,proto3" json:"Remark"` + ApplyUID string `protobuf:"bytes,3,opt,name=ApplyUID,json=apply_uid,proto3" json:"ApplyUID"` } func (x *UpdateApplyStatusReq) Reset() { *x = UpdateApplyStatusReq{} if protoimpl.UnsafeEnabled { - mi := &file_pb_artshow_proto_msgTypes[27] + mi := &file_pb_artshow_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1898,7 +2048,7 @@ func (x *UpdateApplyStatusReq) String() string { func (*UpdateApplyStatusReq) ProtoMessage() {} func (x *UpdateApplyStatusReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_artshow_proto_msgTypes[27] + mi := &file_pb_artshow_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1911,7 +2061,7 @@ func (x *UpdateApplyStatusReq) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateApplyStatusReq.ProtoReflect.Descriptor instead. func (*UpdateApplyStatusReq) Descriptor() ([]byte, []int) { - return file_pb_artshow_proto_rawDescGZIP(), []int{27} + return file_pb_artshow_proto_rawDescGZIP(), []int{29} } func (x *UpdateApplyStatusReq) GetStatus() int32 { @@ -1940,13 +2090,13 @@ type DelApplyReq struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ApplyUID []string `protobuf:"bytes,1,rep,name=ApplyUID,json=apply_uid,proto3" json:"ApplyUID,omitempty"` + ApplyUID []string `protobuf:"bytes,1,rep,name=ApplyUID,json=apply_uid,proto3" json:"ApplyUID"` } func (x *DelApplyReq) Reset() { *x = DelApplyReq{} if protoimpl.UnsafeEnabled { - mi := &file_pb_artshow_proto_msgTypes[28] + mi := &file_pb_artshow_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1959,7 +2109,7 @@ func (x *DelApplyReq) String() string { func (*DelApplyReq) ProtoMessage() {} func (x *DelApplyReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_artshow_proto_msgTypes[28] + mi := &file_pb_artshow_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1972,7 +2122,7 @@ func (x *DelApplyReq) ProtoReflect() protoreflect.Message { // Deprecated: Use DelApplyReq.ProtoReflect.Descriptor instead. func (*DelApplyReq) Descriptor() ([]byte, []int) { - return file_pb_artshow_proto_rawDescGZIP(), []int{28} + return file_pb_artshow_proto_rawDescGZIP(), []int{30} } func (x *DelApplyReq) GetApplyUID() []string { @@ -1987,17 +2137,17 @@ type ShowStatisticalInfoRes_Num struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ArtistNum int64 `protobuf:"varint,1,opt,name=ArtistNum,json=artist_num,proto3" json:"ArtistNum,omitempty"` - PackageNum int64 `protobuf:"varint,2,opt,name=PackageNum,json=package_num,proto3" json:"PackageNum,omitempty"` - TotalNum int64 `protobuf:"varint,3,opt,name=TotalNum,json=total_num,proto3" json:"TotalNum,omitempty"` - NotShowNum int64 `protobuf:"varint,4,opt,name=NotShowNum,json=not_show_num,proto3" json:"NotShowNum,omitempty"` - ShowHisNum int64 `protobuf:"varint,5,opt,name=ShowHisNum,json=show_his_num,proto3" json:"ShowHisNum,omitempty"` + ArtistNum int64 `protobuf:"varint,1,opt,name=ArtistNum,json=artist_num,proto3" json:"ArtistNum"` + PackageNum int64 `protobuf:"varint,2,opt,name=PackageNum,json=package_num,proto3" json:"PackageNum"` + TotalNum int64 `protobuf:"varint,3,opt,name=TotalNum,json=total_num,proto3" json:"TotalNum"` + NotShowNum int64 `protobuf:"varint,4,opt,name=NotShowNum,json=not_show_num,proto3" json:"NotShowNum"` + ShowHisNum int64 `protobuf:"varint,5,opt,name=ShowHisNum,json=show_his_num,proto3" json:"ShowHisNum"` } func (x *ShowStatisticalInfoRes_Num) Reset() { *x = ShowStatisticalInfoRes_Num{} if protoimpl.UnsafeEnabled { - mi := &file_pb_artshow_proto_msgTypes[29] + mi := &file_pb_artshow_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2010,7 +2160,7 @@ func (x *ShowStatisticalInfoRes_Num) String() string { func (*ShowStatisticalInfoRes_Num) ProtoMessage() {} func (x *ShowStatisticalInfoRes_Num) ProtoReflect() protoreflect.Message { - mi := &file_pb_artshow_proto_msgTypes[29] + mi := &file_pb_artshow_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2023,7 +2173,7 @@ func (x *ShowStatisticalInfoRes_Num) ProtoReflect() protoreflect.Message { // Deprecated: Use ShowStatisticalInfoRes_Num.ProtoReflect.Descriptor instead. func (*ShowStatisticalInfoRes_Num) Descriptor() ([]byte, []int) { - return file_pb_artshow_proto_rawDescGZIP(), []int{13, 0} + return file_pb_artshow_proto_rawDescGZIP(), []int{15, 0} } func (x *ShowStatisticalInfoRes_Num) GetArtistNum() int64 { @@ -2066,17 +2216,17 @@ type ArtworkPriceRes_PriceInfo struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Price int64 `protobuf:"varint,1,opt,name=Price,json=price,proto3" json:"Price,omitempty"` - RulerPrice int64 `protobuf:"varint,2,opt,name=RulerPrice,json=ruler_price,proto3" json:"RulerPrice,omitempty"` - ArtworkPrice int64 `protobuf:"varint,3,opt,name=ArtworkPrice,json=artwork_price,proto3" json:"ArtworkPrice,omitempty"` - MarketPrice int64 `protobuf:"varint,4,opt,name=MarketPrice,json=market_price,proto3" json:"MarketPrice,omitempty"` - CopyrightPrice int64 `protobuf:"varint,5,opt,name=CopyrightPrice,json=copyright_price,proto3" json:"CopyrightPrice,omitempty"` + Price int64 `protobuf:"varint,1,opt,name=Price,json=price,proto3" json:"Price"` + RulerPrice int64 `protobuf:"varint,2,opt,name=RulerPrice,json=ruler_price,proto3" json:"RulerPrice"` + ArtworkPrice int64 `protobuf:"varint,3,opt,name=ArtworkPrice,json=artwork_price,proto3" json:"ArtworkPrice"` + MarketPrice int64 `protobuf:"varint,4,opt,name=MarketPrice,json=market_price,proto3" json:"MarketPrice"` + CopyrightPrice int64 `protobuf:"varint,5,opt,name=CopyrightPrice,json=copyright_price,proto3" json:"CopyrightPrice"` } func (x *ArtworkPriceRes_PriceInfo) Reset() { *x = ArtworkPriceRes_PriceInfo{} if protoimpl.UnsafeEnabled { - mi := &file_pb_artshow_proto_msgTypes[30] + mi := &file_pb_artshow_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2089,7 +2239,7 @@ func (x *ArtworkPriceRes_PriceInfo) String() string { func (*ArtworkPriceRes_PriceInfo) ProtoMessage() {} func (x *ArtworkPriceRes_PriceInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_artshow_proto_msgTypes[30] + mi := &file_pb_artshow_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2102,7 +2252,7 @@ func (x *ArtworkPriceRes_PriceInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use ArtworkPriceRes_PriceInfo.ProtoReflect.Descriptor instead. func (*ArtworkPriceRes_PriceInfo) Descriptor() ([]byte, []int) { - return file_pb_artshow_proto_rawDescGZIP(), []int{15, 0} + return file_pb_artshow_proto_rawDescGZIP(), []int{17, 0} } func (x *ArtworkPriceRes_PriceInfo) GetPrice() int64 { @@ -2144,7 +2294,7 @@ var File_pb_artshow_proto protoreflect.FileDescriptor var file_pb_artshow_proto_rawDesc = []byte{ 0x0a, 0x10, 0x70, 0x62, 0x2f, 0x61, 0x72, 0x74, 0x73, 0x68, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x07, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x22, 0x9e, 0x03, 0x0a, 0x0b, + 0x74, 0x6f, 0x12, 0x07, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x22, 0x96, 0x03, 0x0a, 0x0b, 0x53, 0x61, 0x76, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x12, 0x1b, 0x0a, 0x08, 0x53, 0x68, 0x6f, 0x77, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x41, 0x72, 0x74, 0x69, @@ -2159,156 +2309,173 @@ var file_pb_artshow_proto_rawDesc = []byte{ 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x17, 0x0a, 0x06, 0x49, 0x73, 0x53, 0x68, 0x6f, 0x77, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x69, - 0x73, 0x5f, 0x73, 0x68, 0x6f, 0x77, 0x12, 0x1b, 0x0a, 0x08, 0x53, 0x68, 0x6f, 0x77, 0x54, 0x69, - 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x74, - 0x69, 0x6d, 0x65, 0x12, 0x13, 0x0a, 0x07, 0x53, 0x68, 0x6f, 0x77, 0x55, 0x49, 0x44, 0x18, 0x0a, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3d, 0x0a, 0x0b, 0x53, 0x68, 0x6f, 0x77, - 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, 0x68, 0x6f, 0x77, 0x41, 0x72, 0x74, 0x77, - 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x0c, 0x73, 0x68, 0x6f, 0x77, 0x5f, - 0x61, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x43, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x53, 0x68, - 0x6f, 0x77, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x44, 0x65, 0x6c, 0x41, 0x72, 0x74, - 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x10, 0x64, 0x65, 0x6c, 0x5f, - 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x61, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x22, 0x3a, 0x0a, 0x0b, - 0x53, 0x61, 0x76, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x52, 0x65, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x4d, - 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x19, 0x0a, - 0x07, 0x53, 0x68, 0x6f, 0x77, 0x55, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x75, 0x69, 0x64, 0x22, 0x1d, 0x0a, 0x09, 0x43, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x2a, 0x0a, 0x0d, 0x53, 0x68, 0x6f, 0x77, 0x44, - 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x12, 0x19, 0x0a, 0x07, 0x53, 0x68, 0x6f, 0x77, - 0x55, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x68, 0x6f, 0x77, 0x5f, - 0x75, 0x69, 0x64, 0x22, 0xba, 0x02, 0x0a, 0x0a, 0x53, 0x68, 0x6f, 0x77, 0x44, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x12, 0x19, 0x0a, 0x07, 0x53, 0x68, 0x6f, 0x77, 0x55, 0x49, 0x44, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x75, 0x69, 0x64, 0x12, 0x19, 0x0a, - 0x07, 0x53, 0x68, 0x6f, 0x77, 0x53, 0x65, 0x71, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x73, 0x65, 0x71, 0x12, 0x1b, 0x0a, 0x08, 0x53, 0x68, 0x6f, 0x77, - 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x68, 0x6f, 0x77, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x4e, - 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x73, - 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, - 0x55, 0x49, 0x44, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x73, - 0x74, 0x5f, 0x75, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x0a, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, - 0x4e, 0x75, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x5f, 0x6e, 0x75, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x52, 0x75, 0x6c, 0x65, 0x72, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, - 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x70, 0x72, 0x69, - 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x09, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x06, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x1b, 0x0a, 0x08, 0x53, 0x68, - 0x6f, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x68, - 0x6f, 0x77, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x06, 0x49, 0x73, 0x53, 0x68, 0x6f, - 0x77, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x69, 0x73, 0x5f, 0x73, 0x68, 0x6f, 0x77, - 0x22, 0x4a, 0x0a, 0x0d, 0x53, 0x68, 0x6f, 0x77, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, - 0x73, 0x12, 0x27, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x13, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, 0x68, 0x6f, 0x77, 0x44, 0x65, - 0x74, 0x61, 0x69, 0x6c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, - 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x58, 0x0a, 0x14, - 0x53, 0x68, 0x6f, 0x77, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x52, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, 0x68, 0x6f, - 0x77, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x04, - 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0xb0, 0x01, 0x0a, 0x0b, 0x53, 0x68, 0x6f, 0x77, 0x4c, - 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x50, 0x61, 0x67, 0x65, 0x18, 0x01, + 0x73, 0x5f, 0x73, 0x68, 0x6f, 0x77, 0x12, 0x1f, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x54, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x13, 0x0a, 0x07, 0x53, 0x68, 0x6f, 0x77, 0x55, + 0x49, 0x44, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x35, 0x0a, 0x07, + 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, + 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x44, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x0c, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x61, 0x72, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x12, 0x3f, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, + 0x77, 0x2e, 0x44, 0x65, 0x6c, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x52, 0x10, 0x64, 0x65, 0x6c, 0x5f, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x61, 0x72, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x22, 0x3a, 0x0a, 0x0b, 0x53, 0x61, 0x76, 0x65, 0x53, 0x68, 0x6f, 0x77, + 0x52, 0x65, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x19, 0x0a, 0x07, 0x53, 0x68, 0x6f, 0x77, 0x55, 0x49, 0x44, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x75, 0x69, 0x64, + 0x22, 0x1d, 0x0a, 0x09, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x12, 0x10, 0x0a, + 0x03, 0x4d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, + 0x2a, 0x0a, 0x0d, 0x53, 0x68, 0x6f, 0x77, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, + 0x12, 0x19, 0x0a, 0x07, 0x53, 0x68, 0x6f, 0x77, 0x55, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x75, 0x69, 0x64, 0x22, 0xf5, 0x02, 0x0a, 0x0a, + 0x53, 0x68, 0x6f, 0x77, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x19, 0x0a, 0x07, 0x53, 0x68, + 0x6f, 0x77, 0x55, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x68, 0x6f, + 0x77, 0x5f, 0x75, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x07, 0x53, 0x68, 0x6f, 0x77, 0x53, 0x65, 0x71, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x73, 0x65, 0x71, + 0x12, 0x1b, 0x0a, 0x08, 0x53, 0x68, 0x6f, 0x77, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, + 0x0a, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, + 0x0a, 0x09, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x55, 0x49, 0x44, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x5f, 0x75, 0x69, 0x64, 0x12, 0x1f, 0x0a, + 0x0a, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4e, 0x75, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6e, 0x75, 0x6d, 0x12, 0x14, + 0x0a, 0x05, 0x52, 0x75, 0x6c, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x72, + 0x75, 0x6c, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65, + 0x77, 0x61, 0x72, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x72, 0x65, 0x77, 0x61, + 0x72, 0x64, 0x12, 0x1f, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x06, 0x49, 0x73, 0x53, 0x68, 0x6f, 0x77, 0x18, 0x0b, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x07, 0x69, 0x73, 0x5f, 0x73, 0x68, 0x6f, 0x77, 0x12, 0x1b, 0x0a, 0x08, + 0x53, 0x68, 0x6f, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x22, 0x4a, 0x0a, 0x0d, 0x53, 0x68, 0x6f, 0x77, 0x44, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x52, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, 0x68, 0x6f, + 0x77, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, + 0x03, 0x4d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, + 0x54, 0x0a, 0x14, 0x53, 0x68, 0x6f, 0x77, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x12, 0x2a, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, + 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x04, 0x64, + 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0xa5, 0x01, 0x0a, 0x0b, 0x53, 0x68, 0x6f, 0x77, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x50, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x1b, 0x0a, 0x08, 0x50, 0x61, 0x67, + 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x61, 0x67, + 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, + 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x07, 0x45, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x06, 0x49, 0x73, 0x53, 0x68, 0x6f, 0x77, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x69, 0x73, 0x5f, 0x73, 0x68, 0x6f, 0x77, 0x22, 0x67, 0x0a, + 0x15, 0x53, 0x68, 0x6f, 0x77, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x6f, 0x72, 0x41, 0x72, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x50, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x1b, 0x0a, 0x08, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x61, - 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x53, 0x74, 0x61, 0x72, 0x74, - 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, - 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x07, 0x45, 0x6e, 0x64, 0x54, 0x69, 0x6d, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, - 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x55, 0x49, 0x44, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x5f, 0x75, 0x69, 0x64, - 0x12, 0x17, 0x0a, 0x06, 0x49, 0x73, 0x53, 0x68, 0x6f, 0x77, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x07, 0x69, 0x73, 0x5f, 0x73, 0x68, 0x6f, 0x77, 0x22, 0xb4, 0x01, 0x0a, 0x0b, 0x53, 0x68, - 0x6f, 0x77, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x6f, 0x74, - 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, - 0x2a, 0x0a, 0x0f, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x4e, - 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, - 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x12, 0x28, 0x0a, 0x0e, 0x54, - 0x6f, 0x74, 0x61, 0x6c, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x4e, 0x75, 0x6d, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x10, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x72, 0x74, 0x69, 0x73, - 0x74, 0x5f, 0x6e, 0x75, 0x6d, 0x12, 0x27, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, 0x68, - 0x6f, 0x77, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, - 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, - 0x22, 0x27, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x53, 0x68, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x12, 0x19, - 0x0a, 0x07, 0x53, 0x68, 0x6f, 0x77, 0x55, 0x49, 0x44, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x08, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x75, 0x69, 0x64, 0x22, 0xa0, 0x02, 0x0a, 0x11, 0x53, 0x68, - 0x6f, 0x77, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, - 0x2a, 0x0a, 0x0f, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x72, 0x69, 0x63, 0x65, 0x55, - 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x61, 0x72, 0x74, 0x77, 0x6f, 0x72, - 0x6b, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x5f, 0x75, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x07, 0x53, - 0x68, 0x6f, 0x77, 0x55, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x68, - 0x6f, 0x77, 0x5f, 0x75, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x0a, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, - 0x6b, 0x55, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x77, - 0x6f, 0x72, 0x6b, 0x5f, 0x75, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0b, 0x41, 0x72, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x72, - 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x41, 0x72, - 0x74, 0x69, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x4c, - 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6c, 0x65, 0x6e, - 0x67, 0x74, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x57, 0x69, 0x64, 0x74, 0x68, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x52, 0x75, 0x6c, - 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x72, 0x12, - 0x1b, 0x0a, 0x08, 0x53, 0x6d, 0x61, 0x6c, 0x6c, 0x50, 0x69, 0x63, 0x18, 0x09, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x73, 0x6d, 0x61, 0x6c, 0x6c, 0x5f, 0x70, 0x69, 0x63, 0x22, 0x5f, 0x0a, 0x10, - 0x44, 0x65, 0x6c, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, - 0x12, 0x2a, 0x0a, 0x0f, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x72, 0x69, 0x63, 0x65, - 0x55, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x61, 0x72, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x5f, 0x75, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x0a, - 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x55, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x61, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x75, 0x69, 0x64, 0x22, 0x31, 0x0a, - 0x16, 0x53, 0x68, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x61, 0x6c, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x17, 0x0a, 0x06, 0x49, 0x73, 0x53, 0x68, 0x6f, - 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x69, 0x73, 0x5f, 0x73, 0x68, 0x6f, 0x77, - 0x22, 0x8c, 0x02, 0x0a, 0x16, 0x53, 0x68, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, - 0x69, 0x63, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x04, 0x44, - 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x41, 0x72, 0x74, 0x53, - 0x68, 0x6f, 0x77, 0x2e, 0x53, 0x68, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, - 0x63, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x2e, 0x4e, 0x75, 0x6d, 0x52, 0x04, - 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x1a, 0xa6, 0x01, 0x0a, 0x03, 0x4e, 0x75, 0x6d, 0x12, 0x1d, - 0x0a, 0x09, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x4e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x5f, 0x6e, 0x75, 0x6d, 0x12, 0x1f, 0x0a, - 0x0a, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x12, 0x1b, - 0x0a, 0x08, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6e, 0x75, 0x6d, 0x12, 0x20, 0x0a, 0x0a, 0x4e, - 0x6f, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x4e, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x0c, 0x6e, 0x6f, 0x74, 0x5f, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x6e, 0x75, 0x6d, 0x12, 0x20, 0x0a, - 0x0a, 0x53, 0x68, 0x6f, 0x77, 0x48, 0x69, 0x73, 0x4e, 0x75, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x0c, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x68, 0x69, 0x73, 0x5f, 0x6e, 0x75, 0x6d, 0x22, - 0x32, 0x0a, 0x0f, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, - 0x65, 0x71, 0x12, 0x1f, 0x0a, 0x0a, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x55, 0x49, 0x44, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, - 0x75, 0x69, 0x64, 0x22, 0x91, 0x02, 0x0a, 0x0f, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, - 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, - 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x2e, - 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, - 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, - 0x67, 0x1a, 0xb3, 0x01, 0x0a, 0x09, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, - 0x14, 0x0a, 0x05, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, - 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x52, 0x75, 0x6c, 0x65, 0x72, 0x50, 0x72, - 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x72, 0x75, 0x6c, 0x65, 0x72, - 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, - 0x6b, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x61, 0x72, - 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x4d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x0c, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x27, - 0x0a, 0x0e, 0x43, 0x6f, 0x70, 0x79, 0x72, 0x69, 0x67, 0x68, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x63, 0x6f, 0x70, 0x79, 0x72, 0x69, 0x67, 0x68, - 0x74, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0x93, 0x01, 0x0a, 0x07, 0x53, 0x68, 0x6f, 0x77, - 0x52, 0x65, 0x6c, 0x12, 0x20, 0x0a, 0x0a, 0x53, 0x68, 0x6f, 0x77, 0x52, 0x65, 0x6c, 0x55, 0x49, - 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x72, 0x65, - 0x6c, 0x5f, 0x75, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x08, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x55, 0x49, - 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x5f, 0x75, - 0x69, 0x64, 0x12, 0x19, 0x0a, 0x07, 0x53, 0x68, 0x6f, 0x77, 0x55, 0x49, 0x44, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, - 0x05, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x69, 0x6e, - 0x64, 0x65, 0x78, 0x12, 0x18, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x49, 0x0a, + 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x41, 0x72, 0x74, 0x69, 0x73, + 0x74, 0x55, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, + 0x73, 0x74, 0x5f, 0x75, 0x69, 0x64, 0x22, 0xb4, 0x01, 0x0a, 0x0b, 0x53, 0x68, 0x6f, 0x77, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x2a, 0x0a, 0x0f, + 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x70, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x12, 0x28, 0x0a, 0x0e, 0x54, 0x6f, 0x74, 0x61, + 0x6c, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x4e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x10, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x5f, 0x6e, + 0x75, 0x6d, 0x12, 0x27, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x13, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, 0x68, 0x6f, 0x77, 0x44, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x4d, + 0x73, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x68, 0x0a, + 0x15, 0x53, 0x68, 0x6f, 0x77, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x6f, 0x72, 0x41, 0x72, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x10, 0x0a, 0x03, + 0x4d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x27, + 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x41, + 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, 0x68, 0x6f, 0x77, 0x44, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x27, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x53, 0x68, + 0x6f, 0x77, 0x52, 0x65, 0x71, 0x12, 0x19, 0x0a, 0x07, 0x53, 0x68, 0x6f, 0x77, 0x55, 0x49, 0x44, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x75, 0x69, 0x64, + 0x22, 0x9c, 0x02, 0x0a, 0x0d, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x12, 0x2a, 0x0a, 0x0f, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x72, 0x69, + 0x63, 0x65, 0x55, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x61, 0x72, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x5f, 0x75, 0x69, 0x64, 0x12, 0x19, + 0x0a, 0x07, 0x53, 0x68, 0x6f, 0x77, 0x55, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x75, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x0a, 0x41, 0x72, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x55, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, + 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x75, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0b, 0x41, 0x72, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x61, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, + 0x0a, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, + 0x0a, 0x06, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, + 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x57, 0x69, 0x64, 0x74, 0x68, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x12, 0x14, 0x0a, 0x05, + 0x52, 0x75, 0x6c, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x72, 0x75, 0x6c, + 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x08, 0x53, 0x6d, 0x61, 0x6c, 0x6c, 0x50, 0x69, 0x63, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x6d, 0x61, 0x6c, 0x6c, 0x5f, 0x70, 0x69, 0x63, 0x22, + 0x5f, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x74, + 0x61, 0x69, 0x6c, 0x12, 0x2a, 0x0a, 0x0f, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x72, + 0x69, 0x63, 0x65, 0x55, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x61, 0x72, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x5f, 0x75, 0x69, 0x64, 0x12, + 0x1f, 0x0a, 0x0a, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x55, 0x49, 0x44, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x75, 0x69, 0x64, + 0x22, 0x31, 0x0a, 0x16, 0x53, 0x68, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, + 0x63, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x17, 0x0a, 0x06, 0x49, 0x73, + 0x53, 0x68, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x69, 0x73, 0x5f, 0x73, + 0x68, 0x6f, 0x77, 0x22, 0x8c, 0x02, 0x0a, 0x16, 0x53, 0x68, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, + 0x69, 0x73, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x12, 0x37, + 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x41, + 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, 0x68, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x69, + 0x73, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x2e, 0x4e, 0x75, + 0x6d, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x1a, 0xa6, 0x01, 0x0a, 0x03, 0x4e, 0x75, + 0x6d, 0x12, 0x1d, 0x0a, 0x09, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x4e, 0x75, 0x6d, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x5f, 0x6e, 0x75, 0x6d, + 0x12, 0x1f, 0x0a, 0x0a, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, + 0x6d, 0x12, 0x1b, 0x0a, 0x08, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4e, 0x75, 0x6d, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6e, 0x75, 0x6d, 0x12, 0x20, + 0x0a, 0x0a, 0x4e, 0x6f, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x4e, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0c, 0x6e, 0x6f, 0x74, 0x5f, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x6e, 0x75, 0x6d, + 0x12, 0x20, 0x0a, 0x0a, 0x53, 0x68, 0x6f, 0x77, 0x48, 0x69, 0x73, 0x4e, 0x75, 0x6d, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x68, 0x69, 0x73, 0x5f, 0x6e, + 0x75, 0x6d, 0x22, 0x32, 0x0a, 0x0f, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x72, 0x69, + 0x63, 0x65, 0x52, 0x65, 0x71, 0x12, 0x1f, 0x0a, 0x0a, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x55, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x5f, 0x75, 0x69, 0x64, 0x22, 0x91, 0x02, 0x0a, 0x0f, 0x41, 0x72, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x04, 0x44, 0x61, + 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, + 0x6f, 0x77, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, + 0x65, 0x73, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x64, 0x61, + 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6d, 0x73, 0x67, 0x1a, 0xb3, 0x01, 0x0a, 0x09, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x6e, + 0x66, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x52, 0x75, 0x6c, 0x65, + 0x72, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x72, 0x75, + 0x6c, 0x65, 0x72, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x41, 0x72, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0d, 0x61, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x21, + 0x0a, 0x0b, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x69, 0x63, + 0x65, 0x12, 0x27, 0x0a, 0x0e, 0x43, 0x6f, 0x70, 0x79, 0x72, 0x69, 0x67, 0x68, 0x74, 0x50, 0x72, + 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x63, 0x6f, 0x70, 0x79, 0x72, + 0x69, 0x67, 0x68, 0x74, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0xb0, 0x01, 0x0a, 0x07, 0x53, + 0x68, 0x6f, 0x77, 0x52, 0x65, 0x6c, 0x12, 0x20, 0x0a, 0x0a, 0x53, 0x68, 0x6f, 0x77, 0x52, 0x65, + 0x6c, 0x55, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x68, 0x6f, 0x77, + 0x5f, 0x72, 0x65, 0x6c, 0x5f, 0x75, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x08, 0x41, 0x70, 0x70, 0x6c, + 0x79, 0x55, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x70, 0x70, 0x6c, + 0x79, 0x5f, 0x75, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x07, 0x53, 0x68, 0x6f, 0x77, 0x55, 0x49, 0x44, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x75, 0x69, 0x64, + 0x12, 0x14, 0x0a, 0x05, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x18, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x12, 0x1b, 0x0a, 0x08, 0x53, 0x68, 0x6f, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x49, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x53, 0x68, 0x6f, 0x77, 0x52, 0x65, 0x6c, 0x12, 0x20, 0x0a, 0x0a, 0x53, 0x68, 0x6f, 0x77, 0x52, 0x65, 0x6c, 0x55, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x72, 0x65, 0x6c, 0x5f, 0x75, 0x69, 0x64, 0x12, 0x19, 0x0a, @@ -2388,8 +2555,8 @@ var file_pb_artshow_proto_rawDesc = []byte{ 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x5f, 0x75, 0x69, 0x64, 0x22, 0x2a, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x12, 0x1b, 0x0a, 0x08, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x55, 0x49, 0x44, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x09, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x5f, 0x75, 0x69, 0x64, 0x32, 0xdd, - 0x07, 0x0a, 0x07, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x12, 0x3a, 0x0a, 0x0a, 0x43, 0x72, + 0x03, 0x28, 0x09, 0x52, 0x09, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x5f, 0x75, 0x69, 0x64, 0x32, 0xb5, + 0x08, 0x0a, 0x07, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x12, 0x3a, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x12, 0x14, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, 0x61, 0x76, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, 0x61, 0x76, 0x65, 0x53, 0x68, 0x6f, @@ -2404,55 +2571,61 @@ var file_pb_artshow_proto_rawDesc = []byte{ 0x4c, 0x69, 0x73, 0x74, 0x12, 0x14, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, 0x68, 0x6f, 0x77, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, 0x68, 0x6f, 0x77, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, - 0x22, 0x00, 0x12, 0x4a, 0x0a, 0x0f, 0x53, 0x68, 0x6f, 0x77, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, - 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, - 0x53, 0x68, 0x6f, 0x77, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x1d, 0x2e, - 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, 0x68, 0x6f, 0x77, 0x41, 0x72, 0x74, 0x77, - 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x22, 0x00, 0x12, 0x3e, - 0x0a, 0x0a, 0x53, 0x68, 0x6f, 0x77, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x16, 0x2e, 0x41, + 0x22, 0x00, 0x12, 0x56, 0x0a, 0x12, 0x53, 0x68, 0x6f, 0x77, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x6f, + 0x72, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x1e, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, + 0x6f, 0x77, 0x2e, 0x53, 0x68, 0x6f, 0x77, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x6f, 0x72, 0x41, 0x72, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x1a, 0x1e, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, + 0x6f, 0x77, 0x2e, 0x53, 0x68, 0x6f, 0x77, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x6f, 0x72, 0x41, 0x72, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x73, 0x22, 0x00, 0x12, 0x4a, 0x0a, 0x0f, 0x53, 0x68, + 0x6f, 0x77, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x2e, + 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, 0x68, 0x6f, 0x77, 0x44, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x1d, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, + 0x53, 0x68, 0x6f, 0x77, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x52, 0x65, 0x73, 0x22, 0x00, 0x12, 0x3e, 0x0a, 0x0a, 0x53, 0x68, 0x6f, 0x77, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x12, 0x16, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, + 0x68, 0x6f, 0x77, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, 0x68, 0x6f, 0x77, 0x44, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, - 0x68, 0x6f, 0x77, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x22, 0x00, 0x12, 0x59, - 0x0a, 0x13, 0x53, 0x68, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x61, - 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1f, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, - 0x53, 0x68, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x49, - 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, - 0x2e, 0x53, 0x68, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x61, 0x6c, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x22, 0x00, 0x12, 0x44, 0x0a, 0x0c, 0x41, 0x72, 0x74, - 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x18, 0x2e, 0x41, 0x72, 0x74, 0x53, - 0x68, 0x6f, 0x77, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x72, 0x69, 0x63, 0x65, - 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x41, 0x72, - 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x22, 0x00, 0x12, - 0x3d, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x15, - 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, 0x61, 0x76, 0x65, 0x41, 0x70, 0x70, - 0x6c, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, - 0x53, 0x61, 0x76, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x22, 0x00, 0x12, 0x3d, - 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x15, 0x2e, + 0x6c, 0x52, 0x65, 0x73, 0x22, 0x00, 0x12, 0x59, 0x0a, 0x13, 0x53, 0x68, 0x6f, 0x77, 0x53, 0x74, + 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1f, 0x2e, + 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, 0x68, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, + 0x69, 0x73, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x1f, + 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, 0x68, 0x6f, 0x77, 0x53, 0x74, 0x61, + 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x22, + 0x00, 0x12, 0x44, 0x0a, 0x0c, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x72, 0x69, 0x63, + 0x65, 0x12, 0x18, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x41, 0x72, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x41, 0x72, + 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x72, 0x69, + 0x63, 0x65, 0x52, 0x65, 0x73, 0x22, 0x00, 0x12, 0x3d, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x15, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, + 0x2e, 0x53, 0x61, 0x76, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, 0x61, 0x76, 0x65, 0x41, 0x70, 0x70, 0x6c, - 0x79, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, - 0x61, 0x76, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x22, 0x00, 0x12, 0x36, 0x0a, - 0x08, 0x44, 0x65, 0x6c, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x14, 0x2e, 0x41, 0x72, 0x74, 0x53, - 0x68, 0x6f, 0x77, 0x2e, 0x44, 0x65, 0x6c, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x1a, - 0x12, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, - 0x52, 0x65, 0x73, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x11, 0x53, 0x68, 0x6f, 0x77, 0x4c, 0x69, 0x73, - 0x74, 0x57, 0x69, 0x74, 0x68, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x14, 0x2e, 0x41, 0x72, 0x74, - 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, 0x68, 0x6f, 0x77, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, - 0x1a, 0x14, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, 0x68, 0x6f, 0x77, 0x4c, - 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x2e, - 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x70, - 0x70, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x41, - 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x09, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12, - 0x15, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x4c, - 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, - 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x22, 0x00, 0x12, - 0x3d, 0x0a, 0x0b, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x15, - 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x68, - 0x6f, 0x77, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, - 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x68, 0x6f, 0x77, 0x52, 0x65, 0x73, 0x22, 0x00, 0x42, 0x13, - 0x5a, 0x11, 0x2e, 0x2f, 0x61, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x3b, 0x61, 0x72, 0x74, 0x53, - 0x68, 0x6f, 0x77, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x79, 0x52, 0x65, 0x73, 0x22, 0x00, 0x12, 0x3d, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x41, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x15, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, + 0x53, 0x61, 0x76, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x41, + 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, 0x61, 0x76, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x79, + 0x52, 0x65, 0x73, 0x22, 0x00, 0x12, 0x36, 0x0a, 0x08, 0x44, 0x65, 0x6c, 0x41, 0x70, 0x70, 0x6c, + 0x79, 0x12, 0x14, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x44, 0x65, 0x6c, 0x41, + 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, + 0x77, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x22, 0x00, 0x12, 0x41, 0x0a, + 0x11, 0x53, 0x68, 0x6f, 0x77, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x41, 0x70, 0x70, + 0x6c, 0x79, 0x12, 0x14, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x53, 0x68, 0x6f, + 0x77, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, + 0x6f, 0x77, 0x2e, 0x53, 0x68, 0x6f, 0x77, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x22, 0x00, + 0x12, 0x48, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x43, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x09, 0x41, 0x70, + 0x70, 0x6c, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x15, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, + 0x77, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x15, + 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x65, 0x73, 0x22, 0x00, 0x12, 0x3d, 0x0a, 0x0b, 0x41, 0x70, 0x70, 0x6c, 0x79, + 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x15, 0x2e, 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, + 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x68, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, + 0x41, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x68, 0x6f, + 0x77, 0x52, 0x65, 0x73, 0x22, 0x00, 0x42, 0x13, 0x5a, 0x11, 0x2e, 0x2f, 0x61, 0x72, 0x74, 0x53, + 0x68, 0x6f, 0x77, 0x3b, 0x61, 0x72, 0x74, 0x53, 0x68, 0x6f, 0x77, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( @@ -2467,7 +2640,7 @@ func file_pb_artshow_proto_rawDescGZIP() []byte { return file_pb_artshow_proto_rawDescData } -var file_pb_artshow_proto_msgTypes = make([]protoimpl.MessageInfo, 31) +var file_pb_artshow_proto_msgTypes = make([]protoimpl.MessageInfo, 33) var file_pb_artshow_proto_goTypes = []interface{}{ (*SaveShowReq)(nil), // 0: ArtShow.SaveShowReq (*SaveShowRes)(nil), // 1: ArtShow.SaveShowRes @@ -2477,79 +2650,84 @@ var file_pb_artshow_proto_goTypes = []interface{}{ (*ShowDetailRes)(nil), // 5: ArtShow.ShowDetailRes (*ShowArtworkDetailRes)(nil), // 6: ArtShow.ShowArtworkDetailRes (*ShowListReq)(nil), // 7: ArtShow.ShowListReq - (*ShowListRes)(nil), // 8: ArtShow.ShowListRes - (*DelShowReq)(nil), // 9: ArtShow.DelShowReq - (*ShowArtworkDetail)(nil), // 10: ArtShow.ShowArtworkDetail - (*DelArtworkDetail)(nil), // 11: ArtShow.DelArtworkDetail - (*ShowStatisticalInfoReq)(nil), // 12: ArtShow.ShowStatisticalInfoReq - (*ShowStatisticalInfoRes)(nil), // 13: ArtShow.ShowStatisticalInfoRes - (*ArtworkPriceReq)(nil), // 14: ArtShow.ArtworkPriceReq - (*ArtworkPriceRes)(nil), // 15: ArtShow.ArtworkPriceRes - (*ShowRel)(nil), // 16: ArtShow.ShowRel - (*DelShowRel)(nil), // 17: ArtShow.DelShowRel - (*SaveApplyReq)(nil), // 18: ArtShow.SaveApplyReq - (*SaveApplyRes)(nil), // 19: ArtShow.SaveApplyRes - (*ApplyListReq)(nil), // 20: ArtShow.ApplyListReq - (*ApplyListRes)(nil), // 21: ArtShow.ApplyListRes - (*ApplyShowReq)(nil), // 22: ArtShow.ApplyShowReq - (*ApplyShowRes)(nil), // 23: ArtShow.ApplyShowRes - (*ApplyDetail)(nil), // 24: ArtShow.ApplyDetail - (*ShowRelListReq)(nil), // 25: ArtShow.ShowRelListReq - (*ShowRelListRes)(nil), // 26: ArtShow.ShowRelListRes - (*UpdateApplyStatusReq)(nil), // 27: ArtShow.UpdateApplyStatusReq - (*DelApplyReq)(nil), // 28: ArtShow.DelApplyReq - (*ShowStatisticalInfoRes_Num)(nil), // 29: ArtShow.ShowStatisticalInfoRes.Num - (*ArtworkPriceRes_PriceInfo)(nil), // 30: ArtShow.ArtworkPriceRes.PriceInfo + (*ShowListForArtworkReq)(nil), // 8: ArtShow.ShowListForArtworkReq + (*ShowListRes)(nil), // 9: ArtShow.ShowListRes + (*ShowListForArtworkRes)(nil), // 10: ArtShow.ShowListForArtworkRes + (*DelShowReq)(nil), // 11: ArtShow.DelShowReq + (*ArtworkDetail)(nil), // 12: ArtShow.ArtworkDetail + (*DelArtworkDetail)(nil), // 13: ArtShow.DelArtworkDetail + (*ShowStatisticalInfoReq)(nil), // 14: ArtShow.ShowStatisticalInfoReq + (*ShowStatisticalInfoRes)(nil), // 15: ArtShow.ShowStatisticalInfoRes + (*ArtworkPriceReq)(nil), // 16: ArtShow.ArtworkPriceReq + (*ArtworkPriceRes)(nil), // 17: ArtShow.ArtworkPriceRes + (*ShowRel)(nil), // 18: ArtShow.ShowRel + (*DelShowRel)(nil), // 19: ArtShow.DelShowRel + (*SaveApplyReq)(nil), // 20: ArtShow.SaveApplyReq + (*SaveApplyRes)(nil), // 21: ArtShow.SaveApplyRes + (*ApplyListReq)(nil), // 22: ArtShow.ApplyListReq + (*ApplyListRes)(nil), // 23: ArtShow.ApplyListRes + (*ApplyShowReq)(nil), // 24: ArtShow.ApplyShowReq + (*ApplyShowRes)(nil), // 25: ArtShow.ApplyShowRes + (*ApplyDetail)(nil), // 26: ArtShow.ApplyDetail + (*ShowRelListReq)(nil), // 27: ArtShow.ShowRelListReq + (*ShowRelListRes)(nil), // 28: ArtShow.ShowRelListRes + (*UpdateApplyStatusReq)(nil), // 29: ArtShow.UpdateApplyStatusReq + (*DelApplyReq)(nil), // 30: ArtShow.DelApplyReq + (*ShowStatisticalInfoRes_Num)(nil), // 31: ArtShow.ShowStatisticalInfoRes.Num + (*ArtworkPriceRes_PriceInfo)(nil), // 32: ArtShow.ArtworkPriceRes.PriceInfo } var file_pb_artshow_proto_depIdxs = []int32{ - 10, // 0: ArtShow.SaveShowReq.ShowArtwork:type_name -> ArtShow.ShowArtworkDetail - 11, // 1: ArtShow.SaveShowReq.DelShowArtwork:type_name -> ArtShow.DelArtworkDetail + 12, // 0: ArtShow.SaveShowReq.Artwork:type_name -> ArtShow.ArtworkDetail + 13, // 1: ArtShow.SaveShowReq.DelArtwork:type_name -> ArtShow.DelArtworkDetail 4, // 2: ArtShow.ShowDetailRes.Data:type_name -> ArtShow.ShowDetail - 10, // 3: ArtShow.ShowArtworkDetailRes.data:type_name -> ArtShow.ShowArtworkDetail + 12, // 3: ArtShow.ShowArtworkDetailRes.data:type_name -> ArtShow.ArtworkDetail 4, // 4: ArtShow.ShowListRes.Data:type_name -> ArtShow.ShowDetail - 29, // 5: ArtShow.ShowStatisticalInfoRes.Data:type_name -> ArtShow.ShowStatisticalInfoRes.Num - 30, // 6: ArtShow.ArtworkPriceRes.Data:type_name -> ArtShow.ArtworkPriceRes.PriceInfo - 16, // 7: ArtShow.SaveApplyReq.Rel:type_name -> ArtShow.ShowRel - 17, // 8: ArtShow.SaveApplyReq.DelRel:type_name -> ArtShow.DelShowRel - 24, // 9: ArtShow.ApplyListRes.Data:type_name -> ArtShow.ApplyDetail - 24, // 10: ArtShow.ApplyShowRes.Apply:type_name -> ArtShow.ApplyDetail - 4, // 11: ArtShow.ApplyShowRes.Show:type_name -> ArtShow.ShowDetail - 16, // 12: ArtShow.ShowRelListRes.Data:type_name -> ArtShow.ShowRel - 0, // 13: ArtShow.ArtShow.CreateShow:input_type -> ArtShow.SaveShowReq - 0, // 14: ArtShow.ArtShow.UpdateShow:input_type -> ArtShow.SaveShowReq - 9, // 15: ArtShow.ArtShow.DelShow:input_type -> ArtShow.DelShowReq - 7, // 16: ArtShow.ArtShow.ShowList:input_type -> ArtShow.ShowListReq - 3, // 17: ArtShow.ArtShow.ShowArtworkInfo:input_type -> ArtShow.ShowDetailReq - 3, // 18: ArtShow.ArtShow.ShowDetail:input_type -> ArtShow.ShowDetailReq - 12, // 19: ArtShow.ArtShow.ShowStatisticalInfo:input_type -> ArtShow.ShowStatisticalInfoReq - 14, // 20: ArtShow.ArtShow.ArtworkPrice:input_type -> ArtShow.ArtworkPriceReq - 18, // 21: ArtShow.ArtShow.CreateApply:input_type -> ArtShow.SaveApplyReq - 18, // 22: ArtShow.ArtShow.UpdateApply:input_type -> ArtShow.SaveApplyReq - 28, // 23: ArtShow.ArtShow.DelApply:input_type -> ArtShow.DelApplyReq - 7, // 24: ArtShow.ArtShow.ShowListWithApply:input_type -> ArtShow.ShowListReq - 27, // 25: ArtShow.ArtShow.UpdateApplyStatus:input_type -> ArtShow.UpdateApplyStatusReq - 20, // 26: ArtShow.ArtShow.ApplyList:input_type -> ArtShow.ApplyListReq - 22, // 27: ArtShow.ArtShow.ApplyDetail:input_type -> ArtShow.ApplyShowReq - 1, // 28: ArtShow.ArtShow.CreateShow:output_type -> ArtShow.SaveShowRes - 1, // 29: ArtShow.ArtShow.UpdateShow:output_type -> ArtShow.SaveShowRes - 2, // 30: ArtShow.ArtShow.DelShow:output_type -> ArtShow.CommonRes - 8, // 31: ArtShow.ArtShow.ShowList:output_type -> ArtShow.ShowListRes - 6, // 32: ArtShow.ArtShow.ShowArtworkInfo:output_type -> ArtShow.ShowArtworkDetailRes - 5, // 33: ArtShow.ArtShow.ShowDetail:output_type -> ArtShow.ShowDetailRes - 13, // 34: ArtShow.ArtShow.ShowStatisticalInfo:output_type -> ArtShow.ShowStatisticalInfoRes - 15, // 35: ArtShow.ArtShow.ArtworkPrice:output_type -> ArtShow.ArtworkPriceRes - 19, // 36: ArtShow.ArtShow.CreateApply:output_type -> ArtShow.SaveApplyRes - 19, // 37: ArtShow.ArtShow.UpdateApply:output_type -> ArtShow.SaveApplyRes - 2, // 38: ArtShow.ArtShow.DelApply:output_type -> ArtShow.CommonRes - 8, // 39: ArtShow.ArtShow.ShowListWithApply:output_type -> ArtShow.ShowListRes - 2, // 40: ArtShow.ArtShow.UpdateApplyStatus:output_type -> ArtShow.CommonRes - 21, // 41: ArtShow.ArtShow.ApplyList:output_type -> ArtShow.ApplyListRes - 23, // 42: ArtShow.ArtShow.ApplyDetail:output_type -> ArtShow.ApplyShowRes - 28, // [28:43] is the sub-list for method output_type - 13, // [13:28] is the sub-list for method input_type - 13, // [13:13] is the sub-list for extension type_name - 13, // [13:13] is the sub-list for extension extendee - 0, // [0:13] is the sub-list for field type_name + 4, // 5: ArtShow.ShowListForArtworkRes.Data:type_name -> ArtShow.ShowDetail + 31, // 6: ArtShow.ShowStatisticalInfoRes.Data:type_name -> ArtShow.ShowStatisticalInfoRes.Num + 32, // 7: ArtShow.ArtworkPriceRes.Data:type_name -> ArtShow.ArtworkPriceRes.PriceInfo + 18, // 8: ArtShow.SaveApplyReq.Rel:type_name -> ArtShow.ShowRel + 19, // 9: ArtShow.SaveApplyReq.DelRel:type_name -> ArtShow.DelShowRel + 26, // 10: ArtShow.ApplyListRes.Data:type_name -> ArtShow.ApplyDetail + 26, // 11: ArtShow.ApplyShowRes.Apply:type_name -> ArtShow.ApplyDetail + 4, // 12: ArtShow.ApplyShowRes.Show:type_name -> ArtShow.ShowDetail + 18, // 13: ArtShow.ShowRelListRes.Data:type_name -> ArtShow.ShowRel + 0, // 14: ArtShow.ArtShow.CreateShow:input_type -> ArtShow.SaveShowReq + 0, // 15: ArtShow.ArtShow.UpdateShow:input_type -> ArtShow.SaveShowReq + 11, // 16: ArtShow.ArtShow.DelShow:input_type -> ArtShow.DelShowReq + 7, // 17: ArtShow.ArtShow.ShowList:input_type -> ArtShow.ShowListReq + 8, // 18: ArtShow.ArtShow.ShowListForArtwork:input_type -> ArtShow.ShowListForArtworkReq + 3, // 19: ArtShow.ArtShow.ShowArtworkInfo:input_type -> ArtShow.ShowDetailReq + 3, // 20: ArtShow.ArtShow.ShowDetail:input_type -> ArtShow.ShowDetailReq + 14, // 21: ArtShow.ArtShow.ShowStatisticalInfo:input_type -> ArtShow.ShowStatisticalInfoReq + 16, // 22: ArtShow.ArtShow.ArtworkPrice:input_type -> ArtShow.ArtworkPriceReq + 20, // 23: ArtShow.ArtShow.CreateApply:input_type -> ArtShow.SaveApplyReq + 20, // 24: ArtShow.ArtShow.UpdateApply:input_type -> ArtShow.SaveApplyReq + 30, // 25: ArtShow.ArtShow.DelApply:input_type -> ArtShow.DelApplyReq + 7, // 26: ArtShow.ArtShow.ShowListWithApply:input_type -> ArtShow.ShowListReq + 29, // 27: ArtShow.ArtShow.UpdateApplyStatus:input_type -> ArtShow.UpdateApplyStatusReq + 22, // 28: ArtShow.ArtShow.ApplyList:input_type -> ArtShow.ApplyListReq + 24, // 29: ArtShow.ArtShow.ApplyDetail:input_type -> ArtShow.ApplyShowReq + 1, // 30: ArtShow.ArtShow.CreateShow:output_type -> ArtShow.SaveShowRes + 1, // 31: ArtShow.ArtShow.UpdateShow:output_type -> ArtShow.SaveShowRes + 2, // 32: ArtShow.ArtShow.DelShow:output_type -> ArtShow.CommonRes + 9, // 33: ArtShow.ArtShow.ShowList:output_type -> ArtShow.ShowListRes + 10, // 34: ArtShow.ArtShow.ShowListForArtwork:output_type -> ArtShow.ShowListForArtworkRes + 6, // 35: ArtShow.ArtShow.ShowArtworkInfo:output_type -> ArtShow.ShowArtworkDetailRes + 5, // 36: ArtShow.ArtShow.ShowDetail:output_type -> ArtShow.ShowDetailRes + 15, // 37: ArtShow.ArtShow.ShowStatisticalInfo:output_type -> ArtShow.ShowStatisticalInfoRes + 17, // 38: ArtShow.ArtShow.ArtworkPrice:output_type -> ArtShow.ArtworkPriceRes + 21, // 39: ArtShow.ArtShow.CreateApply:output_type -> ArtShow.SaveApplyRes + 21, // 40: ArtShow.ArtShow.UpdateApply:output_type -> ArtShow.SaveApplyRes + 2, // 41: ArtShow.ArtShow.DelApply:output_type -> ArtShow.CommonRes + 9, // 42: ArtShow.ArtShow.ShowListWithApply:output_type -> ArtShow.ShowListRes + 2, // 43: ArtShow.ArtShow.UpdateApplyStatus:output_type -> ArtShow.CommonRes + 23, // 44: ArtShow.ArtShow.ApplyList:output_type -> ArtShow.ApplyListRes + 25, // 45: ArtShow.ArtShow.ApplyDetail:output_type -> ArtShow.ApplyShowRes + 30, // [30:46] is the sub-list for method output_type + 14, // [14:30] is the sub-list for method input_type + 14, // [14:14] is the sub-list for extension type_name + 14, // [14:14] is the sub-list for extension extendee + 0, // [0:14] is the sub-list for field type_name } func init() { file_pb_artshow_proto_init() } @@ -2655,7 +2833,7 @@ func file_pb_artshow_proto_init() { } } file_pb_artshow_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShowListRes); i { + switch v := v.(*ShowListForArtworkReq); i { case 0: return &v.state case 1: @@ -2667,7 +2845,7 @@ func file_pb_artshow_proto_init() { } } file_pb_artshow_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelShowReq); i { + switch v := v.(*ShowListRes); i { case 0: return &v.state case 1: @@ -2679,7 +2857,7 @@ func file_pb_artshow_proto_init() { } } file_pb_artshow_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShowArtworkDetail); i { + switch v := v.(*ShowListForArtworkRes); i { case 0: return &v.state case 1: @@ -2691,7 +2869,7 @@ func file_pb_artshow_proto_init() { } } file_pb_artshow_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelArtworkDetail); i { + switch v := v.(*DelShowReq); i { case 0: return &v.state case 1: @@ -2703,7 +2881,7 @@ func file_pb_artshow_proto_init() { } } file_pb_artshow_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShowStatisticalInfoReq); i { + switch v := v.(*ArtworkDetail); i { case 0: return &v.state case 1: @@ -2715,7 +2893,7 @@ func file_pb_artshow_proto_init() { } } file_pb_artshow_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShowStatisticalInfoRes); i { + switch v := v.(*DelArtworkDetail); i { case 0: return &v.state case 1: @@ -2727,7 +2905,7 @@ func file_pb_artshow_proto_init() { } } file_pb_artshow_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ArtworkPriceReq); i { + switch v := v.(*ShowStatisticalInfoReq); i { case 0: return &v.state case 1: @@ -2739,7 +2917,7 @@ func file_pb_artshow_proto_init() { } } file_pb_artshow_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ArtworkPriceRes); i { + switch v := v.(*ShowStatisticalInfoRes); i { case 0: return &v.state case 1: @@ -2751,7 +2929,7 @@ func file_pb_artshow_proto_init() { } } file_pb_artshow_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShowRel); i { + switch v := v.(*ArtworkPriceReq); i { case 0: return &v.state case 1: @@ -2763,7 +2941,7 @@ func file_pb_artshow_proto_init() { } } file_pb_artshow_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelShowRel); i { + switch v := v.(*ArtworkPriceRes); i { case 0: return &v.state case 1: @@ -2775,7 +2953,7 @@ func file_pb_artshow_proto_init() { } } file_pb_artshow_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SaveApplyReq); i { + switch v := v.(*ShowRel); i { case 0: return &v.state case 1: @@ -2787,7 +2965,7 @@ func file_pb_artshow_proto_init() { } } file_pb_artshow_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SaveApplyRes); i { + switch v := v.(*DelShowRel); i { case 0: return &v.state case 1: @@ -2799,7 +2977,7 @@ func file_pb_artshow_proto_init() { } } file_pb_artshow_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyListReq); i { + switch v := v.(*SaveApplyReq); i { case 0: return &v.state case 1: @@ -2811,7 +2989,7 @@ func file_pb_artshow_proto_init() { } } file_pb_artshow_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyListRes); i { + switch v := v.(*SaveApplyRes); i { case 0: return &v.state case 1: @@ -2823,7 +3001,7 @@ func file_pb_artshow_proto_init() { } } file_pb_artshow_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyShowReq); i { + switch v := v.(*ApplyListReq); i { case 0: return &v.state case 1: @@ -2835,7 +3013,7 @@ func file_pb_artshow_proto_init() { } } file_pb_artshow_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyShowRes); i { + switch v := v.(*ApplyListRes); i { case 0: return &v.state case 1: @@ -2847,7 +3025,7 @@ func file_pb_artshow_proto_init() { } } file_pb_artshow_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyDetail); i { + switch v := v.(*ApplyShowReq); i { case 0: return &v.state case 1: @@ -2859,7 +3037,7 @@ func file_pb_artshow_proto_init() { } } file_pb_artshow_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShowRelListReq); i { + switch v := v.(*ApplyShowRes); i { case 0: return &v.state case 1: @@ -2871,7 +3049,7 @@ func file_pb_artshow_proto_init() { } } file_pb_artshow_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShowRelListRes); i { + switch v := v.(*ApplyDetail); i { case 0: return &v.state case 1: @@ -2883,7 +3061,7 @@ func file_pb_artshow_proto_init() { } } file_pb_artshow_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateApplyStatusReq); i { + switch v := v.(*ShowRelListReq); i { case 0: return &v.state case 1: @@ -2895,7 +3073,7 @@ func file_pb_artshow_proto_init() { } } file_pb_artshow_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelApplyReq); i { + switch v := v.(*ShowRelListRes); i { case 0: return &v.state case 1: @@ -2907,7 +3085,7 @@ func file_pb_artshow_proto_init() { } } file_pb_artshow_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShowStatisticalInfoRes_Num); i { + switch v := v.(*UpdateApplyStatusReq); i { case 0: return &v.state case 1: @@ -2919,6 +3097,30 @@ func file_pb_artshow_proto_init() { } } file_pb_artshow_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DelApplyReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_artshow_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ShowStatisticalInfoRes_Num); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_artshow_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ArtworkPriceRes_PriceInfo); i { case 0: return &v.state @@ -2937,7 +3139,7 @@ func file_pb_artshow_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_pb_artshow_proto_rawDesc, NumEnums: 0, - NumMessages: 31, + NumMessages: 33, NumExtensions: 0, NumServices: 1, }, diff --git a/pb/artShow/artshow.pb.validate.go b/pb/artShow/artshow.pb.validate.go deleted file mode 100644 index 882fc7a..0000000 --- a/pb/artShow/artshow.pb.validate.go +++ /dev/null @@ -1,3750 +0,0 @@ -// Code generated by protoc-gen-validate. DO NOT EDIT. -// source: pb/artshow.proto - -package artShow - -import ( - "bytes" - "errors" - "fmt" - "net" - "net/mail" - "net/url" - "regexp" - "sort" - "strings" - "time" - "unicode/utf8" - - "google.golang.org/protobuf/types/known/anypb" -) - -// ensure the imports are used -var ( - _ = bytes.MinRead - _ = errors.New("") - _ = fmt.Print - _ = utf8.UTFMax - _ = (*regexp.Regexp)(nil) - _ = (*strings.Reader)(nil) - _ = net.IPv4len - _ = time.Duration(0) - _ = (*url.URL)(nil) - _ = (*mail.Address)(nil) - _ = anypb.Any{} - _ = sort.Sort -) - -// Validate checks the field values on SaveShowReq with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *SaveShowReq) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on SaveShowReq with the rules defined in -// the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in SaveShowReqMultiError, or -// nil if none found. -func (m *SaveShowReq) ValidateAll() error { - return m.validate(true) -} - -func (m *SaveShowReq) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for ShowName - - // no validation rules for ArtistName - - // no validation rules for ArtistUID - - // no validation rules for ArtworkNum - - // no validation rules for Ruler - - // no validation rules for Price - - // no validation rules for Reward - - // no validation rules for IsShow - - // no validation rules for ShowTime - - // no validation rules for ShowUID - - for idx, item := range m.GetShowArtwork() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, SaveShowReqValidationError{ - field: fmt.Sprintf("ShowArtwork[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, SaveShowReqValidationError{ - field: fmt.Sprintf("ShowArtwork[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return SaveShowReqValidationError{ - field: fmt.Sprintf("ShowArtwork[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - for idx, item := range m.GetDelShowArtwork() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, SaveShowReqValidationError{ - field: fmt.Sprintf("DelShowArtwork[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, SaveShowReqValidationError{ - field: fmt.Sprintf("DelShowArtwork[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return SaveShowReqValidationError{ - field: fmt.Sprintf("DelShowArtwork[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if len(errors) > 0 { - return SaveShowReqMultiError(errors) - } - - return nil -} - -// SaveShowReqMultiError is an error wrapping multiple validation errors -// returned by SaveShowReq.ValidateAll() if the designated constraints aren't met. -type SaveShowReqMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m SaveShowReqMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m SaveShowReqMultiError) AllErrors() []error { return m } - -// SaveShowReqValidationError is the validation error returned by -// SaveShowReq.Validate if the designated constraints aren't met. -type SaveShowReqValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e SaveShowReqValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e SaveShowReqValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e SaveShowReqValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e SaveShowReqValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e SaveShowReqValidationError) ErrorName() string { return "SaveShowReqValidationError" } - -// Error satisfies the builtin error interface -func (e SaveShowReqValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sSaveShowReq.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = SaveShowReqValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = SaveShowReqValidationError{} - -// Validate checks the field values on SaveShowRes with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *SaveShowRes) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on SaveShowRes with the rules defined in -// the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in SaveShowResMultiError, or -// nil if none found. -func (m *SaveShowRes) ValidateAll() error { - return m.validate(true) -} - -func (m *SaveShowRes) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Msg - - // no validation rules for ShowUID - - if len(errors) > 0 { - return SaveShowResMultiError(errors) - } - - return nil -} - -// SaveShowResMultiError is an error wrapping multiple validation errors -// returned by SaveShowRes.ValidateAll() if the designated constraints aren't met. -type SaveShowResMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m SaveShowResMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m SaveShowResMultiError) AllErrors() []error { return m } - -// SaveShowResValidationError is the validation error returned by -// SaveShowRes.Validate if the designated constraints aren't met. -type SaveShowResValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e SaveShowResValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e SaveShowResValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e SaveShowResValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e SaveShowResValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e SaveShowResValidationError) ErrorName() string { return "SaveShowResValidationError" } - -// Error satisfies the builtin error interface -func (e SaveShowResValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sSaveShowRes.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = SaveShowResValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = SaveShowResValidationError{} - -// Validate checks the field values on CommonRes with the rules defined in the -// proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *CommonRes) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on CommonRes with the rules defined in -// the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in CommonResMultiError, or nil -// if none found. -func (m *CommonRes) ValidateAll() error { - return m.validate(true) -} - -func (m *CommonRes) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Msg - - if len(errors) > 0 { - return CommonResMultiError(errors) - } - - return nil -} - -// CommonResMultiError is an error wrapping multiple validation errors returned -// by CommonRes.ValidateAll() if the designated constraints aren't met. -type CommonResMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m CommonResMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m CommonResMultiError) AllErrors() []error { return m } - -// CommonResValidationError is the validation error returned by -// CommonRes.Validate if the designated constraints aren't met. -type CommonResValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CommonResValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CommonResValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CommonResValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CommonResValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CommonResValidationError) ErrorName() string { return "CommonResValidationError" } - -// Error satisfies the builtin error interface -func (e CommonResValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sCommonRes.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CommonResValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CommonResValidationError{} - -// Validate checks the field values on ShowDetailReq with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *ShowDetailReq) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ShowDetailReq with the rules defined -// in the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in ShowDetailReqMultiError, or -// nil if none found. -func (m *ShowDetailReq) ValidateAll() error { - return m.validate(true) -} - -func (m *ShowDetailReq) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for ShowUID - - if len(errors) > 0 { - return ShowDetailReqMultiError(errors) - } - - return nil -} - -// ShowDetailReqMultiError is an error wrapping multiple validation errors -// returned by ShowDetailReq.ValidateAll() if the designated constraints -// aren't met. -type ShowDetailReqMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ShowDetailReqMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ShowDetailReqMultiError) AllErrors() []error { return m } - -// ShowDetailReqValidationError is the validation error returned by -// ShowDetailReq.Validate if the designated constraints aren't met. -type ShowDetailReqValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ShowDetailReqValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ShowDetailReqValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ShowDetailReqValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ShowDetailReqValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ShowDetailReqValidationError) ErrorName() string { return "ShowDetailReqValidationError" } - -// Error satisfies the builtin error interface -func (e ShowDetailReqValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sShowDetailReq.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ShowDetailReqValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ShowDetailReqValidationError{} - -// Validate checks the field values on ShowDetail with the rules defined in the -// proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *ShowDetail) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ShowDetail with the rules defined in -// the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in ShowDetailMultiError, or -// nil if none found. -func (m *ShowDetail) ValidateAll() error { - return m.validate(true) -} - -func (m *ShowDetail) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for ShowUID - - // no validation rules for ShowSeq - - // no validation rules for ShowName - - // no validation rules for ArtistName - - // no validation rules for ArtistUID - - // no validation rules for ArtworkNum - - // no validation rules for Ruler - - // no validation rules for Price - - // no validation rules for Reward - - // no validation rules for ShowTime - - // no validation rules for IsShow - - if len(errors) > 0 { - return ShowDetailMultiError(errors) - } - - return nil -} - -// ShowDetailMultiError is an error wrapping multiple validation errors -// returned by ShowDetail.ValidateAll() if the designated constraints aren't met. -type ShowDetailMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ShowDetailMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ShowDetailMultiError) AllErrors() []error { return m } - -// ShowDetailValidationError is the validation error returned by -// ShowDetail.Validate if the designated constraints aren't met. -type ShowDetailValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ShowDetailValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ShowDetailValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ShowDetailValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ShowDetailValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ShowDetailValidationError) ErrorName() string { return "ShowDetailValidationError" } - -// Error satisfies the builtin error interface -func (e ShowDetailValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sShowDetail.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ShowDetailValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ShowDetailValidationError{} - -// Validate checks the field values on ShowDetailRes with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *ShowDetailRes) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ShowDetailRes with the rules defined -// in the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in ShowDetailResMultiError, or -// nil if none found. -func (m *ShowDetailRes) ValidateAll() error { - return m.validate(true) -} - -func (m *ShowDetailRes) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetData()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, ShowDetailResValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, ShowDetailResValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetData()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ShowDetailResValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Msg - - if len(errors) > 0 { - return ShowDetailResMultiError(errors) - } - - return nil -} - -// ShowDetailResMultiError is an error wrapping multiple validation errors -// returned by ShowDetailRes.ValidateAll() if the designated constraints -// aren't met. -type ShowDetailResMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ShowDetailResMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ShowDetailResMultiError) AllErrors() []error { return m } - -// ShowDetailResValidationError is the validation error returned by -// ShowDetailRes.Validate if the designated constraints aren't met. -type ShowDetailResValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ShowDetailResValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ShowDetailResValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ShowDetailResValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ShowDetailResValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ShowDetailResValidationError) ErrorName() string { return "ShowDetailResValidationError" } - -// Error satisfies the builtin error interface -func (e ShowDetailResValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sShowDetailRes.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ShowDetailResValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ShowDetailResValidationError{} - -// Validate checks the field values on ShowArtworkDetailRes with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *ShowArtworkDetailRes) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ShowArtworkDetailRes with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// ShowArtworkDetailResMultiError, or nil if none found. -func (m *ShowArtworkDetailRes) ValidateAll() error { - return m.validate(true) -} - -func (m *ShowArtworkDetailRes) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - for idx, item := range m.GetData() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, ShowArtworkDetailResValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, ShowArtworkDetailResValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ShowArtworkDetailResValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for Msg - - if len(errors) > 0 { - return ShowArtworkDetailResMultiError(errors) - } - - return nil -} - -// ShowArtworkDetailResMultiError is an error wrapping multiple validation -// errors returned by ShowArtworkDetailRes.ValidateAll() if the designated -// constraints aren't met. -type ShowArtworkDetailResMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ShowArtworkDetailResMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ShowArtworkDetailResMultiError) AllErrors() []error { return m } - -// ShowArtworkDetailResValidationError is the validation error returned by -// ShowArtworkDetailRes.Validate if the designated constraints aren't met. -type ShowArtworkDetailResValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ShowArtworkDetailResValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ShowArtworkDetailResValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ShowArtworkDetailResValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ShowArtworkDetailResValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ShowArtworkDetailResValidationError) ErrorName() string { - return "ShowArtworkDetailResValidationError" -} - -// Error satisfies the builtin error interface -func (e ShowArtworkDetailResValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sShowArtworkDetailRes.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ShowArtworkDetailResValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ShowArtworkDetailResValidationError{} - -// Validate checks the field values on ShowListReq with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *ShowListReq) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ShowListReq with the rules defined in -// the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in ShowListReqMultiError, or -// nil if none found. -func (m *ShowListReq) ValidateAll() error { - return m.validate(true) -} - -func (m *ShowListReq) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Page - - // no validation rules for PageSize - - // no validation rules for StartTime - - // no validation rules for EndTime - - // no validation rules for ArtistUID - - // no validation rules for IsShow - - if len(errors) > 0 { - return ShowListReqMultiError(errors) - } - - return nil -} - -// ShowListReqMultiError is an error wrapping multiple validation errors -// returned by ShowListReq.ValidateAll() if the designated constraints aren't met. -type ShowListReqMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ShowListReqMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ShowListReqMultiError) AllErrors() []error { return m } - -// ShowListReqValidationError is the validation error returned by -// ShowListReq.Validate if the designated constraints aren't met. -type ShowListReqValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ShowListReqValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ShowListReqValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ShowListReqValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ShowListReqValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ShowListReqValidationError) ErrorName() string { return "ShowListReqValidationError" } - -// Error satisfies the builtin error interface -func (e ShowListReqValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sShowListReq.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ShowListReqValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ShowListReqValidationError{} - -// Validate checks the field values on ShowListRes with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *ShowListRes) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ShowListRes with the rules defined in -// the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in ShowListResMultiError, or -// nil if none found. -func (m *ShowListRes) ValidateAll() error { - return m.validate(true) -} - -func (m *ShowListRes) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Total - - // no validation rules for TotalPackageNum - - // no validation rules for TotalArtistNum - - for idx, item := range m.GetData() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, ShowListResValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, ShowListResValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ShowListResValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for Msg - - if len(errors) > 0 { - return ShowListResMultiError(errors) - } - - return nil -} - -// ShowListResMultiError is an error wrapping multiple validation errors -// returned by ShowListRes.ValidateAll() if the designated constraints aren't met. -type ShowListResMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ShowListResMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ShowListResMultiError) AllErrors() []error { return m } - -// ShowListResValidationError is the validation error returned by -// ShowListRes.Validate if the designated constraints aren't met. -type ShowListResValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ShowListResValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ShowListResValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ShowListResValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ShowListResValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ShowListResValidationError) ErrorName() string { return "ShowListResValidationError" } - -// Error satisfies the builtin error interface -func (e ShowListResValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sShowListRes.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ShowListResValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ShowListResValidationError{} - -// Validate checks the field values on DelShowReq with the rules defined in the -// proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *DelShowReq) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on DelShowReq with the rules defined in -// the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in DelShowReqMultiError, or -// nil if none found. -func (m *DelShowReq) ValidateAll() error { - return m.validate(true) -} - -func (m *DelShowReq) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if len(errors) > 0 { - return DelShowReqMultiError(errors) - } - - return nil -} - -// DelShowReqMultiError is an error wrapping multiple validation errors -// returned by DelShowReq.ValidateAll() if the designated constraints aren't met. -type DelShowReqMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m DelShowReqMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m DelShowReqMultiError) AllErrors() []error { return m } - -// DelShowReqValidationError is the validation error returned by -// DelShowReq.Validate if the designated constraints aren't met. -type DelShowReqValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DelShowReqValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DelShowReqValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DelShowReqValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DelShowReqValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DelShowReqValidationError) ErrorName() string { return "DelShowReqValidationError" } - -// Error satisfies the builtin error interface -func (e DelShowReqValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDelShowReq.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DelShowReqValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DelShowReqValidationError{} - -// Validate checks the field values on ShowArtworkDetail with the rules defined -// in the proto definition for this message. If any rules are violated, the -// first error encountered is returned, or nil if there are no violations. -func (m *ShowArtworkDetail) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ShowArtworkDetail with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// ShowArtworkDetailMultiError, or nil if none found. -func (m *ShowArtworkDetail) ValidateAll() error { - return m.validate(true) -} - -func (m *ShowArtworkDetail) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for ArtworkPriceUID - - // no validation rules for ShowUID - - // no validation rules for ArtworkUID - - // no validation rules for ArtworkName - - // no validation rules for ArtistName - - // no validation rules for Length - - // no validation rules for Width - - // no validation rules for Ruler - - // no validation rules for SmallPic - - if len(errors) > 0 { - return ShowArtworkDetailMultiError(errors) - } - - return nil -} - -// ShowArtworkDetailMultiError is an error wrapping multiple validation errors -// returned by ShowArtworkDetail.ValidateAll() if the designated constraints -// aren't met. -type ShowArtworkDetailMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ShowArtworkDetailMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ShowArtworkDetailMultiError) AllErrors() []error { return m } - -// ShowArtworkDetailValidationError is the validation error returned by -// ShowArtworkDetail.Validate if the designated constraints aren't met. -type ShowArtworkDetailValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ShowArtworkDetailValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ShowArtworkDetailValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ShowArtworkDetailValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ShowArtworkDetailValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ShowArtworkDetailValidationError) ErrorName() string { - return "ShowArtworkDetailValidationError" -} - -// Error satisfies the builtin error interface -func (e ShowArtworkDetailValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sShowArtworkDetail.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ShowArtworkDetailValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ShowArtworkDetailValidationError{} - -// Validate checks the field values on DelArtworkDetail with the rules defined -// in the proto definition for this message. If any rules are violated, the -// first error encountered is returned, or nil if there are no violations. -func (m *DelArtworkDetail) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on DelArtworkDetail with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// DelArtworkDetailMultiError, or nil if none found. -func (m *DelArtworkDetail) ValidateAll() error { - return m.validate(true) -} - -func (m *DelArtworkDetail) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for ArtworkPriceUID - - // no validation rules for ArtworkUID - - if len(errors) > 0 { - return DelArtworkDetailMultiError(errors) - } - - return nil -} - -// DelArtworkDetailMultiError is an error wrapping multiple validation errors -// returned by DelArtworkDetail.ValidateAll() if the designated constraints -// aren't met. -type DelArtworkDetailMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m DelArtworkDetailMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m DelArtworkDetailMultiError) AllErrors() []error { return m } - -// DelArtworkDetailValidationError is the validation error returned by -// DelArtworkDetail.Validate if the designated constraints aren't met. -type DelArtworkDetailValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DelArtworkDetailValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DelArtworkDetailValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DelArtworkDetailValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DelArtworkDetailValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DelArtworkDetailValidationError) ErrorName() string { return "DelArtworkDetailValidationError" } - -// Error satisfies the builtin error interface -func (e DelArtworkDetailValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDelArtworkDetail.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DelArtworkDetailValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DelArtworkDetailValidationError{} - -// Validate checks the field values on ShowStatisticalInfoReq with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *ShowStatisticalInfoReq) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ShowStatisticalInfoReq with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// ShowStatisticalInfoReqMultiError, or nil if none found. -func (m *ShowStatisticalInfoReq) ValidateAll() error { - return m.validate(true) -} - -func (m *ShowStatisticalInfoReq) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for IsShow - - if len(errors) > 0 { - return ShowStatisticalInfoReqMultiError(errors) - } - - return nil -} - -// ShowStatisticalInfoReqMultiError is an error wrapping multiple validation -// errors returned by ShowStatisticalInfoReq.ValidateAll() if the designated -// constraints aren't met. -type ShowStatisticalInfoReqMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ShowStatisticalInfoReqMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ShowStatisticalInfoReqMultiError) AllErrors() []error { return m } - -// ShowStatisticalInfoReqValidationError is the validation error returned by -// ShowStatisticalInfoReq.Validate if the designated constraints aren't met. -type ShowStatisticalInfoReqValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ShowStatisticalInfoReqValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ShowStatisticalInfoReqValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ShowStatisticalInfoReqValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ShowStatisticalInfoReqValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ShowStatisticalInfoReqValidationError) ErrorName() string { - return "ShowStatisticalInfoReqValidationError" -} - -// Error satisfies the builtin error interface -func (e ShowStatisticalInfoReqValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sShowStatisticalInfoReq.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ShowStatisticalInfoReqValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ShowStatisticalInfoReqValidationError{} - -// Validate checks the field values on ShowStatisticalInfoRes with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *ShowStatisticalInfoRes) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ShowStatisticalInfoRes with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// ShowStatisticalInfoResMultiError, or nil if none found. -func (m *ShowStatisticalInfoRes) ValidateAll() error { - return m.validate(true) -} - -func (m *ShowStatisticalInfoRes) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetData()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, ShowStatisticalInfoResValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, ShowStatisticalInfoResValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetData()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ShowStatisticalInfoResValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Msg - - if len(errors) > 0 { - return ShowStatisticalInfoResMultiError(errors) - } - - return nil -} - -// ShowStatisticalInfoResMultiError is an error wrapping multiple validation -// errors returned by ShowStatisticalInfoRes.ValidateAll() if the designated -// constraints aren't met. -type ShowStatisticalInfoResMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ShowStatisticalInfoResMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ShowStatisticalInfoResMultiError) AllErrors() []error { return m } - -// ShowStatisticalInfoResValidationError is the validation error returned by -// ShowStatisticalInfoRes.Validate if the designated constraints aren't met. -type ShowStatisticalInfoResValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ShowStatisticalInfoResValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ShowStatisticalInfoResValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ShowStatisticalInfoResValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ShowStatisticalInfoResValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ShowStatisticalInfoResValidationError) ErrorName() string { - return "ShowStatisticalInfoResValidationError" -} - -// Error satisfies the builtin error interface -func (e ShowStatisticalInfoResValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sShowStatisticalInfoRes.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ShowStatisticalInfoResValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ShowStatisticalInfoResValidationError{} - -// Validate checks the field values on ArtworkPriceReq with the rules defined -// in the proto definition for this message. If any rules are violated, the -// first error encountered is returned, or nil if there are no violations. -func (m *ArtworkPriceReq) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ArtworkPriceReq with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// ArtworkPriceReqMultiError, or nil if none found. -func (m *ArtworkPriceReq) ValidateAll() error { - return m.validate(true) -} - -func (m *ArtworkPriceReq) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for ArtworkUID - - if len(errors) > 0 { - return ArtworkPriceReqMultiError(errors) - } - - return nil -} - -// ArtworkPriceReqMultiError is an error wrapping multiple validation errors -// returned by ArtworkPriceReq.ValidateAll() if the designated constraints -// aren't met. -type ArtworkPriceReqMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ArtworkPriceReqMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ArtworkPriceReqMultiError) AllErrors() []error { return m } - -// ArtworkPriceReqValidationError is the validation error returned by -// ArtworkPriceReq.Validate if the designated constraints aren't met. -type ArtworkPriceReqValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ArtworkPriceReqValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ArtworkPriceReqValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ArtworkPriceReqValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ArtworkPriceReqValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ArtworkPriceReqValidationError) ErrorName() string { return "ArtworkPriceReqValidationError" } - -// Error satisfies the builtin error interface -func (e ArtworkPriceReqValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sArtworkPriceReq.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ArtworkPriceReqValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ArtworkPriceReqValidationError{} - -// Validate checks the field values on ArtworkPriceRes with the rules defined -// in the proto definition for this message. If any rules are violated, the -// first error encountered is returned, or nil if there are no violations. -func (m *ArtworkPriceRes) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ArtworkPriceRes with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// ArtworkPriceResMultiError, or nil if none found. -func (m *ArtworkPriceRes) ValidateAll() error { - return m.validate(true) -} - -func (m *ArtworkPriceRes) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetData()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, ArtworkPriceResValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, ArtworkPriceResValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetData()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ArtworkPriceResValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Msg - - if len(errors) > 0 { - return ArtworkPriceResMultiError(errors) - } - - return nil -} - -// ArtworkPriceResMultiError is an error wrapping multiple validation errors -// returned by ArtworkPriceRes.ValidateAll() if the designated constraints -// aren't met. -type ArtworkPriceResMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ArtworkPriceResMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ArtworkPriceResMultiError) AllErrors() []error { return m } - -// ArtworkPriceResValidationError is the validation error returned by -// ArtworkPriceRes.Validate if the designated constraints aren't met. -type ArtworkPriceResValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ArtworkPriceResValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ArtworkPriceResValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ArtworkPriceResValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ArtworkPriceResValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ArtworkPriceResValidationError) ErrorName() string { return "ArtworkPriceResValidationError" } - -// Error satisfies the builtin error interface -func (e ArtworkPriceResValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sArtworkPriceRes.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ArtworkPriceResValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ArtworkPriceResValidationError{} - -// Validate checks the field values on ShowRel with the rules defined in the -// proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *ShowRel) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ShowRel with the rules defined in the -// proto definition for this message. If any rules are violated, the result is -// a list of violation errors wrapped in ShowRelMultiError, or nil if none found. -func (m *ShowRel) ValidateAll() error { - return m.validate(true) -} - -func (m *ShowRel) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for ShowRelUID - - // no validation rules for ApplyUID - - // no validation rules for ShowUID - - // no validation rules for Index - - // no validation rules for Address - - if len(errors) > 0 { - return ShowRelMultiError(errors) - } - - return nil -} - -// ShowRelMultiError is an error wrapping multiple validation errors returned -// by ShowRel.ValidateAll() if the designated constraints aren't met. -type ShowRelMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ShowRelMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ShowRelMultiError) AllErrors() []error { return m } - -// ShowRelValidationError is the validation error returned by ShowRel.Validate -// if the designated constraints aren't met. -type ShowRelValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ShowRelValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ShowRelValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ShowRelValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ShowRelValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ShowRelValidationError) ErrorName() string { return "ShowRelValidationError" } - -// Error satisfies the builtin error interface -func (e ShowRelValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sShowRel.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ShowRelValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ShowRelValidationError{} - -// Validate checks the field values on DelShowRel with the rules defined in the -// proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *DelShowRel) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on DelShowRel with the rules defined in -// the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in DelShowRelMultiError, or -// nil if none found. -func (m *DelShowRel) ValidateAll() error { - return m.validate(true) -} - -func (m *DelShowRel) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for ShowRelUID - - // no validation rules for ShowUID - - if len(errors) > 0 { - return DelShowRelMultiError(errors) - } - - return nil -} - -// DelShowRelMultiError is an error wrapping multiple validation errors -// returned by DelShowRel.ValidateAll() if the designated constraints aren't met. -type DelShowRelMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m DelShowRelMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m DelShowRelMultiError) AllErrors() []error { return m } - -// DelShowRelValidationError is the validation error returned by -// DelShowRel.Validate if the designated constraints aren't met. -type DelShowRelValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DelShowRelValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DelShowRelValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DelShowRelValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DelShowRelValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DelShowRelValidationError) ErrorName() string { return "DelShowRelValidationError" } - -// Error satisfies the builtin error interface -func (e DelShowRelValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDelShowRel.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DelShowRelValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DelShowRelValidationError{} - -// Validate checks the field values on SaveApplyReq with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *SaveApplyReq) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on SaveApplyReq with the rules defined -// in the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in SaveApplyReqMultiError, or -// nil if none found. -func (m *SaveApplyReq) ValidateAll() error { - return m.validate(true) -} - -func (m *SaveApplyReq) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Applicant - - // no validation rules for ApplicantID - - // no validation rules for Num - - // no validation rules for ApplyTime - - // no validation rules for ApplyUID - - // no validation rules for Status - - // no validation rules for Remark - - for idx, item := range m.GetRel() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, SaveApplyReqValidationError{ - field: fmt.Sprintf("Rel[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, SaveApplyReqValidationError{ - field: fmt.Sprintf("Rel[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return SaveApplyReqValidationError{ - field: fmt.Sprintf("Rel[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - for idx, item := range m.GetDelRel() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, SaveApplyReqValidationError{ - field: fmt.Sprintf("DelRel[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, SaveApplyReqValidationError{ - field: fmt.Sprintf("DelRel[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return SaveApplyReqValidationError{ - field: fmt.Sprintf("DelRel[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if len(errors) > 0 { - return SaveApplyReqMultiError(errors) - } - - return nil -} - -// SaveApplyReqMultiError is an error wrapping multiple validation errors -// returned by SaveApplyReq.ValidateAll() if the designated constraints aren't met. -type SaveApplyReqMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m SaveApplyReqMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m SaveApplyReqMultiError) AllErrors() []error { return m } - -// SaveApplyReqValidationError is the validation error returned by -// SaveApplyReq.Validate if the designated constraints aren't met. -type SaveApplyReqValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e SaveApplyReqValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e SaveApplyReqValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e SaveApplyReqValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e SaveApplyReqValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e SaveApplyReqValidationError) ErrorName() string { return "SaveApplyReqValidationError" } - -// Error satisfies the builtin error interface -func (e SaveApplyReqValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sSaveApplyReq.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = SaveApplyReqValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = SaveApplyReqValidationError{} - -// Validate checks the field values on SaveApplyRes with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *SaveApplyRes) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on SaveApplyRes with the rules defined -// in the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in SaveApplyResMultiError, or -// nil if none found. -func (m *SaveApplyRes) ValidateAll() error { - return m.validate(true) -} - -func (m *SaveApplyRes) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Msg - - // no validation rules for ApplyUID - - if len(errors) > 0 { - return SaveApplyResMultiError(errors) - } - - return nil -} - -// SaveApplyResMultiError is an error wrapping multiple validation errors -// returned by SaveApplyRes.ValidateAll() if the designated constraints aren't met. -type SaveApplyResMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m SaveApplyResMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m SaveApplyResMultiError) AllErrors() []error { return m } - -// SaveApplyResValidationError is the validation error returned by -// SaveApplyRes.Validate if the designated constraints aren't met. -type SaveApplyResValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e SaveApplyResValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e SaveApplyResValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e SaveApplyResValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e SaveApplyResValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e SaveApplyResValidationError) ErrorName() string { return "SaveApplyResValidationError" } - -// Error satisfies the builtin error interface -func (e SaveApplyResValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sSaveApplyRes.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = SaveApplyResValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = SaveApplyResValidationError{} - -// Validate checks the field values on ApplyListReq with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *ApplyListReq) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ApplyListReq with the rules defined -// in the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in ApplyListReqMultiError, or -// nil if none found. -func (m *ApplyListReq) ValidateAll() error { - return m.validate(true) -} - -func (m *ApplyListReq) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Page - - // no validation rules for PageSize - - // no validation rules for Status - - if len(errors) > 0 { - return ApplyListReqMultiError(errors) - } - - return nil -} - -// ApplyListReqMultiError is an error wrapping multiple validation errors -// returned by ApplyListReq.ValidateAll() if the designated constraints aren't met. -type ApplyListReqMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ApplyListReqMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ApplyListReqMultiError) AllErrors() []error { return m } - -// ApplyListReqValidationError is the validation error returned by -// ApplyListReq.Validate if the designated constraints aren't met. -type ApplyListReqValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ApplyListReqValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ApplyListReqValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ApplyListReqValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ApplyListReqValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ApplyListReqValidationError) ErrorName() string { return "ApplyListReqValidationError" } - -// Error satisfies the builtin error interface -func (e ApplyListReqValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sApplyListReq.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ApplyListReqValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ApplyListReqValidationError{} - -// Validate checks the field values on ApplyListRes with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *ApplyListRes) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ApplyListRes with the rules defined -// in the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in ApplyListResMultiError, or -// nil if none found. -func (m *ApplyListRes) ValidateAll() error { - return m.validate(true) -} - -func (m *ApplyListRes) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Total - - for idx, item := range m.GetData() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, ApplyListResValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, ApplyListResValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ApplyListResValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for Msg - - if len(errors) > 0 { - return ApplyListResMultiError(errors) - } - - return nil -} - -// ApplyListResMultiError is an error wrapping multiple validation errors -// returned by ApplyListRes.ValidateAll() if the designated constraints aren't met. -type ApplyListResMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ApplyListResMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ApplyListResMultiError) AllErrors() []error { return m } - -// ApplyListResValidationError is the validation error returned by -// ApplyListRes.Validate if the designated constraints aren't met. -type ApplyListResValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ApplyListResValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ApplyListResValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ApplyListResValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ApplyListResValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ApplyListResValidationError) ErrorName() string { return "ApplyListResValidationError" } - -// Error satisfies the builtin error interface -func (e ApplyListResValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sApplyListRes.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ApplyListResValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ApplyListResValidationError{} - -// Validate checks the field values on ApplyShowReq with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *ApplyShowReq) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ApplyShowReq with the rules defined -// in the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in ApplyShowReqMultiError, or -// nil if none found. -func (m *ApplyShowReq) ValidateAll() error { - return m.validate(true) -} - -func (m *ApplyShowReq) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for ApplyUID - - if len(errors) > 0 { - return ApplyShowReqMultiError(errors) - } - - return nil -} - -// ApplyShowReqMultiError is an error wrapping multiple validation errors -// returned by ApplyShowReq.ValidateAll() if the designated constraints aren't met. -type ApplyShowReqMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ApplyShowReqMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ApplyShowReqMultiError) AllErrors() []error { return m } - -// ApplyShowReqValidationError is the validation error returned by -// ApplyShowReq.Validate if the designated constraints aren't met. -type ApplyShowReqValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ApplyShowReqValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ApplyShowReqValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ApplyShowReqValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ApplyShowReqValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ApplyShowReqValidationError) ErrorName() string { return "ApplyShowReqValidationError" } - -// Error satisfies the builtin error interface -func (e ApplyShowReqValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sApplyShowReq.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ApplyShowReqValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ApplyShowReqValidationError{} - -// Validate checks the field values on ApplyShowRes with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *ApplyShowRes) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ApplyShowRes with the rules defined -// in the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in ApplyShowResMultiError, or -// nil if none found. -func (m *ApplyShowRes) ValidateAll() error { - return m.validate(true) -} - -func (m *ApplyShowRes) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetApply()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, ApplyShowResValidationError{ - field: "Apply", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, ApplyShowResValidationError{ - field: "Apply", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetApply()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ApplyShowResValidationError{ - field: "Apply", - reason: "embedded message failed validation", - cause: err, - } - } - } - - for idx, item := range m.GetShow() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, ApplyShowResValidationError{ - field: fmt.Sprintf("Show[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, ApplyShowResValidationError{ - field: fmt.Sprintf("Show[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ApplyShowResValidationError{ - field: fmt.Sprintf("Show[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for Msg - - if len(errors) > 0 { - return ApplyShowResMultiError(errors) - } - - return nil -} - -// ApplyShowResMultiError is an error wrapping multiple validation errors -// returned by ApplyShowRes.ValidateAll() if the designated constraints aren't met. -type ApplyShowResMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ApplyShowResMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ApplyShowResMultiError) AllErrors() []error { return m } - -// ApplyShowResValidationError is the validation error returned by -// ApplyShowRes.Validate if the designated constraints aren't met. -type ApplyShowResValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ApplyShowResValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ApplyShowResValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ApplyShowResValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ApplyShowResValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ApplyShowResValidationError) ErrorName() string { return "ApplyShowResValidationError" } - -// Error satisfies the builtin error interface -func (e ApplyShowResValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sApplyShowRes.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ApplyShowResValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ApplyShowResValidationError{} - -// Validate checks the field values on ApplyDetail with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *ApplyDetail) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ApplyDetail with the rules defined in -// the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in ApplyDetailMultiError, or -// nil if none found. -func (m *ApplyDetail) ValidateAll() error { - return m.validate(true) -} - -func (m *ApplyDetail) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for ApplyUID - - // no validation rules for ApplySeq - - // no validation rules for Applicant - - // no validation rules for ApplicantID - - // no validation rules for Num - - // no validation rules for ApplyTime - - // no validation rules for Status - - // no validation rules for Remark - - if len(errors) > 0 { - return ApplyDetailMultiError(errors) - } - - return nil -} - -// ApplyDetailMultiError is an error wrapping multiple validation errors -// returned by ApplyDetail.ValidateAll() if the designated constraints aren't met. -type ApplyDetailMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ApplyDetailMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ApplyDetailMultiError) AllErrors() []error { return m } - -// ApplyDetailValidationError is the validation error returned by -// ApplyDetail.Validate if the designated constraints aren't met. -type ApplyDetailValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ApplyDetailValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ApplyDetailValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ApplyDetailValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ApplyDetailValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ApplyDetailValidationError) ErrorName() string { return "ApplyDetailValidationError" } - -// Error satisfies the builtin error interface -func (e ApplyDetailValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sApplyDetail.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ApplyDetailValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ApplyDetailValidationError{} - -// Validate checks the field values on ShowRelListReq with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *ShowRelListReq) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ShowRelListReq with the rules defined -// in the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in ShowRelListReqMultiError, -// or nil if none found. -func (m *ShowRelListReq) ValidateAll() error { - return m.validate(true) -} - -func (m *ShowRelListReq) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for ApplyUID - - if len(errors) > 0 { - return ShowRelListReqMultiError(errors) - } - - return nil -} - -// ShowRelListReqMultiError is an error wrapping multiple validation errors -// returned by ShowRelListReq.ValidateAll() if the designated constraints -// aren't met. -type ShowRelListReqMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ShowRelListReqMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ShowRelListReqMultiError) AllErrors() []error { return m } - -// ShowRelListReqValidationError is the validation error returned by -// ShowRelListReq.Validate if the designated constraints aren't met. -type ShowRelListReqValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ShowRelListReqValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ShowRelListReqValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ShowRelListReqValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ShowRelListReqValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ShowRelListReqValidationError) ErrorName() string { return "ShowRelListReqValidationError" } - -// Error satisfies the builtin error interface -func (e ShowRelListReqValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sShowRelListReq.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ShowRelListReqValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ShowRelListReqValidationError{} - -// Validate checks the field values on ShowRelListRes with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *ShowRelListRes) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ShowRelListRes with the rules defined -// in the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in ShowRelListResMultiError, -// or nil if none found. -func (m *ShowRelListRes) ValidateAll() error { - return m.validate(true) -} - -func (m *ShowRelListRes) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Msg - - for idx, item := range m.GetData() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, ShowRelListResValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, ShowRelListResValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ShowRelListResValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if len(errors) > 0 { - return ShowRelListResMultiError(errors) - } - - return nil -} - -// ShowRelListResMultiError is an error wrapping multiple validation errors -// returned by ShowRelListRes.ValidateAll() if the designated constraints -// aren't met. -type ShowRelListResMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ShowRelListResMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ShowRelListResMultiError) AllErrors() []error { return m } - -// ShowRelListResValidationError is the validation error returned by -// ShowRelListRes.Validate if the designated constraints aren't met. -type ShowRelListResValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ShowRelListResValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ShowRelListResValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ShowRelListResValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ShowRelListResValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ShowRelListResValidationError) ErrorName() string { return "ShowRelListResValidationError" } - -// Error satisfies the builtin error interface -func (e ShowRelListResValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sShowRelListRes.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ShowRelListResValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ShowRelListResValidationError{} - -// Validate checks the field values on UpdateApplyStatusReq with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *UpdateApplyStatusReq) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on UpdateApplyStatusReq with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// UpdateApplyStatusReqMultiError, or nil if none found. -func (m *UpdateApplyStatusReq) ValidateAll() error { - return m.validate(true) -} - -func (m *UpdateApplyStatusReq) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Status - - // no validation rules for Remark - - // no validation rules for ApplyUID - - if len(errors) > 0 { - return UpdateApplyStatusReqMultiError(errors) - } - - return nil -} - -// UpdateApplyStatusReqMultiError is an error wrapping multiple validation -// errors returned by UpdateApplyStatusReq.ValidateAll() if the designated -// constraints aren't met. -type UpdateApplyStatusReqMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m UpdateApplyStatusReqMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m UpdateApplyStatusReqMultiError) AllErrors() []error { return m } - -// UpdateApplyStatusReqValidationError is the validation error returned by -// UpdateApplyStatusReq.Validate if the designated constraints aren't met. -type UpdateApplyStatusReqValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpdateApplyStatusReqValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpdateApplyStatusReqValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpdateApplyStatusReqValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpdateApplyStatusReqValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpdateApplyStatusReqValidationError) ErrorName() string { - return "UpdateApplyStatusReqValidationError" -} - -// Error satisfies the builtin error interface -func (e UpdateApplyStatusReqValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpdateApplyStatusReq.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpdateApplyStatusReqValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpdateApplyStatusReqValidationError{} - -// Validate checks the field values on DelApplyReq with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *DelApplyReq) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on DelApplyReq with the rules defined in -// the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in DelApplyReqMultiError, or -// nil if none found. -func (m *DelApplyReq) ValidateAll() error { - return m.validate(true) -} - -func (m *DelApplyReq) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if len(errors) > 0 { - return DelApplyReqMultiError(errors) - } - - return nil -} - -// DelApplyReqMultiError is an error wrapping multiple validation errors -// returned by DelApplyReq.ValidateAll() if the designated constraints aren't met. -type DelApplyReqMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m DelApplyReqMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m DelApplyReqMultiError) AllErrors() []error { return m } - -// DelApplyReqValidationError is the validation error returned by -// DelApplyReq.Validate if the designated constraints aren't met. -type DelApplyReqValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DelApplyReqValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DelApplyReqValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DelApplyReqValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DelApplyReqValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DelApplyReqValidationError) ErrorName() string { return "DelApplyReqValidationError" } - -// Error satisfies the builtin error interface -func (e DelApplyReqValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDelApplyReq.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DelApplyReqValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DelApplyReqValidationError{} - -// Validate checks the field values on ShowStatisticalInfoRes_Num with the -// rules defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *ShowStatisticalInfoRes_Num) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ShowStatisticalInfoRes_Num with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// ShowStatisticalInfoRes_NumMultiError, or nil if none found. -func (m *ShowStatisticalInfoRes_Num) ValidateAll() error { - return m.validate(true) -} - -func (m *ShowStatisticalInfoRes_Num) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for ArtistNum - - // no validation rules for PackageNum - - // no validation rules for TotalNum - - // no validation rules for NotShowNum - - // no validation rules for ShowHisNum - - if len(errors) > 0 { - return ShowStatisticalInfoRes_NumMultiError(errors) - } - - return nil -} - -// ShowStatisticalInfoRes_NumMultiError is an error wrapping multiple -// validation errors returned by ShowStatisticalInfoRes_Num.ValidateAll() if -// the designated constraints aren't met. -type ShowStatisticalInfoRes_NumMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ShowStatisticalInfoRes_NumMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ShowStatisticalInfoRes_NumMultiError) AllErrors() []error { return m } - -// ShowStatisticalInfoRes_NumValidationError is the validation error returned -// by ShowStatisticalInfoRes_Num.Validate if the designated constraints aren't met. -type ShowStatisticalInfoRes_NumValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ShowStatisticalInfoRes_NumValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ShowStatisticalInfoRes_NumValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ShowStatisticalInfoRes_NumValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ShowStatisticalInfoRes_NumValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ShowStatisticalInfoRes_NumValidationError) ErrorName() string { - return "ShowStatisticalInfoRes_NumValidationError" -} - -// Error satisfies the builtin error interface -func (e ShowStatisticalInfoRes_NumValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sShowStatisticalInfoRes_Num.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ShowStatisticalInfoRes_NumValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ShowStatisticalInfoRes_NumValidationError{} - -// Validate checks the field values on ArtworkPriceRes_PriceInfo with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *ArtworkPriceRes_PriceInfo) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ArtworkPriceRes_PriceInfo with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// ArtworkPriceRes_PriceInfoMultiError, or nil if none found. -func (m *ArtworkPriceRes_PriceInfo) ValidateAll() error { - return m.validate(true) -} - -func (m *ArtworkPriceRes_PriceInfo) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Price - - // no validation rules for RulerPrice - - // no validation rules for ArtworkPrice - - // no validation rules for MarketPrice - - // no validation rules for CopyrightPrice - - if len(errors) > 0 { - return ArtworkPriceRes_PriceInfoMultiError(errors) - } - - return nil -} - -// ArtworkPriceRes_PriceInfoMultiError is an error wrapping multiple validation -// errors returned by ArtworkPriceRes_PriceInfo.ValidateAll() if the -// designated constraints aren't met. -type ArtworkPriceRes_PriceInfoMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ArtworkPriceRes_PriceInfoMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ArtworkPriceRes_PriceInfoMultiError) AllErrors() []error { return m } - -// ArtworkPriceRes_PriceInfoValidationError is the validation error returned by -// ArtworkPriceRes_PriceInfo.Validate if the designated constraints aren't met. -type ArtworkPriceRes_PriceInfoValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ArtworkPriceRes_PriceInfoValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ArtworkPriceRes_PriceInfoValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ArtworkPriceRes_PriceInfoValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ArtworkPriceRes_PriceInfoValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ArtworkPriceRes_PriceInfoValidationError) ErrorName() string { - return "ArtworkPriceRes_PriceInfoValidationError" -} - -// Error satisfies the builtin error interface -func (e ArtworkPriceRes_PriceInfoValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sArtworkPriceRes_PriceInfo.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ArtworkPriceRes_PriceInfoValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ArtworkPriceRes_PriceInfoValidationError{} diff --git a/pb/artShow/artshow.validator.pb.go b/pb/artShow/artshow.validator.pb.go index 03db267..08d82f3 100644 --- a/pb/artShow/artshow.validator.pb.go +++ b/pb/artShow/artshow.validator.pb.go @@ -16,17 +16,17 @@ var _ = fmt.Errorf var _ = math.Inf func (this *SaveShowReq) Validate() error { - for _, item := range this.ShowArtwork { + for _, item := range this.Artwork { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("ShowArtwork", err) + return github_com_mwitkow_go_proto_validators.FieldError("Artwork", err) } } } - for _, item := range this.DelShowArtwork { + for _, item := range this.DelArtwork { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("DelShowArtwork", err) + return github_com_mwitkow_go_proto_validators.FieldError("DelArtwork", err) } } } @@ -65,6 +65,9 @@ func (this *ShowArtworkDetailRes) Validate() error { func (this *ShowListReq) Validate() error { return nil } +func (this *ShowListForArtworkReq) Validate() error { + return nil +} func (this *ShowListRes) Validate() error { for _, item := range this.Data { if item != nil { @@ -75,10 +78,20 @@ func (this *ShowListRes) Validate() error { } return nil } +func (this *ShowListForArtworkRes) Validate() error { + for _, item := range this.Data { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Data", err) + } + } + } + return nil +} func (this *DelShowReq) Validate() error { return nil } -func (this *ShowArtworkDetail) Validate() error { +func (this *ArtworkDetail) Validate() error { return nil } func (this *DelArtworkDetail) Validate() error { diff --git a/pb/artShow/artshow_grpc.pb.go b/pb/artShow/artshow_grpc.pb.go deleted file mode 100644 index 19434d6..0000000 --- a/pb/artShow/artshow_grpc.pb.go +++ /dev/null @@ -1,609 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.10.1 -// source: pb/artshow.proto - -package artShow - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// ArtShowClient is the client API for ArtShow service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type ArtShowClient interface { - CreateShow(ctx context.Context, in *SaveShowReq, opts ...grpc.CallOption) (*SaveShowRes, error) - UpdateShow(ctx context.Context, in *SaveShowReq, opts ...grpc.CallOption) (*SaveShowRes, error) - DelShow(ctx context.Context, in *DelShowReq, opts ...grpc.CallOption) (*CommonRes, error) - ShowList(ctx context.Context, in *ShowListReq, opts ...grpc.CallOption) (*ShowListRes, error) - ShowArtworkInfo(ctx context.Context, in *ShowDetailReq, opts ...grpc.CallOption) (*ShowArtworkDetailRes, error) - ShowDetail(ctx context.Context, in *ShowDetailReq, opts ...grpc.CallOption) (*ShowDetailRes, error) - ShowStatisticalInfo(ctx context.Context, in *ShowStatisticalInfoReq, opts ...grpc.CallOption) (*ShowStatisticalInfoRes, error) - ArtworkPrice(ctx context.Context, in *ArtworkPriceReq, opts ...grpc.CallOption) (*ArtworkPriceRes, error) - CreateApply(ctx context.Context, in *SaveApplyReq, opts ...grpc.CallOption) (*SaveApplyRes, error) - UpdateApply(ctx context.Context, in *SaveApplyReq, opts ...grpc.CallOption) (*SaveApplyRes, error) - DelApply(ctx context.Context, in *DelApplyReq, opts ...grpc.CallOption) (*CommonRes, error) - ShowListWithApply(ctx context.Context, in *ShowListReq, opts ...grpc.CallOption) (*ShowListRes, error) - UpdateApplyStatus(ctx context.Context, in *UpdateApplyStatusReq, opts ...grpc.CallOption) (*CommonRes, error) - ApplyList(ctx context.Context, in *ApplyListReq, opts ...grpc.CallOption) (*ApplyListRes, error) - ApplyDetail(ctx context.Context, in *ApplyShowReq, opts ...grpc.CallOption) (*ApplyShowRes, error) -} - -type artShowClient struct { - cc grpc.ClientConnInterface -} - -func NewArtShowClient(cc grpc.ClientConnInterface) ArtShowClient { - return &artShowClient{cc} -} - -func (c *artShowClient) CreateShow(ctx context.Context, in *SaveShowReq, opts ...grpc.CallOption) (*SaveShowRes, error) { - out := new(SaveShowRes) - err := c.cc.Invoke(ctx, "/ArtShow.ArtShow/CreateShow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *artShowClient) UpdateShow(ctx context.Context, in *SaveShowReq, opts ...grpc.CallOption) (*SaveShowRes, error) { - out := new(SaveShowRes) - err := c.cc.Invoke(ctx, "/ArtShow.ArtShow/UpdateShow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *artShowClient) DelShow(ctx context.Context, in *DelShowReq, opts ...grpc.CallOption) (*CommonRes, error) { - out := new(CommonRes) - err := c.cc.Invoke(ctx, "/ArtShow.ArtShow/DelShow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *artShowClient) ShowList(ctx context.Context, in *ShowListReq, opts ...grpc.CallOption) (*ShowListRes, error) { - out := new(ShowListRes) - err := c.cc.Invoke(ctx, "/ArtShow.ArtShow/ShowList", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *artShowClient) ShowArtworkInfo(ctx context.Context, in *ShowDetailReq, opts ...grpc.CallOption) (*ShowArtworkDetailRes, error) { - out := new(ShowArtworkDetailRes) - err := c.cc.Invoke(ctx, "/ArtShow.ArtShow/ShowArtworkInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *artShowClient) ShowDetail(ctx context.Context, in *ShowDetailReq, opts ...grpc.CallOption) (*ShowDetailRes, error) { - out := new(ShowDetailRes) - err := c.cc.Invoke(ctx, "/ArtShow.ArtShow/ShowDetail", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *artShowClient) ShowStatisticalInfo(ctx context.Context, in *ShowStatisticalInfoReq, opts ...grpc.CallOption) (*ShowStatisticalInfoRes, error) { - out := new(ShowStatisticalInfoRes) - err := c.cc.Invoke(ctx, "/ArtShow.ArtShow/ShowStatisticalInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *artShowClient) ArtworkPrice(ctx context.Context, in *ArtworkPriceReq, opts ...grpc.CallOption) (*ArtworkPriceRes, error) { - out := new(ArtworkPriceRes) - err := c.cc.Invoke(ctx, "/ArtShow.ArtShow/ArtworkPrice", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *artShowClient) CreateApply(ctx context.Context, in *SaveApplyReq, opts ...grpc.CallOption) (*SaveApplyRes, error) { - out := new(SaveApplyRes) - err := c.cc.Invoke(ctx, "/ArtShow.ArtShow/CreateApply", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *artShowClient) UpdateApply(ctx context.Context, in *SaveApplyReq, opts ...grpc.CallOption) (*SaveApplyRes, error) { - out := new(SaveApplyRes) - err := c.cc.Invoke(ctx, "/ArtShow.ArtShow/UpdateApply", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *artShowClient) DelApply(ctx context.Context, in *DelApplyReq, opts ...grpc.CallOption) (*CommonRes, error) { - out := new(CommonRes) - err := c.cc.Invoke(ctx, "/ArtShow.ArtShow/DelApply", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *artShowClient) ShowListWithApply(ctx context.Context, in *ShowListReq, opts ...grpc.CallOption) (*ShowListRes, error) { - out := new(ShowListRes) - err := c.cc.Invoke(ctx, "/ArtShow.ArtShow/ShowListWithApply", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *artShowClient) UpdateApplyStatus(ctx context.Context, in *UpdateApplyStatusReq, opts ...grpc.CallOption) (*CommonRes, error) { - out := new(CommonRes) - err := c.cc.Invoke(ctx, "/ArtShow.ArtShow/UpdateApplyStatus", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *artShowClient) ApplyList(ctx context.Context, in *ApplyListReq, opts ...grpc.CallOption) (*ApplyListRes, error) { - out := new(ApplyListRes) - err := c.cc.Invoke(ctx, "/ArtShow.ArtShow/ApplyList", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *artShowClient) ApplyDetail(ctx context.Context, in *ApplyShowReq, opts ...grpc.CallOption) (*ApplyShowRes, error) { - out := new(ApplyShowRes) - err := c.cc.Invoke(ctx, "/ArtShow.ArtShow/ApplyDetail", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ArtShowServer is the server API for ArtShow service. -// All implementations must embed UnimplementedArtShowServer -// for forward compatibility -type ArtShowServer interface { - CreateShow(context.Context, *SaveShowReq) (*SaveShowRes, error) - UpdateShow(context.Context, *SaveShowReq) (*SaveShowRes, error) - DelShow(context.Context, *DelShowReq) (*CommonRes, error) - ShowList(context.Context, *ShowListReq) (*ShowListRes, error) - ShowArtworkInfo(context.Context, *ShowDetailReq) (*ShowArtworkDetailRes, error) - ShowDetail(context.Context, *ShowDetailReq) (*ShowDetailRes, error) - ShowStatisticalInfo(context.Context, *ShowStatisticalInfoReq) (*ShowStatisticalInfoRes, error) - ArtworkPrice(context.Context, *ArtworkPriceReq) (*ArtworkPriceRes, error) - CreateApply(context.Context, *SaveApplyReq) (*SaveApplyRes, error) - UpdateApply(context.Context, *SaveApplyReq) (*SaveApplyRes, error) - DelApply(context.Context, *DelApplyReq) (*CommonRes, error) - ShowListWithApply(context.Context, *ShowListReq) (*ShowListRes, error) - UpdateApplyStatus(context.Context, *UpdateApplyStatusReq) (*CommonRes, error) - ApplyList(context.Context, *ApplyListReq) (*ApplyListRes, error) - ApplyDetail(context.Context, *ApplyShowReq) (*ApplyShowRes, error) - mustEmbedUnimplementedArtShowServer() -} - -// UnimplementedArtShowServer must be embedded to have forward compatible implementations. -type UnimplementedArtShowServer struct { -} - -func (UnimplementedArtShowServer) CreateShow(context.Context, *SaveShowReq) (*SaveShowRes, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateShow not implemented") -} -func (UnimplementedArtShowServer) UpdateShow(context.Context, *SaveShowReq) (*SaveShowRes, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateShow not implemented") -} -func (UnimplementedArtShowServer) DelShow(context.Context, *DelShowReq) (*CommonRes, error) { - return nil, status.Errorf(codes.Unimplemented, "method DelShow not implemented") -} -func (UnimplementedArtShowServer) ShowList(context.Context, *ShowListReq) (*ShowListRes, error) { - return nil, status.Errorf(codes.Unimplemented, "method ShowList not implemented") -} -func (UnimplementedArtShowServer) ShowArtworkInfo(context.Context, *ShowDetailReq) (*ShowArtworkDetailRes, error) { - return nil, status.Errorf(codes.Unimplemented, "method ShowArtworkInfo not implemented") -} -func (UnimplementedArtShowServer) ShowDetail(context.Context, *ShowDetailReq) (*ShowDetailRes, error) { - return nil, status.Errorf(codes.Unimplemented, "method ShowDetail not implemented") -} -func (UnimplementedArtShowServer) ShowStatisticalInfo(context.Context, *ShowStatisticalInfoReq) (*ShowStatisticalInfoRes, error) { - return nil, status.Errorf(codes.Unimplemented, "method ShowStatisticalInfo not implemented") -} -func (UnimplementedArtShowServer) ArtworkPrice(context.Context, *ArtworkPriceReq) (*ArtworkPriceRes, error) { - return nil, status.Errorf(codes.Unimplemented, "method ArtworkPrice not implemented") -} -func (UnimplementedArtShowServer) CreateApply(context.Context, *SaveApplyReq) (*SaveApplyRes, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateApply not implemented") -} -func (UnimplementedArtShowServer) UpdateApply(context.Context, *SaveApplyReq) (*SaveApplyRes, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateApply not implemented") -} -func (UnimplementedArtShowServer) DelApply(context.Context, *DelApplyReq) (*CommonRes, error) { - return nil, status.Errorf(codes.Unimplemented, "method DelApply not implemented") -} -func (UnimplementedArtShowServer) ShowListWithApply(context.Context, *ShowListReq) (*ShowListRes, error) { - return nil, status.Errorf(codes.Unimplemented, "method ShowListWithApply not implemented") -} -func (UnimplementedArtShowServer) UpdateApplyStatus(context.Context, *UpdateApplyStatusReq) (*CommonRes, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateApplyStatus not implemented") -} -func (UnimplementedArtShowServer) ApplyList(context.Context, *ApplyListReq) (*ApplyListRes, error) { - return nil, status.Errorf(codes.Unimplemented, "method ApplyList not implemented") -} -func (UnimplementedArtShowServer) ApplyDetail(context.Context, *ApplyShowReq) (*ApplyShowRes, error) { - return nil, status.Errorf(codes.Unimplemented, "method ApplyDetail not implemented") -} -func (UnimplementedArtShowServer) mustEmbedUnimplementedArtShowServer() {} - -// UnsafeArtShowServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to ArtShowServer will -// result in compilation errors. -type UnsafeArtShowServer interface { - mustEmbedUnimplementedArtShowServer() -} - -func RegisterArtShowServer(s grpc.ServiceRegistrar, srv ArtShowServer) { - s.RegisterService(&ArtShow_ServiceDesc, srv) -} - -func _ArtShow_CreateShow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SaveShowReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtShowServer).CreateShow(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ArtShow.ArtShow/CreateShow", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtShowServer).CreateShow(ctx, req.(*SaveShowReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArtShow_UpdateShow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SaveShowReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtShowServer).UpdateShow(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ArtShow.ArtShow/UpdateShow", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtShowServer).UpdateShow(ctx, req.(*SaveShowReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArtShow_DelShow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DelShowReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtShowServer).DelShow(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ArtShow.ArtShow/DelShow", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtShowServer).DelShow(ctx, req.(*DelShowReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArtShow_ShowList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ShowListReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtShowServer).ShowList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ArtShow.ArtShow/ShowList", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtShowServer).ShowList(ctx, req.(*ShowListReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArtShow_ShowArtworkInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ShowDetailReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtShowServer).ShowArtworkInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ArtShow.ArtShow/ShowArtworkInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtShowServer).ShowArtworkInfo(ctx, req.(*ShowDetailReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArtShow_ShowDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ShowDetailReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtShowServer).ShowDetail(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ArtShow.ArtShow/ShowDetail", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtShowServer).ShowDetail(ctx, req.(*ShowDetailReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArtShow_ShowStatisticalInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ShowStatisticalInfoReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtShowServer).ShowStatisticalInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ArtShow.ArtShow/ShowStatisticalInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtShowServer).ShowStatisticalInfo(ctx, req.(*ShowStatisticalInfoReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArtShow_ArtworkPrice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ArtworkPriceReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtShowServer).ArtworkPrice(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ArtShow.ArtShow/ArtworkPrice", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtShowServer).ArtworkPrice(ctx, req.(*ArtworkPriceReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArtShow_CreateApply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SaveApplyReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtShowServer).CreateApply(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ArtShow.ArtShow/CreateApply", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtShowServer).CreateApply(ctx, req.(*SaveApplyReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArtShow_UpdateApply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SaveApplyReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtShowServer).UpdateApply(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ArtShow.ArtShow/UpdateApply", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtShowServer).UpdateApply(ctx, req.(*SaveApplyReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArtShow_DelApply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DelApplyReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtShowServer).DelApply(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ArtShow.ArtShow/DelApply", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtShowServer).DelApply(ctx, req.(*DelApplyReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArtShow_ShowListWithApply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ShowListReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtShowServer).ShowListWithApply(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ArtShow.ArtShow/ShowListWithApply", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtShowServer).ShowListWithApply(ctx, req.(*ShowListReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArtShow_UpdateApplyStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateApplyStatusReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtShowServer).UpdateApplyStatus(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ArtShow.ArtShow/UpdateApplyStatus", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtShowServer).UpdateApplyStatus(ctx, req.(*UpdateApplyStatusReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArtShow_ApplyList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplyListReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtShowServer).ApplyList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ArtShow.ArtShow/ApplyList", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtShowServer).ApplyList(ctx, req.(*ApplyListReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArtShow_ApplyDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplyShowReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtShowServer).ApplyDetail(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ArtShow.ArtShow/ApplyDetail", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtShowServer).ApplyDetail(ctx, req.(*ApplyShowReq)) - } - return interceptor(ctx, in, info, handler) -} - -// ArtShow_ServiceDesc is the grpc.ServiceDesc for ArtShow service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var ArtShow_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "ArtShow.ArtShow", - HandlerType: (*ArtShowServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateShow", - Handler: _ArtShow_CreateShow_Handler, - }, - { - MethodName: "UpdateShow", - Handler: _ArtShow_UpdateShow_Handler, - }, - { - MethodName: "DelShow", - Handler: _ArtShow_DelShow_Handler, - }, - { - MethodName: "ShowList", - Handler: _ArtShow_ShowList_Handler, - }, - { - MethodName: "ShowArtworkInfo", - Handler: _ArtShow_ShowArtworkInfo_Handler, - }, - { - MethodName: "ShowDetail", - Handler: _ArtShow_ShowDetail_Handler, - }, - { - MethodName: "ShowStatisticalInfo", - Handler: _ArtShow_ShowStatisticalInfo_Handler, - }, - { - MethodName: "ArtworkPrice", - Handler: _ArtShow_ArtworkPrice_Handler, - }, - { - MethodName: "CreateApply", - Handler: _ArtShow_CreateApply_Handler, - }, - { - MethodName: "UpdateApply", - Handler: _ArtShow_UpdateApply_Handler, - }, - { - MethodName: "DelApply", - Handler: _ArtShow_DelApply_Handler, - }, - { - MethodName: "ShowListWithApply", - Handler: _ArtShow_ShowListWithApply_Handler, - }, - { - MethodName: "UpdateApplyStatus", - Handler: _ArtShow_UpdateApplyStatus_Handler, - }, - { - MethodName: "ApplyList", - Handler: _ArtShow_ApplyList_Handler, - }, - { - MethodName: "ApplyDetail", - Handler: _ArtShow_ApplyDetail_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "pb/artshow.proto", -} diff --git a/pb/artShow/artshow_triple.pb.go b/pb/artShow/artshow_triple.pb.go index edda47b..9d53a11 100644 --- a/pb/artShow/artshow_triple.pb.go +++ b/pb/artShow/artshow_triple.pb.go @@ -32,6 +32,7 @@ type ArtShowClient interface { UpdateShow(ctx context.Context, in *SaveShowReq, opts ...grpc_go.CallOption) (*SaveShowRes, common.ErrorWithAttachment) DelShow(ctx context.Context, in *DelShowReq, opts ...grpc_go.CallOption) (*CommonRes, common.ErrorWithAttachment) ShowList(ctx context.Context, in *ShowListReq, opts ...grpc_go.CallOption) (*ShowListRes, common.ErrorWithAttachment) + ShowListForArtwork(ctx context.Context, in *ShowListForArtworkReq, opts ...grpc_go.CallOption) (*ShowListForArtworkRes, common.ErrorWithAttachment) ShowArtworkInfo(ctx context.Context, in *ShowDetailReq, opts ...grpc_go.CallOption) (*ShowArtworkDetailRes, common.ErrorWithAttachment) ShowDetail(ctx context.Context, in *ShowDetailReq, opts ...grpc_go.CallOption) (*ShowDetailRes, common.ErrorWithAttachment) ShowStatisticalInfo(ctx context.Context, in *ShowStatisticalInfoReq, opts ...grpc_go.CallOption) (*ShowStatisticalInfoRes, common.ErrorWithAttachment) @@ -54,6 +55,7 @@ type ArtShowClientImpl struct { UpdateShow func(ctx context.Context, in *SaveShowReq) (*SaveShowRes, error) DelShow func(ctx context.Context, in *DelShowReq) (*CommonRes, error) ShowList func(ctx context.Context, in *ShowListReq) (*ShowListRes, error) + ShowListForArtwork func(ctx context.Context, in *ShowListForArtworkReq) (*ShowListForArtworkRes, error) ShowArtworkInfo func(ctx context.Context, in *ShowDetailReq) (*ShowArtworkDetailRes, error) ShowDetail func(ctx context.Context, in *ShowDetailReq) (*ShowDetailRes, error) ShowStatisticalInfo func(ctx context.Context, in *ShowStatisticalInfoReq) (*ShowStatisticalInfoRes, error) @@ -103,6 +105,12 @@ func (c *artShowClient) ShowList(ctx context.Context, in *ShowListReq, opts ...g return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/ShowList", in, out) } +func (c *artShowClient) ShowListForArtwork(ctx context.Context, in *ShowListForArtworkReq, opts ...grpc_go.CallOption) (*ShowListForArtworkRes, common.ErrorWithAttachment) { + out := new(ShowListForArtworkRes) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/ShowListForArtwork", in, out) +} + func (c *artShowClient) ShowArtworkInfo(ctx context.Context, in *ShowDetailReq, opts ...grpc_go.CallOption) (*ShowArtworkDetailRes, common.ErrorWithAttachment) { out := new(ShowArtworkDetailRes) interfaceKey := ctx.Value(constant.InterfaceKey).(string) @@ -177,6 +185,7 @@ type ArtShowServer interface { UpdateShow(context.Context, *SaveShowReq) (*SaveShowRes, error) DelShow(context.Context, *DelShowReq) (*CommonRes, error) ShowList(context.Context, *ShowListReq) (*ShowListRes, error) + ShowListForArtwork(context.Context, *ShowListForArtworkReq) (*ShowListForArtworkRes, error) ShowArtworkInfo(context.Context, *ShowDetailReq) (*ShowArtworkDetailRes, error) ShowDetail(context.Context, *ShowDetailReq) (*ShowDetailRes, error) ShowStatisticalInfo(context.Context, *ShowStatisticalInfoReq) (*ShowStatisticalInfoRes, error) @@ -208,6 +217,9 @@ func (UnimplementedArtShowServer) DelShow(context.Context, *DelShowReq) (*Common func (UnimplementedArtShowServer) ShowList(context.Context, *ShowListReq) (*ShowListRes, error) { return nil, status.Errorf(codes.Unimplemented, "method ShowList not implemented") } +func (UnimplementedArtShowServer) ShowListForArtwork(context.Context, *ShowListForArtworkReq) (*ShowListForArtworkRes, error) { + return nil, status.Errorf(codes.Unimplemented, "method ShowListForArtwork not implemented") +} func (UnimplementedArtShowServer) ShowArtworkInfo(context.Context, *ShowDetailReq) (*ShowArtworkDetailRes, error) { return nil, status.Errorf(codes.Unimplemented, "method ShowArtworkInfo not implemented") } @@ -385,6 +397,35 @@ func _ArtShow_ShowList_Handler(srv interface{}, ctx context.Context, dec func(in return interceptor(ctx, in, info, handler) } +func _ArtShow_ShowListForArtwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(ShowListForArtworkReq) + if err := dec(in); err != nil { + return nil, err + } + base := srv.(dubbo3.Dubbo3GrpcService) + args := []interface{}{} + args = append(args, in) + md, _ := metadata.FromIncomingContext(ctx) + invAttachment := make(map[string]interface{}, len(md)) + for k, v := range md { + invAttachment[k] = v + } + invo := invocation.NewRPCInvocation("ShowListForArtwork", args, invAttachment) + if interceptor == nil { + result := base.XXX_GetProxyImpl().Invoke(ctx, invo) + return result, result.Error() + } + info := &grpc_go.UnaryServerInfo{ + Server: srv, + FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string), + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + result := base.XXX_GetProxyImpl().Invoke(ctx, invo) + return result, result.Error() + } + return interceptor(ctx, in, info, handler) +} + func _ArtShow_ShowArtworkInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { in := new(ShowDetailReq) if err := dec(in); err != nil { @@ -727,6 +768,10 @@ var ArtShow_ServiceDesc = grpc_go.ServiceDesc{ MethodName: "ShowList", Handler: _ArtShow_ShowList_Handler, }, + { + MethodName: "ShowListForArtwork", + Handler: _ArtShow_ShowListForArtwork_Handler, + }, { MethodName: "ShowArtworkInfo", Handler: _ArtShow_ShowArtworkInfo_Handler, diff --git a/pb/artshow.proto b/pb/artshow.proto index ce2a79f..b6de76f 100644 --- a/pb/artshow.proto +++ b/pb/artshow.proto @@ -8,6 +8,7 @@ service ArtShow { rpc UpdateShow (SaveShowReq) returns (SaveShowRes) {} // 画展包更新操作 rpc DelShow (DelShowReq) returns (CommonRes) {} // 画展包删除操作 rpc ShowList (ShowListReq) returns (ShowListRes) {} // 画展包列表展示 + rpc ShowListForArtwork (ShowListForArtworkReq) returns (ShowListForArtworkRes) {} // 画展包列表展示 画作使用 rpc ShowArtworkInfo (ShowDetailReq) returns (ShowArtworkDetailRes) {} // 画展包画作展示 rpc ShowDetail (ShowDetailReq) returns (ShowDetailRes) {} // 画展包展示 rpc ShowStatisticalInfo (ShowStatisticalInfoReq) returns (ShowStatisticalInfoRes) {} // 画展统计(画作数量、画家数量) @@ -31,12 +32,12 @@ message SaveShowReq { 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"]; + string CreateTime = 9 [json_name = "create_time"]; string ShowUID = 10 [json_name = "id"]; - repeated ShowArtworkDetail ShowArtwork = 11 [json_name = "show_artwork"]; - repeated DelArtworkDetail DelShowArtwork = 12 [json_name = "del_show_artwork"]; + repeated ArtworkDetail Artwork = 11 [json_name = "show_artwork"]; + repeated DelArtworkDetail DelArtwork = 12 [json_name = "del_show_artwork"]; } @@ -64,8 +65,11 @@ message ShowDetail { 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"]; + string CreateTime = 10 [json_name = "create_time"]; int32 IsShow = 11 [json_name = "is_show"]; + + string ShowTime = 12 [json_name = "show_time"]; + string Address = 13 [json_name = "address"]; } message ShowDetailRes { @@ -74,7 +78,7 @@ message ShowDetailRes { } message ShowArtworkDetailRes { - repeated ShowArtworkDetail data = 1 [json_name = "data"]; + repeated ArtworkDetail data = 1 [json_name = "data"]; string Msg = 2 [json_name = "msg"]; } @@ -85,10 +89,17 @@ message ShowListReq { string StartTime = 3 [json_name = "start_time"]; string EndTime = 4 [json_name = "end_time"]; - string ArtistUID = 5 [json_name = "artist_uid"]; + string Name = 5 [json_name = "name"]; int32 IsShow = 6 [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"]; @@ -98,13 +109,20 @@ message ShowListRes { 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 ShowArtworkDetail { +message ArtworkDetail { string ArtworkPriceUID = 1 [json_name = "artwork_price_uid"]; string ShowUID =2 [json_name = "show_uid"]; string ArtworkUID = 3 [json_name = "artwork_uid"]; @@ -163,6 +181,7 @@ message ShowRel { 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 { diff --git a/pb/grpc/artshow_grpc.pb.go b/pb/grpc/artshow_grpc.pb.go index fd5aad1..a668a0a 100644 --- a/pb/grpc/artshow_grpc.pb.go +++ b/pb/grpc/artshow_grpc.pb.go @@ -27,6 +27,7 @@ type ArtShowClient interface { UpdateShow(ctx context.Context, in *artShow.SaveShowReq, opts ...grpc.CallOption) (*artShow.SaveShowRes, error) DelShow(ctx context.Context, in *artShow.DelShowReq, opts ...grpc.CallOption) (*artShow.CommonRes, error) ShowList(ctx context.Context, in *artShow.ShowListReq, opts ...grpc.CallOption) (*artShow.ShowListRes, error) + ShowListForArtwork(ctx context.Context, in *artShow.ShowListForArtworkReq, opts ...grpc.CallOption) (*artShow.ShowListForArtworkRes, error) ShowArtworkInfo(ctx context.Context, in *artShow.ShowDetailReq, opts ...grpc.CallOption) (*artShow.ShowArtworkDetailRes, error) ShowDetail(ctx context.Context, in *artShow.ShowDetailReq, opts ...grpc.CallOption) (*artShow.ShowDetailRes, error) ShowStatisticalInfo(ctx context.Context, in *artShow.ShowStatisticalInfoReq, opts ...grpc.CallOption) (*artShow.ShowStatisticalInfoRes, error) @@ -84,6 +85,15 @@ func (c *artShowClient) ShowList(ctx context.Context, in *artShow.ShowListReq, o return out, nil } +func (c *artShowClient) ShowListForArtwork(ctx context.Context, in *artShow.ShowListForArtworkReq, opts ...grpc.CallOption) (*artShow.ShowListForArtworkRes, error) { + out := new(artShow.ShowListForArtworkRes) + err := c.cc.Invoke(ctx, "/ArtShow.ArtShow/ShowListForArtwork", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *artShowClient) ShowArtworkInfo(ctx context.Context, in *artShow.ShowDetailReq, opts ...grpc.CallOption) (*artShow.ShowArtworkDetailRes, error) { out := new(artShow.ShowArtworkDetailRes) err := c.cc.Invoke(ctx, "/ArtShow.ArtShow/ShowArtworkInfo", in, out, opts...) @@ -191,6 +201,7 @@ type ArtShowServer interface { UpdateShow(context.Context, *artShow.SaveShowReq) (*artShow.SaveShowRes, error) DelShow(context.Context, *artShow.DelShowReq) (*artShow.CommonRes, error) ShowList(context.Context, *artShow.ShowListReq) (*artShow.ShowListRes, error) + ShowListForArtwork(context.Context, *artShow.ShowListForArtworkReq) (*artShow.ShowListForArtworkRes, error) ShowArtworkInfo(context.Context, *artShow.ShowDetailReq) (*artShow.ShowArtworkDetailRes, error) ShowDetail(context.Context, *artShow.ShowDetailReq) (*artShow.ShowDetailRes, error) ShowStatisticalInfo(context.Context, *artShow.ShowStatisticalInfoReq) (*artShow.ShowStatisticalInfoRes, error) @@ -221,6 +232,9 @@ func (UnimplementedArtShowServer) DelShow(context.Context, *artShow.DelShowReq) func (UnimplementedArtShowServer) ShowList(context.Context, *artShow.ShowListReq) (*artShow.ShowListRes, error) { return nil, status.Errorf(codes.Unimplemented, "method ShowList not implemented") } +func (UnimplementedArtShowServer) ShowListForArtwork(context.Context, *artShow.ShowListForArtworkReq) (*artShow.ShowListForArtworkRes, error) { + return nil, status.Errorf(codes.Unimplemented, "method ShowListForArtwork not implemented") +} func (UnimplementedArtShowServer) ShowArtworkInfo(context.Context, *artShow.ShowDetailReq) (*artShow.ShowArtworkDetailRes, error) { return nil, status.Errorf(codes.Unimplemented, "method ShowArtworkInfo not implemented") } @@ -339,6 +353,24 @@ func _ArtShow_ShowList_Handler(srv interface{}, ctx context.Context, dec func(in return interceptor(ctx, in, info, handler) } +func _ArtShow_ShowListForArtwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(artShow.ShowListForArtworkReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArtShowServer).ShowListForArtwork(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ArtShow.ArtShow/ShowListForArtwork", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArtShowServer).ShowListForArtwork(ctx, req.(*artShow.ShowListForArtworkReq)) + } + return interceptor(ctx, in, info, handler) +} + func _ArtShow_ShowArtworkInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(artShow.ShowDetailReq) if err := dec(in); err != nil { @@ -560,6 +592,10 @@ var ArtShow_ServiceDesc = grpc.ServiceDesc{ MethodName: "ShowList", Handler: _ArtShow_ShowList_Handler, }, + { + MethodName: "ShowListForArtwork", + Handler: _ArtShow_ShowListForArtwork_Handler, + }, { MethodName: "ShowArtworkInfo", Handler: _ArtShow_ShowArtworkInfo_Handler, diff --git a/pkg/serializer/art_show.go b/pkg/serializer/art_show.go index 02f04ab..f014f1f 100644 --- a/pkg/serializer/art_show.go +++ b/pkg/serializer/art_show.go @@ -17,7 +17,7 @@ func BuildArtShowM(in *artShow.SaveShowReq) (out *model.ArtShow) { out.Price = in.Price out.Ruler = in.Ruler out.Reward = in.Reward - out.ShowTime = in.ShowTime + out.CreateTime = in.CreateTime if in.IsShow == 0 { out.IsShow = m.ARTSHOW_INSIDE } else { @@ -27,7 +27,7 @@ func BuildArtShowM(in *artShow.SaveShowReq) (out *model.ArtShow) { return } -func BuildArtShowListRes(artShows []*model.ArtShow) (out []*artShow.ShowDetail) { +func BuildArtShowListRes(artShows []*model.ArtShowRes) (out []*artShow.ShowDetail) { out = make([]*artShow.ShowDetail, 0) for i := 0; i < len(artShows); i++ { artShowM := BuildArtShowRpc(artShows[i]) @@ -36,7 +36,7 @@ func BuildArtShowListRes(artShows []*model.ArtShow) (out []*artShow.ShowDetail) return } -func BuildArtShowRpc(artShowM *model.ArtShow) (out *artShow.ShowDetail) { +func BuildArtShowRpc(artShowM *model.ArtShowRes) (out *artShow.ShowDetail) { out = new(artShow.ShowDetail) out.ShowUID = artShowM.ShowUID out.ShowSeq = artShowM.ShowSeq @@ -46,9 +46,10 @@ func BuildArtShowRpc(artShowM *model.ArtShow) (out *artShow.ShowDetail) { out.ArtworkNum = artShowM.ArtworkNum out.Ruler = artShowM.Ruler out.Price = artShowM.Price - out.Reward = artShowM.Reward - out.ShowTime = artShowM.ShowTime + out.CreateTime = artShowM.CreateTime out.IsShow = int32(artShowM.IsShow) + out.Address = artShowM.Address + out.ShowTime = artShowM.ShowTime return } diff --git a/pkg/serializer/artwork_price.go b/pkg/serializer/artwork_price.go index 47a823c..2c834f4 100644 --- a/pkg/serializer/artwork_price.go +++ b/pkg/serializer/artwork_price.go @@ -5,7 +5,7 @@ import ( "fonchain-artshow/pb/artShow" ) -func BuildShowArtworkM(in []*artShow.ShowArtworkDetail, showUID string) (out []*model.ArtworkPrice) { +func BuildShowArtworkM(in []*artShow.ArtworkDetail, showUID string) (out []*model.ArtworkPrice) { out = make([]*model.ArtworkPrice, len(in)) for i := 0; i < len(in); i++ { artworkPrice := new(model.ArtworkPrice) @@ -27,10 +27,10 @@ func BuildShowArtworkM(in []*artShow.ShowArtworkDetail, showUID string) (out []* return } -func BuildShowArtworkRpc(in []*model.ArtworkPrice) (out []*artShow.ShowArtworkDetail) { - out = make([]*artShow.ShowArtworkDetail, len(in)) +func BuildShowArtworkRpc(in []*model.ArtworkPrice) (out []*artShow.ArtworkDetail) { + out = make([]*artShow.ArtworkDetail, len(in)) for i := 0; i < len(in); i++ { - artworkPrice := new(artShow.ShowArtworkDetail) + artworkPrice := new(artShow.ArtworkDetail) artworkPrice.ArtworkPriceUID = in[i].ArtworkPriceUID artworkPrice.ShowUID = in[i].ShowUID artworkPrice.ArtworkUID = in[i].ArtworkUID diff --git a/pkg/serializer/show_rel.go b/pkg/serializer/show_rel.go index d787058..6840482 100644 --- a/pkg/serializer/show_rel.go +++ b/pkg/serializer/show_rel.go @@ -12,6 +12,7 @@ func BuildShowRelM(in []*artShow.ShowRel, applyUID string) (out []*model.ShowRel ApplyUID: applyUID, Index: in[i].Index, Address: in[i].Address, + ShowTime: in[i].ShowTime, } if in[i].ShowRelUID != "" { showRel.ShowRelUID = in[i].ShowRelUID @@ -29,6 +30,7 @@ func BuildShowRelRes(in []*model.ShowRel) (out []*artShow.ShowRel) { ShowUID: in[i].ShowUID, Index: in[i].Index, Address: in[i].Address, + ShowTime: in[i].ShowTime, } out = append(out, showRel) }