完成画作锁定状态历史记录查询功能

This commit is contained in:
徐俊杰 2023-02-26 19:57:42 +08:00
parent 1534356077
commit 397313b04f
20 changed files with 16448 additions and 1484 deletions

View File

@ -20,6 +20,10 @@ type ArtistInfoArtworkProvider struct {
artistInfoLogic logic.ArtistInfoArtworkLogic artistInfoLogic logic.ArtistInfoArtworkLogic
} }
func (a ArtistInfoArtworkProvider) GetArtworkLockDetail(ctx context.Context, request *artistInfoArtwork.GetArtworkLockDetailRequest) (*artistInfoArtwork.ArtistLockInfo, error) {
return a.artistInfoLogic.GetArtworkLockDetail(request)
}
// CreateArtworkLockRecord 创建画作锁定记录 // CreateArtworkLockRecord 创建画作锁定记录
func (a ArtistInfoArtworkProvider) CreateArtworkLockRecord(ctx context.Context, req *artistInfoArtwork.CreateArtworkLockRecordReq) (*artistInfoArtwork.ArtworkCommonNoParams, error) { func (a ArtistInfoArtworkProvider) CreateArtworkLockRecord(ctx context.Context, req *artistInfoArtwork.CreateArtworkLockRecordReq) (*artistInfoArtwork.ArtworkCommonNoParams, error) {
if req.ArtworkUid == "" || req.ArtistUid == "" { if req.ArtworkUid == "" || req.ArtistUid == "" {
@ -38,7 +42,12 @@ func (a ArtistInfoArtworkProvider) GetArtworkLockRecords(ctx context.Context, re
return a.artistInfoLogic.GetArtworkLockRecords(request) return a.artistInfoLogic.GetArtworkLockRecords(request)
} }
// DeleteArtworkRecord 删除话u走锁记录 // DeleteArtworkRecord 删除话走锁记录
func (a ArtistInfoArtworkProvider) DeleteArtworkRecord(ctx context.Context, request *artistInfoArtwork.DeleteArtworkRecordRequest) (*artistInfoArtwork.ArtworkCommonNoParams, error) { func (a ArtistInfoArtworkProvider) DeleteArtworkRecord(ctx context.Context, request *artistInfoArtwork.DeleteArtworkRecordRequest) (*artistInfoArtwork.ArtworkCommonNoParams, error) {
return a.artistInfoLogic.DeleteArtworkRecord(request) return a.artistInfoLogic.DeleteArtworkRecord(request)
} }
// GetArtworkLockHistoryGroup 查询画作历史记录,按照锁定时间分组
func (a ArtistInfoArtworkProvider) GetArtworkLockHistoryGroup(ctx context.Context, request *artistInfoArtwork.GetArtworkLockHistoryRequest) (*artistInfoArtwork.GetArtworkLockHistoryResponse, error) {
return a.artistInfoLogic.GetArtworkLockHistoryGroup(request)
}

View File

@ -89,11 +89,15 @@ func BatchUnlockArtworks(artistUid string) error {
return db.DB.Model(model.ArtworkLockRecord{}).Where("artist_uid = ? AND status =2 AND lock_time !=''", artistUid).Update("status", 3).Error return db.DB.Model(model.ArtworkLockRecord{}).Where("artist_uid = ? AND status =2 AND lock_time !=''", artistUid).Update("status", 3).Error
} }
func GetArtworkLockDetail(artworkUid string) (data model.ArtworkLockRecord, err error) {
err = db.DB.Where("artwork_uid = ?", artworkUid).First(&data).Error
return
}
func GetArtworkLockRecords(req *artistInfoArtwork.GetArtworkLockRecordsRequest) (resp *artistInfoArtwork.ArtworkLockList, err error) { func GetArtworkLockRecords(req *artistInfoArtwork.GetArtworkLockRecordsRequest) (resp *artistInfoArtwork.ArtworkLockList, err error) {
var ( var (
datas = []model.ArtworkLockRecord{} datas = []model.ArtworkLockRecord{}
tx = db.DB.Model(model.ArtworkLockRecord{}).Where("artist_uid = ?", req.ArtistUid) tx = db.DB.Model(model.ArtworkLockRecord{}).Where("artist_uid = ?", req.ArtistUid).Order("lock_time desc")
) )
resp = &artistInfoArtwork.ArtworkLockList{} resp = &artistInfoArtwork.ArtworkLockList{}

View File

@ -7,11 +7,15 @@
package logic package logic
import ( import (
"context"
"errors" "errors"
"github.com/fonchain/fonchain-artistinfo/cmd/internal/dao" "github.com/fonchain/fonchain-artistinfo/cmd/internal/dao"
"github.com/fonchain/fonchain-artistinfo/cmd/model" "github.com/fonchain/fonchain-artistinfo/cmd/model"
"github.com/fonchain/fonchain-artistinfo/pb/artistInfoArtwork" "github.com/fonchain/fonchain-artistinfo/pb/artistInfoArtwork"
"github.com/fonchain/fonchain-artistinfo/pb/artwork_query"
"github.com/fonchain/fonchain-artistinfo/pkg/m" "github.com/fonchain/fonchain-artistinfo/pkg/m"
"github.com/fonchain/fonchain-artistinfo/pkg/service"
"strings"
) )
type IArtistInfoArtwork interface { type IArtistInfoArtwork interface {
@ -25,6 +29,19 @@ var _ IArtistInfoArtwork = new(ArtistInfoArtworkLogic)
type ArtistInfoArtworkLogic struct{} type ArtistInfoArtworkLogic struct{}
func (a ArtistInfoArtworkLogic) GetArtworkLockDetail(request *artistInfoArtwork.GetArtworkLockDetailRequest) (res *artistInfoArtwork.ArtistLockInfo, err error) {
data, err := dao.GetArtworkLockDetail(request.ArtworkUid)
if err != nil {
return
}
res = &artistInfoArtwork.ArtistLockInfo{
ArtistUid: data.ArtistUid,
ArtworkUid: data.ArtworkUid,
Status: data.Status,
LockTime: data.LockTime,
}
return
}
func (ArtistInfoArtworkLogic) CreateArtworkLockRecord(req *artistInfoArtwork.CreateArtworkLockRecordReq) (res *artistInfoArtwork.ArtworkCommonNoParams, err error) { func (ArtistInfoArtworkLogic) CreateArtworkLockRecord(req *artistInfoArtwork.CreateArtworkLockRecordReq) (res *artistInfoArtwork.ArtworkCommonNoParams, err error) {
err = dao.CreateArtworkLockRecord(&model.ArtworkLockRecord{ err = dao.CreateArtworkLockRecord(&model.ArtworkLockRecord{
ArtistUid: req.ArtistUid, ArtistUid: req.ArtistUid,
@ -53,6 +70,66 @@ func (ArtistInfoArtworkLogic) GetArtworkLockRecords(req *artistInfoArtwork.GetAr
return return
} }
func (a ArtistInfoArtworkLogic) GetArtworkLockHistoryGroup(request *artistInfoArtwork.GetArtworkLockHistoryRequest) (res *artistInfoArtwork.GetArtworkLockHistoryResponse, err error) {
// 查询解锁的画作
unlockArtworkList, err := dao.GetArtworkLockRecords(&artistInfoArtwork.GetArtworkLockRecordsRequest{
ArtistUid: request.ArtistUid,
QueryType: artistInfoArtwork.ArtworkQueryMode_AllUnlockArtwork,
})
if err != nil {
return nil, err
}
if len(unlockArtworkList.Data) == 0 {
return nil, nil
}
res = &artistInfoArtwork.GetArtworkLockHistoryResponse{}
var artworkUidList []string
for _, v := range unlockArtworkList.Data {
artworkUidList = append(artworkUidList, v.ArtworkUid)
}
//查询画作预览列表
previewListRes, err := service.ArtworkQueryImpl.ArtworkPreviewList(context.Background(), &artwork_query.ArtworkPreviewListRequest{
Page: 1,
PageSize: -1,
ArtworkUids: artworkUidList,
})
if err != nil {
return nil, err
}
var thisLockTime = ""
var groupIndex = -1
for _, v := range unlockArtworkList.Data {
var newGroup bool
if thisLockTime != v.LockTime {
thisLockTime = v.LockTime
newGroup = true
groupIndex++
}
if newGroup {
res.GroupList = append(res.GroupList, &artistInfoArtwork.ArtworkLockRecord{
LockGroup: v.LockTime,
DataList: []*artistInfoArtwork.ArtworkPreviewInfo{},
})
}
for _, artwork := range previewListRes.Data {
res.GroupList[groupIndex].DataList = append(res.GroupList[groupIndex].DataList, &artistInfoArtwork.ArtworkPreviewInfo{
ArtistUuid: artwork.ArtistUuid,
ArtworkName: artwork.ArtworkName,
Length: artwork.Length,
Width: artwork.Width,
Ruler: artwork.Ruler,
CreatedAddress: strings.Split(artwork.CreatedAddress, ""),
ArtistPhoto: artwork.ArtistPhoto,
HdPic: artwork.HdPic,
ArtworkUid: artwork.ArtworkUid,
CreatedDate: artwork.CreateDate,
LockStatus: int32(v.Status),
})
}
}
return
}
func (ArtistInfoArtworkLogic) DeleteArtworkRecord(req *artistInfoArtwork.DeleteArtworkRecordRequest) (res *artistInfoArtwork.ArtworkCommonNoParams, err error) { func (ArtistInfoArtworkLogic) DeleteArtworkRecord(req *artistInfoArtwork.DeleteArtworkRecordRequest) (res *artistInfoArtwork.ArtworkCommonNoParams, err error) {
//检查画作锁定情况 //检查画作锁定情况
for _, v := range req.ArtworkUids { for _, v := range req.ArtworkUids {

View File

@ -4,15 +4,15 @@ import (
"context" "context"
"fmt" "fmt"
"github.com/fonchain/fonchain-artistinfo/cmd/internal/old/logic" "github.com/fonchain/fonchain-artistinfo/cmd/internal/old/logic"
"github.com/fonchain/fonchain-artistinfo/pb/artwork" artwork2 "github.com/fonchain/fonchain-artistinfo/pb/old/artwork"
) )
type ArtWorkProvider struct { type ArtWorkProvider struct {
artwork.UnimplementedArtworkServer artwork2.UnimplementedArtworkServer
artWorkLogic *logic.Artwork artWorkLogic *logic.Artwork
} }
func (a *ArtWorkProvider) ArtworkAdd(ctx context.Context, req *artwork.ArtworkAddRequest) (rep *artwork.ArtworkAddRespond, err error) { func (a *ArtWorkProvider) ArtworkAdd(ctx context.Context, req *artwork2.ArtworkAddRequest) (rep *artwork2.ArtworkAddRespond, err error) {
fmt.Println("第一处") fmt.Println("第一处")
if rep, err = a.artWorkLogic.ArtworkAdd(req); err != nil { if rep, err = a.artWorkLogic.ArtworkAdd(req); err != nil {
return nil, err return nil, err
@ -20,7 +20,7 @@ func (a *ArtWorkProvider) ArtworkAdd(ctx context.Context, req *artwork.ArtworkAd
return rep, nil return rep, nil
} }
func (a *ArtWorkProvider) UpdateArtwork(ctx context.Context, req *artwork.UpdateArtworkRequest) (rep *artwork.UpdateArtworkRespond, err error) { func (a *ArtWorkProvider) UpdateArtwork(ctx context.Context, req *artwork2.UpdateArtworkRequest) (rep *artwork2.UpdateArtworkRespond, err error) {
fmt.Println("第一处") fmt.Println("第一处")
if rep, err = a.artWorkLogic.UpdateArtwork(req); err != nil { if rep, err = a.artWorkLogic.UpdateArtwork(req); err != nil {
return nil, err return nil, err
@ -28,7 +28,7 @@ func (a *ArtWorkProvider) UpdateArtwork(ctx context.Context, req *artwork.Update
return rep, nil return rep, nil
} }
func (a *ArtWorkProvider) DelArtwork(ctx context.Context, req *artwork.DelArtworkRequest) (rep *artwork.DelArtworkRespond, err error) { func (a *ArtWorkProvider) DelArtwork(ctx context.Context, req *artwork2.DelArtworkRequest) (rep *artwork2.DelArtworkRespond, err error) {
fmt.Println("第一处") fmt.Println("第一处")
if rep, err = a.artWorkLogic.DelArtwork(req); err != nil { if rep, err = a.artWorkLogic.DelArtwork(req); err != nil {
return nil, err return nil, err
@ -36,7 +36,7 @@ func (a *ArtWorkProvider) DelArtwork(ctx context.Context, req *artwork.DelArtwor
return rep, nil return rep, nil
} }
func (a *ArtWorkProvider) GetArtworkList(ctx context.Context, req *artwork.GetArtworkListRequest) (rep *artwork.GetArtworkListRespond, err error) { func (a *ArtWorkProvider) GetArtworkList(ctx context.Context, req *artwork2.GetArtworkListRequest) (rep *artwork2.GetArtworkListRespond, err error) {
fmt.Println("第一处") fmt.Println("第一处")
if rep, err = a.artWorkLogic.GetArtworkList(req); err != nil { if rep, err = a.artWorkLogic.GetArtworkList(req); err != nil {
return nil, err return nil, err
@ -44,7 +44,7 @@ func (a *ArtWorkProvider) GetArtworkList(ctx context.Context, req *artwork.GetAr
return rep, nil return rep, nil
} }
func (a *ArtWorkProvider) GetArtwork(ctx context.Context, req *artwork.GetArtworkRequest) (rep *artwork.GetArtworkRespond, err error) { func (a *ArtWorkProvider) GetArtwork(ctx context.Context, req *artwork2.GetArtworkRequest) (rep *artwork2.GetArtworkRespond, err error) {
fmt.Println("第一处") fmt.Println("第一处")
if rep, err = a.artWorkLogic.GetArtwork(req); err != nil { if rep, err = a.artWorkLogic.GetArtwork(req); err != nil {
return nil, err return nil, err
@ -52,7 +52,7 @@ func (a *ArtWorkProvider) GetArtwork(ctx context.Context, req *artwork.GetArtwor
return rep, nil return rep, nil
} }
func (a *ArtWorkProvider) UploadArtwork(ctx context.Context, req *artwork.UploadArtworkRequest) (rep *artwork.UploadArtworkRespond, err error) { func (a *ArtWorkProvider) UploadArtwork(ctx context.Context, req *artwork2.UploadArtworkRequest) (rep *artwork2.UploadArtworkRespond, err error) {
fmt.Println("第一处") fmt.Println("第一处")
if rep, err = a.artWorkLogic.UploadArtwork(req); err != nil { if rep, err = a.artWorkLogic.UploadArtwork(req); err != nil {
return nil, err return nil, err
@ -60,7 +60,7 @@ func (a *ArtWorkProvider) UploadArtwork(ctx context.Context, req *artwork.Upload
return rep, nil return rep, nil
} }
func (a *ArtWorkProvider) ApproveArtwork(ctx context.Context, req *artwork.ApproveArtworkRequest) (rep *artwork.ApproveArtworkRespond, err error) { func (a *ArtWorkProvider) ApproveArtwork(ctx context.Context, req *artwork2.ApproveArtworkRequest) (rep *artwork2.ApproveArtworkRespond, err error) {
fmt.Println("第一处") fmt.Println("第一处")
if rep, err = a.artWorkLogic.ApproveArtwork(req); err != nil { if rep, err = a.artWorkLogic.ApproveArtwork(req); err != nil {
return nil, err return nil, err

View File

@ -4,9 +4,9 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"github.com/fonchain/fonchain-artistinfo/pb/old/artwork"
"github.com/fonchain/fonchain-artistinfo/cmd/model" "github.com/fonchain/fonchain-artistinfo/cmd/model"
"github.com/fonchain/fonchain-artistinfo/pb/artwork"
db "github.com/fonchain/fonchain-artistinfo/pkg/db" db "github.com/fonchain/fonchain-artistinfo/pkg/db"
"github.com/fonchain/fonchain-artistinfo/pkg/m" "github.com/fonchain/fonchain-artistinfo/pkg/m"
"go.uber.org/zap" "go.uber.org/zap"

View File

@ -8,7 +8,7 @@ package logic
import ( import (
"github.com/fonchain/fonchain-artistinfo/cmd/internal/old/dao" "github.com/fonchain/fonchain-artistinfo/cmd/internal/old/dao"
"github.com/fonchain/fonchain-artistinfo/pb/artwork" "github.com/fonchain/fonchain-artistinfo/pb/old/artwork"
) )
type IArtWork interface { type IArtWork interface {

View File

@ -509,6 +509,330 @@ func (x *DeleteArtworkRecordRequest) GetArtworkUids() []string {
return nil return nil
} }
type GetArtworkLockHistoryRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ArtistUid string `protobuf:"bytes,1,opt,name=artistUid,proto3" json:"artistUid,omitempty"`
}
func (x *GetArtworkLockHistoryRequest) Reset() {
*x = GetArtworkLockHistoryRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_pb_artistinfoArtwork_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetArtworkLockHistoryRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetArtworkLockHistoryRequest) ProtoMessage() {}
func (x *GetArtworkLockHistoryRequest) ProtoReflect() protoreflect.Message {
mi := &file_pb_artistinfoArtwork_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 GetArtworkLockHistoryRequest.ProtoReflect.Descriptor instead.
func (*GetArtworkLockHistoryRequest) Descriptor() ([]byte, []int) {
return file_pb_artistinfoArtwork_proto_rawDescGZIP(), []int{8}
}
func (x *GetArtworkLockHistoryRequest) GetArtistUid() string {
if x != nil {
return x.ArtistUid
}
return ""
}
type GetArtworkLockDetailRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ArtworkUid string `protobuf:"bytes,1,opt,name=artworkUid,proto3" json:"artworkUid,omitempty"` //画家uid;
}
func (x *GetArtworkLockDetailRequest) Reset() {
*x = GetArtworkLockDetailRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_pb_artistinfoArtwork_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetArtworkLockDetailRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetArtworkLockDetailRequest) ProtoMessage() {}
func (x *GetArtworkLockDetailRequest) ProtoReflect() protoreflect.Message {
mi := &file_pb_artistinfoArtwork_proto_msgTypes[9]
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 GetArtworkLockDetailRequest.ProtoReflect.Descriptor instead.
func (*GetArtworkLockDetailRequest) Descriptor() ([]byte, []int) {
return file_pb_artistinfoArtwork_proto_rawDescGZIP(), []int{9}
}
func (x *GetArtworkLockDetailRequest) GetArtworkUid() string {
if x != nil {
return x.ArtworkUid
}
return ""
}
// ----
type ArtworkPreviewInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ArtistUuid string `protobuf:"bytes,1,opt,name=artistUuid,proto3" json:"artistUuid,omitempty"`
ArtworkName string `protobuf:"bytes,2,opt,name=artworkName,proto3" json:"artworkName,omitempty"`
Length int32 `protobuf:"varint,3,opt,name=length,proto3" json:"length,omitempty"`
Width int32 `protobuf:"varint,4,opt,name=width,proto3" json:"width,omitempty"`
Ruler int32 `protobuf:"varint,5,opt,name=ruler,proto3" json:"ruler,omitempty"`
CreatedAddress []string `protobuf:"bytes,6,rep,name=createdAddress,proto3" json:"createdAddress,omitempty"`
ArtistPhoto string `protobuf:"bytes,7,opt,name=artistPhoto,proto3" json:"artistPhoto,omitempty"`
HdPic string `protobuf:"bytes,8,opt,name=hdPic,proto3" json:"hdPic,omitempty"`
ArtworkUid string `protobuf:"bytes,9,opt,name=artworkUid,proto3" json:"artworkUid,omitempty"`
CreatedDate string `protobuf:"bytes,10,opt,name=createdDate,proto3" json:"createdDate,omitempty"`
LockStatus int32 `protobuf:"varint,11,opt,name=lockStatus,proto3" json:"lockStatus,omitempty"`
}
func (x *ArtworkPreviewInfo) Reset() {
*x = ArtworkPreviewInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_pb_artistinfoArtwork_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ArtworkPreviewInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ArtworkPreviewInfo) ProtoMessage() {}
func (x *ArtworkPreviewInfo) ProtoReflect() protoreflect.Message {
mi := &file_pb_artistinfoArtwork_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 ArtworkPreviewInfo.ProtoReflect.Descriptor instead.
func (*ArtworkPreviewInfo) Descriptor() ([]byte, []int) {
return file_pb_artistinfoArtwork_proto_rawDescGZIP(), []int{10}
}
func (x *ArtworkPreviewInfo) GetArtistUuid() string {
if x != nil {
return x.ArtistUuid
}
return ""
}
func (x *ArtworkPreviewInfo) GetArtworkName() string {
if x != nil {
return x.ArtworkName
}
return ""
}
func (x *ArtworkPreviewInfo) GetLength() int32 {
if x != nil {
return x.Length
}
return 0
}
func (x *ArtworkPreviewInfo) GetWidth() int32 {
if x != nil {
return x.Width
}
return 0
}
func (x *ArtworkPreviewInfo) GetRuler() int32 {
if x != nil {
return x.Ruler
}
return 0
}
func (x *ArtworkPreviewInfo) GetCreatedAddress() []string {
if x != nil {
return x.CreatedAddress
}
return nil
}
func (x *ArtworkPreviewInfo) GetArtistPhoto() string {
if x != nil {
return x.ArtistPhoto
}
return ""
}
func (x *ArtworkPreviewInfo) GetHdPic() string {
if x != nil {
return x.HdPic
}
return ""
}
func (x *ArtworkPreviewInfo) GetArtworkUid() string {
if x != nil {
return x.ArtworkUid
}
return ""
}
func (x *ArtworkPreviewInfo) GetCreatedDate() string {
if x != nil {
return x.CreatedDate
}
return ""
}
func (x *ArtworkPreviewInfo) GetLockStatus() int32 {
if x != nil {
return x.LockStatus
}
return 0
}
type GetArtworkLockHistoryResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
GroupList []*ArtworkLockRecord `protobuf:"bytes,1,rep,name=groupList,proto3" json:"groupList,omitempty"`
}
func (x *GetArtworkLockHistoryResponse) Reset() {
*x = GetArtworkLockHistoryResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_pb_artistinfoArtwork_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetArtworkLockHistoryResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetArtworkLockHistoryResponse) ProtoMessage() {}
func (x *GetArtworkLockHistoryResponse) ProtoReflect() protoreflect.Message {
mi := &file_pb_artistinfoArtwork_proto_msgTypes[11]
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 GetArtworkLockHistoryResponse.ProtoReflect.Descriptor instead.
func (*GetArtworkLockHistoryResponse) Descriptor() ([]byte, []int) {
return file_pb_artistinfoArtwork_proto_rawDescGZIP(), []int{11}
}
func (x *GetArtworkLockHistoryResponse) GetGroupList() []*ArtworkLockRecord {
if x != nil {
return x.GroupList
}
return nil
}
type ArtworkLockRecord struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
LockGroup string `protobuf:"bytes,1,opt,name=lockGroup,proto3" json:"lockGroup,omitempty"`
DataList []*ArtworkPreviewInfo `protobuf:"bytes,2,rep,name=dataList,proto3" json:"dataList,omitempty"`
}
func (x *ArtworkLockRecord) Reset() {
*x = ArtworkLockRecord{}
if protoimpl.UnsafeEnabled {
mi := &file_pb_artistinfoArtwork_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ArtworkLockRecord) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ArtworkLockRecord) ProtoMessage() {}
func (x *ArtworkLockRecord) ProtoReflect() protoreflect.Message {
mi := &file_pb_artistinfoArtwork_proto_msgTypes[12]
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 ArtworkLockRecord.ProtoReflect.Descriptor instead.
func (*ArtworkLockRecord) Descriptor() ([]byte, []int) {
return file_pb_artistinfoArtwork_proto_rawDescGZIP(), []int{12}
}
func (x *ArtworkLockRecord) GetLockGroup() string {
if x != nil {
return x.LockGroup
}
return ""
}
func (x *ArtworkLockRecord) GetDataList() []*ArtworkPreviewInfo {
if x != nil {
return x.DataList
}
return nil
}
var File_pb_artistinfoArtwork_proto protoreflect.FileDescriptor var File_pb_artistinfoArtwork_proto protoreflect.FileDescriptor
var file_pb_artistinfoArtwork_proto_rawDesc = []byte{ var file_pb_artistinfoArtwork_proto_rawDesc = []byte{
@ -562,42 +886,99 @@ var file_pb_artistinfoArtwork_proto_rawDesc = []byte{
0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x63, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x63,
0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x72, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x72,
0x74, 0x77, 0x6f, 0x72, 0x6b, 0x55, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x55, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52,
0x0b, 0x61, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x55, 0x69, 0x64, 0x73, 0x2a, 0x67, 0x0a, 0x10, 0x0b, 0x61, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x55, 0x69, 0x64, 0x73, 0x22, 0x3c, 0x0a, 0x1c,
0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x63, 0x6b, 0x48, 0x69,
0x12, 0x15, 0x0a, 0x11, 0x4e, 0x6f, 0x77, 0x50, 0x72, 0x65, 0x53, 0x61, 0x76, 0x65, 0x41, 0x72, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09,
0x74, 0x77, 0x6f, 0x72, 0x6b, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x4e, 0x6f, 0x77, 0x4c, 0x6f, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x55, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x63, 0x6b, 0x65, 0x64, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x09, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x55, 0x69, 0x64, 0x22, 0x49, 0x0a, 0x1b, 0x47, 0x65,
0x0c, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x43, 0x61, 0x6e, 0x53, 0x65, 0x65, 0x10, 0x02, 0x12, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x63, 0x6b, 0x44, 0x65, 0x74, 0x61,
0x14, 0x0a, 0x10, 0x41, 0x6c, 0x6c, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x41, 0x72, 0x74, 0x77, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x0a, 0x61, 0x72, 0x74,
0x6f, 0x72, 0x6b, 0x10, 0x03, 0x32, 0xa1, 0x03, 0x0a, 0x11, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x55, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xba,
0x49, 0x6e, 0x66, 0x6f, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x66, 0x0a, 0x17, 0x43, 0xe9, 0xc0, 0x03, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x77, 0x6f,
0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x63, 0x6b, 0x72, 0x6b, 0x55, 0x69, 0x64, 0x22, 0xdc, 0x02, 0x0a, 0x12, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72,
0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x26, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6b, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x0a, 0x0a,
0x6e, 0x66, 0x6f, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x55, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x6b, 0x4c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x21, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x55, 0x75, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b,
0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x61, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x4e, 0x6f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x09, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16,
0x73, 0x22, 0x00, 0x12, 0x5e, 0x0a, 0x11, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x0a, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06,
0x63, 0x6b, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18,
0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x12, 0x14, 0x0a, 0x05,
0x72, 0x75, 0x6c, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x72, 0x75, 0x6c,
0x65, 0x72, 0x12, 0x26, 0x0a, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x64, 0x64,
0x72, 0x65, 0x73, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x72, 0x65, 0x61,
0x74, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x72,
0x74, 0x69, 0x73, 0x74, 0x50, 0x68, 0x6f, 0x74, 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0b, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x50, 0x68, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x0a, 0x05,
0x68, 0x64, 0x50, 0x69, 0x63, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x68, 0x64, 0x50,
0x69, 0x63, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x55, 0x69, 0x64,
0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x55,
0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x44, 0x61, 0x74,
0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64,
0x44, 0x61, 0x74, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x74,
0x75, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x74,
0x61, 0x74, 0x75, 0x73, 0x22, 0x5c, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f,
0x72, 0x6b, 0x4c, 0x6f, 0x63, 0x6b, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x69,
0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73,
0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x63, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x63,
0x6b, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x6b, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x69,
0x73, 0x74, 0x22, 0x6d, 0x0a, 0x11, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x63,
0x6b, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x6b, 0x47,
0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6c, 0x6f, 0x63, 0x6b,
0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x3a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x4c, 0x69, 0x73,
0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74,
0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x72, 0x65, 0x76,
0x69, 0x65, 0x77, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x4c, 0x69, 0x73,
0x74, 0x2a, 0x67, 0x0a, 0x10, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x51, 0x75, 0x65, 0x72,
0x79, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x4e, 0x6f, 0x77, 0x50, 0x72, 0x65, 0x53,
0x61, 0x76, 0x65, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10,
0x4e, 0x6f, 0x77, 0x4c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b,
0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x43, 0x61, 0x6e, 0x53,
0x65, 0x65, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x41, 0x6c, 0x6c, 0x55, 0x6e, 0x6c, 0x6f, 0x63,
0x6b, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x10, 0x03, 0x32, 0xf5, 0x04, 0x0a, 0x11, 0x41,
0x72, 0x74, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b,
0x12, 0x66, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72,
0x6b, 0x4c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x26, 0x2e, 0x61, 0x72,
0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41,
0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
0x52, 0x65, 0x71, 0x1a, 0x21, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f,
0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x4e, 0x6f,
0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x00, 0x12, 0x5e, 0x0a, 0x11, 0x41, 0x72, 0x74, 0x77,
0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x63, 0x6b, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e,
0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f,
0x72, 0x6b, 0x4c, 0x6f, 0x63, 0x6b, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f,
0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x4e, 0x6f,
0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x00, 0x12, 0x60, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x41,
0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
0x73, 0x12, 0x28, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x47,
0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x63,
0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x61, 0x72,
0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b,
0x4c, 0x6f, 0x63, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x00, 0x12, 0x73, 0x0a, 0x1a, 0x47, 0x65,
0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x63, 0x6b, 0x48, 0x69, 0x73, 0x74,
0x6f, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x28, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73,
0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b,
0x4c, 0x6f, 0x63, 0x6b, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x29, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e,
0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x63, 0x6b, 0x48, 0x69,
0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12,
0x62, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b,
0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x26, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69,
0x6e, 0x66, 0x6f, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72,
0x6b, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21,
0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x41, 0x72, 0x74, 0x77,
0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x4e, 0x6f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x4e, 0x6f, 0x50, 0x61, 0x72, 0x61, 0x6d,
0x73, 0x22, 0x00, 0x12, 0x60, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x73, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72,
0x6b, 0x4c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x28, 0x2e, 0x61, 0x6b, 0x4c, 0x6f, 0x63, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x27, 0x2e, 0x61, 0x72,
0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x77,
0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x63, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66,
0x6e, 0x66, 0x6f, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x63, 0x6b, 0x4c, 0x6f, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x4c, 0x6f, 0x63, 0x6b, 0x49, 0x6e, 0x66, 0x6f,
0x69, 0x73, 0x74, 0x22, 0x00, 0x12, 0x62, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x22, 0x00, 0x42, 0x16, 0x5a, 0x14, 0x2e, 0x2f, 0x3b, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x49,
0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x26, 0x2e, 0x61, 0x6e, 0x66, 0x6f, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x01, 0x62, 0x06, 0x70, 0x72,
0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x6f, 0x74, 0x6f, 0x33,
0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66,
0x6f, 0x2e, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x4e,
0x6f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x00, 0x42, 0x16, 0x5a, 0x14, 0x2e, 0x2f, 0x3b,
0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x41, 0x72, 0x74, 0x77, 0x6f, 0x72,
0x6b, 0x50, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@ -613,7 +994,7 @@ func file_pb_artistinfoArtwork_proto_rawDescGZIP() []byte {
} }
var file_pb_artistinfoArtwork_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_pb_artistinfoArtwork_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_pb_artistinfoArtwork_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_pb_artistinfoArtwork_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
var file_pb_artistinfoArtwork_proto_goTypes = []interface{}{ var file_pb_artistinfoArtwork_proto_goTypes = []interface{}{
(ArtworkQueryMode)(0), // 0: artistinfo.ArtworkQueryMode (ArtworkQueryMode)(0), // 0: artistinfo.ArtworkQueryMode
(*ArtworkCommonNoParams)(nil), // 1: artistinfo.ArtworkCommonNoParams (*ArtworkCommonNoParams)(nil), // 1: artistinfo.ArtworkCommonNoParams
@ -624,23 +1005,34 @@ var file_pb_artistinfoArtwork_proto_goTypes = []interface{}{
(*ArtworkLockList)(nil), // 6: artistinfo.ArtworkLockList (*ArtworkLockList)(nil), // 6: artistinfo.ArtworkLockList
(*ArtworkUidList)(nil), // 7: artistinfo.ArtworkUidList (*ArtworkUidList)(nil), // 7: artistinfo.ArtworkUidList
(*DeleteArtworkRecordRequest)(nil), // 8: artistinfo.DeleteArtworkRecordRequest (*DeleteArtworkRecordRequest)(nil), // 8: artistinfo.DeleteArtworkRecordRequest
(*GetArtworkLockHistoryRequest)(nil), // 9: artistinfo.GetArtworkLockHistoryRequest
(*GetArtworkLockDetailRequest)(nil), // 10: artistinfo.GetArtworkLockDetailRequest
(*ArtworkPreviewInfo)(nil), // 11: artistinfo.ArtworkPreviewInfo
(*GetArtworkLockHistoryResponse)(nil), // 12: artistinfo.GetArtworkLockHistoryResponse
(*ArtworkLockRecord)(nil), // 13: artistinfo.ArtworkLockRecord
} }
var file_pb_artistinfoArtwork_proto_depIdxs = []int32{ var file_pb_artistinfoArtwork_proto_depIdxs = []int32{
0, // 0: artistinfo.GetArtworkLockRecordsRequest.queryType:type_name -> artistinfo.ArtworkQueryMode 0, // 0: artistinfo.GetArtworkLockRecordsRequest.queryType:type_name -> artistinfo.ArtworkQueryMode
5, // 1: artistinfo.ArtworkLockList.data:type_name -> artistinfo.ArtistLockInfo 5, // 1: artistinfo.ArtworkLockList.data:type_name -> artistinfo.ArtistLockInfo
2, // 2: artistinfo.ArtistInfoArtwork.CreateArtworkLockRecord:input_type -> artistinfo.CreateArtworkLockRecordReq 13, // 2: artistinfo.GetArtworkLockHistoryResponse.groupList:type_name -> artistinfo.ArtworkLockRecord
3, // 3: artistinfo.ArtistInfoArtwork.ArtworkLockAction:input_type -> artistinfo.ArtworkLockActionRequest 11, // 3: artistinfo.ArtworkLockRecord.dataList:type_name -> artistinfo.ArtworkPreviewInfo
4, // 4: artistinfo.ArtistInfoArtwork.GetArtworkLockRecords:input_type -> artistinfo.GetArtworkLockRecordsRequest 2, // 4: artistinfo.ArtistInfoArtwork.CreateArtworkLockRecord:input_type -> artistinfo.CreateArtworkLockRecordReq
8, // 5: artistinfo.ArtistInfoArtwork.DeleteArtworkRecord:input_type -> artistinfo.DeleteArtworkRecordRequest 3, // 5: artistinfo.ArtistInfoArtwork.ArtworkLockAction:input_type -> artistinfo.ArtworkLockActionRequest
1, // 6: artistinfo.ArtistInfoArtwork.CreateArtworkLockRecord:output_type -> artistinfo.ArtworkCommonNoParams 4, // 6: artistinfo.ArtistInfoArtwork.GetArtworkLockRecords:input_type -> artistinfo.GetArtworkLockRecordsRequest
1, // 7: artistinfo.ArtistInfoArtwork.ArtworkLockAction:output_type -> artistinfo.ArtworkCommonNoParams 9, // 7: artistinfo.ArtistInfoArtwork.GetArtworkLockHistoryGroup:input_type -> artistinfo.GetArtworkLockHistoryRequest
6, // 8: artistinfo.ArtistInfoArtwork.GetArtworkLockRecords:output_type -> artistinfo.ArtworkLockList 8, // 8: artistinfo.ArtistInfoArtwork.DeleteArtworkRecord:input_type -> artistinfo.DeleteArtworkRecordRequest
1, // 9: artistinfo.ArtistInfoArtwork.DeleteArtworkRecord:output_type -> artistinfo.ArtworkCommonNoParams 10, // 9: artistinfo.ArtistInfoArtwork.GetArtworkLockDetail:input_type -> artistinfo.GetArtworkLockDetailRequest
6, // [6:10] is the sub-list for method output_type 1, // 10: artistinfo.ArtistInfoArtwork.CreateArtworkLockRecord:output_type -> artistinfo.ArtworkCommonNoParams
2, // [2:6] is the sub-list for method input_type 1, // 11: artistinfo.ArtistInfoArtwork.ArtworkLockAction:output_type -> artistinfo.ArtworkCommonNoParams
2, // [2:2] is the sub-list for extension type_name 6, // 12: artistinfo.ArtistInfoArtwork.GetArtworkLockRecords:output_type -> artistinfo.ArtworkLockList
2, // [2:2] is the sub-list for extension extendee 12, // 13: artistinfo.ArtistInfoArtwork.GetArtworkLockHistoryGroup:output_type -> artistinfo.GetArtworkLockHistoryResponse
0, // [0:2] is the sub-list for field type_name 1, // 14: artistinfo.ArtistInfoArtwork.DeleteArtworkRecord:output_type -> artistinfo.ArtworkCommonNoParams
5, // 15: artistinfo.ArtistInfoArtwork.GetArtworkLockDetail:output_type -> artistinfo.ArtistLockInfo
10, // [10:16] is the sub-list for method output_type
4, // [4:10] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
} }
func init() { file_pb_artistinfoArtwork_proto_init() } func init() { file_pb_artistinfoArtwork_proto_init() }
@ -745,6 +1137,66 @@ func file_pb_artistinfoArtwork_proto_init() {
return nil return nil
} }
} }
file_pb_artistinfoArtwork_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetArtworkLockHistoryRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pb_artistinfoArtwork_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetArtworkLockDetailRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pb_artistinfoArtwork_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ArtworkPreviewInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pb_artistinfoArtwork_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetArtworkLockHistoryResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pb_artistinfoArtwork_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ArtworkLockRecord); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
} }
type x struct{} type x struct{}
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
@ -752,7 +1204,7 @@ func file_pb_artistinfoArtwork_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_pb_artistinfoArtwork_proto_rawDesc, RawDescriptor: file_pb_artistinfoArtwork_proto_rawDesc,
NumEnums: 1, NumEnums: 1,
NumMessages: 8, NumMessages: 13,
NumExtensions: 0, NumExtensions: 0,
NumServices: 1, NumServices: 1,
}, },

View File

@ -903,3 +903,610 @@ var _ interface {
Cause() error Cause() error
ErrorName() string ErrorName() string
} = DeleteArtworkRecordRequestValidationError{} } = DeleteArtworkRecordRequestValidationError{}
// Validate checks the field values on GetArtworkLockHistoryRequest 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 *GetArtworkLockHistoryRequest) Validate() error {
return m.validate(false)
}
// ValidateAll checks the field values on GetArtworkLockHistoryRequest 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
// GetArtworkLockHistoryRequestMultiError, or nil if none found.
func (m *GetArtworkLockHistoryRequest) ValidateAll() error {
return m.validate(true)
}
func (m *GetArtworkLockHistoryRequest) validate(all bool) error {
if m == nil {
return nil
}
var errors []error
// no validation rules for ArtistUid
if len(errors) > 0 {
return GetArtworkLockHistoryRequestMultiError(errors)
}
return nil
}
// GetArtworkLockHistoryRequestMultiError is an error wrapping multiple
// validation errors returned by GetArtworkLockHistoryRequest.ValidateAll() if
// the designated constraints aren't met.
type GetArtworkLockHistoryRequestMultiError []error
// Error returns a concatenation of all the error messages it wraps.
func (m GetArtworkLockHistoryRequestMultiError) 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 GetArtworkLockHistoryRequestMultiError) AllErrors() []error { return m }
// GetArtworkLockHistoryRequestValidationError is the validation error returned
// by GetArtworkLockHistoryRequest.Validate if the designated constraints
// aren't met.
type GetArtworkLockHistoryRequestValidationError struct {
field string
reason string
cause error
key bool
}
// Field function returns field value.
func (e GetArtworkLockHistoryRequestValidationError) Field() string { return e.field }
// Reason function returns reason value.
func (e GetArtworkLockHistoryRequestValidationError) Reason() string { return e.reason }
// Cause function returns cause value.
func (e GetArtworkLockHistoryRequestValidationError) Cause() error { return e.cause }
// Key function returns key value.
func (e GetArtworkLockHistoryRequestValidationError) Key() bool { return e.key }
// ErrorName returns error name.
func (e GetArtworkLockHistoryRequestValidationError) ErrorName() string {
return "GetArtworkLockHistoryRequestValidationError"
}
// Error satisfies the builtin error interface
func (e GetArtworkLockHistoryRequestValidationError) 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 %sGetArtworkLockHistoryRequest.%s: %s%s",
key,
e.field,
e.reason,
cause)
}
var _ error = GetArtworkLockHistoryRequestValidationError{}
var _ interface {
Field() string
Reason() string
Key() bool
Cause() error
ErrorName() string
} = GetArtworkLockHistoryRequestValidationError{}
// Validate checks the field values on GetArtworkLockDetailRequest 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 *GetArtworkLockDetailRequest) Validate() error {
return m.validate(false)
}
// ValidateAll checks the field values on GetArtworkLockDetailRequest 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
// GetArtworkLockDetailRequestMultiError, or nil if none found.
func (m *GetArtworkLockDetailRequest) ValidateAll() error {
return m.validate(true)
}
func (m *GetArtworkLockDetailRequest) validate(all bool) error {
if m == nil {
return nil
}
var errors []error
// no validation rules for ArtworkUid
if len(errors) > 0 {
return GetArtworkLockDetailRequestMultiError(errors)
}
return nil
}
// GetArtworkLockDetailRequestMultiError is an error wrapping multiple
// validation errors returned by GetArtworkLockDetailRequest.ValidateAll() if
// the designated constraints aren't met.
type GetArtworkLockDetailRequestMultiError []error
// Error returns a concatenation of all the error messages it wraps.
func (m GetArtworkLockDetailRequestMultiError) 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 GetArtworkLockDetailRequestMultiError) AllErrors() []error { return m }
// GetArtworkLockDetailRequestValidationError is the validation error returned
// by GetArtworkLockDetailRequest.Validate if the designated constraints
// aren't met.
type GetArtworkLockDetailRequestValidationError struct {
field string
reason string
cause error
key bool
}
// Field function returns field value.
func (e GetArtworkLockDetailRequestValidationError) Field() string { return e.field }
// Reason function returns reason value.
func (e GetArtworkLockDetailRequestValidationError) Reason() string { return e.reason }
// Cause function returns cause value.
func (e GetArtworkLockDetailRequestValidationError) Cause() error { return e.cause }
// Key function returns key value.
func (e GetArtworkLockDetailRequestValidationError) Key() bool { return e.key }
// ErrorName returns error name.
func (e GetArtworkLockDetailRequestValidationError) ErrorName() string {
return "GetArtworkLockDetailRequestValidationError"
}
// Error satisfies the builtin error interface
func (e GetArtworkLockDetailRequestValidationError) 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 %sGetArtworkLockDetailRequest.%s: %s%s",
key,
e.field,
e.reason,
cause)
}
var _ error = GetArtworkLockDetailRequestValidationError{}
var _ interface {
Field() string
Reason() string
Key() bool
Cause() error
ErrorName() string
} = GetArtworkLockDetailRequestValidationError{}
// Validate checks the field values on ArtworkPreviewInfo 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 *ArtworkPreviewInfo) Validate() error {
return m.validate(false)
}
// ValidateAll checks the field values on ArtworkPreviewInfo 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
// ArtworkPreviewInfoMultiError, or nil if none found.
func (m *ArtworkPreviewInfo) ValidateAll() error {
return m.validate(true)
}
func (m *ArtworkPreviewInfo) validate(all bool) error {
if m == nil {
return nil
}
var errors []error
// no validation rules for ArtistUuid
// no validation rules for ArtworkName
// no validation rules for Length
// no validation rules for Width
// no validation rules for Ruler
// no validation rules for ArtistPhoto
// no validation rules for HdPic
// no validation rules for ArtworkUid
// no validation rules for CreatedDate
// no validation rules for LockStatus
if len(errors) > 0 {
return ArtworkPreviewInfoMultiError(errors)
}
return nil
}
// ArtworkPreviewInfoMultiError is an error wrapping multiple validation errors
// returned by ArtworkPreviewInfo.ValidateAll() if the designated constraints
// aren't met.
type ArtworkPreviewInfoMultiError []error
// Error returns a concatenation of all the error messages it wraps.
func (m ArtworkPreviewInfoMultiError) 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 ArtworkPreviewInfoMultiError) AllErrors() []error { return m }
// ArtworkPreviewInfoValidationError is the validation error returned by
// ArtworkPreviewInfo.Validate if the designated constraints aren't met.
type ArtworkPreviewInfoValidationError struct {
field string
reason string
cause error
key bool
}
// Field function returns field value.
func (e ArtworkPreviewInfoValidationError) Field() string { return e.field }
// Reason function returns reason value.
func (e ArtworkPreviewInfoValidationError) Reason() string { return e.reason }
// Cause function returns cause value.
func (e ArtworkPreviewInfoValidationError) Cause() error { return e.cause }
// Key function returns key value.
func (e ArtworkPreviewInfoValidationError) Key() bool { return e.key }
// ErrorName returns error name.
func (e ArtworkPreviewInfoValidationError) ErrorName() string {
return "ArtworkPreviewInfoValidationError"
}
// Error satisfies the builtin error interface
func (e ArtworkPreviewInfoValidationError) 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 %sArtworkPreviewInfo.%s: %s%s",
key,
e.field,
e.reason,
cause)
}
var _ error = ArtworkPreviewInfoValidationError{}
var _ interface {
Field() string
Reason() string
Key() bool
Cause() error
ErrorName() string
} = ArtworkPreviewInfoValidationError{}
// Validate checks the field values on GetArtworkLockHistoryResponse 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 *GetArtworkLockHistoryResponse) Validate() error {
return m.validate(false)
}
// ValidateAll checks the field values on GetArtworkLockHistoryResponse 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
// GetArtworkLockHistoryResponseMultiError, or nil if none found.
func (m *GetArtworkLockHistoryResponse) ValidateAll() error {
return m.validate(true)
}
func (m *GetArtworkLockHistoryResponse) validate(all bool) error {
if m == nil {
return nil
}
var errors []error
for idx, item := range m.GetGroupList() {
_, _ = idx, item
if all {
switch v := interface{}(item).(type) {
case interface{ ValidateAll() error }:
if err := v.ValidateAll(); err != nil {
errors = append(errors, GetArtworkLockHistoryResponseValidationError{
field: fmt.Sprintf("GroupList[%v]", idx),
reason: "embedded message failed validation",
cause: err,
})
}
case interface{ Validate() error }:
if err := v.Validate(); err != nil {
errors = append(errors, GetArtworkLockHistoryResponseValidationError{
field: fmt.Sprintf("GroupList[%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 GetArtworkLockHistoryResponseValidationError{
field: fmt.Sprintf("GroupList[%v]", idx),
reason: "embedded message failed validation",
cause: err,
}
}
}
}
if len(errors) > 0 {
return GetArtworkLockHistoryResponseMultiError(errors)
}
return nil
}
// GetArtworkLockHistoryResponseMultiError is an error wrapping multiple
// validation errors returned by GetArtworkLockHistoryResponse.ValidateAll()
// if the designated constraints aren't met.
type GetArtworkLockHistoryResponseMultiError []error
// Error returns a concatenation of all the error messages it wraps.
func (m GetArtworkLockHistoryResponseMultiError) 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 GetArtworkLockHistoryResponseMultiError) AllErrors() []error { return m }
// GetArtworkLockHistoryResponseValidationError is the validation error
// returned by GetArtworkLockHistoryResponse.Validate if the designated
// constraints aren't met.
type GetArtworkLockHistoryResponseValidationError struct {
field string
reason string
cause error
key bool
}
// Field function returns field value.
func (e GetArtworkLockHistoryResponseValidationError) Field() string { return e.field }
// Reason function returns reason value.
func (e GetArtworkLockHistoryResponseValidationError) Reason() string { return e.reason }
// Cause function returns cause value.
func (e GetArtworkLockHistoryResponseValidationError) Cause() error { return e.cause }
// Key function returns key value.
func (e GetArtworkLockHistoryResponseValidationError) Key() bool { return e.key }
// ErrorName returns error name.
func (e GetArtworkLockHistoryResponseValidationError) ErrorName() string {
return "GetArtworkLockHistoryResponseValidationError"
}
// Error satisfies the builtin error interface
func (e GetArtworkLockHistoryResponseValidationError) 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 %sGetArtworkLockHistoryResponse.%s: %s%s",
key,
e.field,
e.reason,
cause)
}
var _ error = GetArtworkLockHistoryResponseValidationError{}
var _ interface {
Field() string
Reason() string
Key() bool
Cause() error
ErrorName() string
} = GetArtworkLockHistoryResponseValidationError{}
// Validate checks the field values on ArtworkLockRecord 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 *ArtworkLockRecord) Validate() error {
return m.validate(false)
}
// ValidateAll checks the field values on ArtworkLockRecord 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
// ArtworkLockRecordMultiError, or nil if none found.
func (m *ArtworkLockRecord) ValidateAll() error {
return m.validate(true)
}
func (m *ArtworkLockRecord) validate(all bool) error {
if m == nil {
return nil
}
var errors []error
// no validation rules for LockGroup
for idx, item := range m.GetDataList() {
_, _ = idx, item
if all {
switch v := interface{}(item).(type) {
case interface{ ValidateAll() error }:
if err := v.ValidateAll(); err != nil {
errors = append(errors, ArtworkLockRecordValidationError{
field: fmt.Sprintf("DataList[%v]", idx),
reason: "embedded message failed validation",
cause: err,
})
}
case interface{ Validate() error }:
if err := v.Validate(); err != nil {
errors = append(errors, ArtworkLockRecordValidationError{
field: fmt.Sprintf("DataList[%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 ArtworkLockRecordValidationError{
field: fmt.Sprintf("DataList[%v]", idx),
reason: "embedded message failed validation",
cause: err,
}
}
}
}
if len(errors) > 0 {
return ArtworkLockRecordMultiError(errors)
}
return nil
}
// ArtworkLockRecordMultiError is an error wrapping multiple validation errors
// returned by ArtworkLockRecord.ValidateAll() if the designated constraints
// aren't met.
type ArtworkLockRecordMultiError []error
// Error returns a concatenation of all the error messages it wraps.
func (m ArtworkLockRecordMultiError) 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 ArtworkLockRecordMultiError) AllErrors() []error { return m }
// ArtworkLockRecordValidationError is the validation error returned by
// ArtworkLockRecord.Validate if the designated constraints aren't met.
type ArtworkLockRecordValidationError struct {
field string
reason string
cause error
key bool
}
// Field function returns field value.
func (e ArtworkLockRecordValidationError) Field() string { return e.field }
// Reason function returns reason value.
func (e ArtworkLockRecordValidationError) Reason() string { return e.reason }
// Cause function returns cause value.
func (e ArtworkLockRecordValidationError) Cause() error { return e.cause }
// Key function returns key value.
func (e ArtworkLockRecordValidationError) Key() bool { return e.key }
// ErrorName returns error name.
func (e ArtworkLockRecordValidationError) ErrorName() string {
return "ArtworkLockRecordValidationError"
}
// Error satisfies the builtin error interface
func (e ArtworkLockRecordValidationError) 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 %sArtworkLockRecord.%s: %s%s",
key,
e.field,
e.reason,
cause)
}
var _ error = ArtworkLockRecordValidationError{}
var _ interface {
Field() string
Reason() string
Key() bool
Cause() error
ErrorName() string
} = ArtworkLockRecordValidationError{}

View File

@ -32,7 +32,9 @@ type ArtistInfoArtworkClient interface {
CreateArtworkLockRecord(ctx context.Context, in *CreateArtworkLockRecordReq, opts ...grpc_go.CallOption) (*ArtworkCommonNoParams, common.ErrorWithAttachment) CreateArtworkLockRecord(ctx context.Context, in *CreateArtworkLockRecordReq, opts ...grpc_go.CallOption) (*ArtworkCommonNoParams, common.ErrorWithAttachment)
ArtworkLockAction(ctx context.Context, in *ArtworkLockActionRequest, opts ...grpc_go.CallOption) (*ArtworkCommonNoParams, common.ErrorWithAttachment) ArtworkLockAction(ctx context.Context, in *ArtworkLockActionRequest, opts ...grpc_go.CallOption) (*ArtworkCommonNoParams, common.ErrorWithAttachment)
GetArtworkLockRecords(ctx context.Context, in *GetArtworkLockRecordsRequest, opts ...grpc_go.CallOption) (*ArtworkLockList, common.ErrorWithAttachment) GetArtworkLockRecords(ctx context.Context, in *GetArtworkLockRecordsRequest, opts ...grpc_go.CallOption) (*ArtworkLockList, common.ErrorWithAttachment)
GetArtworkLockHistoryGroup(ctx context.Context, in *GetArtworkLockHistoryRequest, opts ...grpc_go.CallOption) (*GetArtworkLockHistoryResponse, common.ErrorWithAttachment)
DeleteArtworkRecord(ctx context.Context, in *DeleteArtworkRecordRequest, opts ...grpc_go.CallOption) (*ArtworkCommonNoParams, common.ErrorWithAttachment) DeleteArtworkRecord(ctx context.Context, in *DeleteArtworkRecordRequest, opts ...grpc_go.CallOption) (*ArtworkCommonNoParams, common.ErrorWithAttachment)
GetArtworkLockDetail(ctx context.Context, in *GetArtworkLockDetailRequest, opts ...grpc_go.CallOption) (*ArtistLockInfo, common.ErrorWithAttachment)
} }
type artistInfoArtworkClient struct { type artistInfoArtworkClient struct {
@ -43,7 +45,9 @@ type ArtistInfoArtworkClientImpl struct {
CreateArtworkLockRecord func(ctx context.Context, in *CreateArtworkLockRecordReq) (*ArtworkCommonNoParams, error) CreateArtworkLockRecord func(ctx context.Context, in *CreateArtworkLockRecordReq) (*ArtworkCommonNoParams, error)
ArtworkLockAction func(ctx context.Context, in *ArtworkLockActionRequest) (*ArtworkCommonNoParams, error) ArtworkLockAction func(ctx context.Context, in *ArtworkLockActionRequest) (*ArtworkCommonNoParams, error)
GetArtworkLockRecords func(ctx context.Context, in *GetArtworkLockRecordsRequest) (*ArtworkLockList, error) GetArtworkLockRecords func(ctx context.Context, in *GetArtworkLockRecordsRequest) (*ArtworkLockList, error)
GetArtworkLockHistoryGroup func(ctx context.Context, in *GetArtworkLockHistoryRequest) (*GetArtworkLockHistoryResponse, error)
DeleteArtworkRecord func(ctx context.Context, in *DeleteArtworkRecordRequest) (*ArtworkCommonNoParams, error) DeleteArtworkRecord func(ctx context.Context, in *DeleteArtworkRecordRequest) (*ArtworkCommonNoParams, error)
GetArtworkLockDetail func(ctx context.Context, in *GetArtworkLockDetailRequest) (*ArtistLockInfo, error)
} }
func (c *ArtistInfoArtworkClientImpl) GetDubboStub(cc *triple.TripleConn) ArtistInfoArtworkClient { func (c *ArtistInfoArtworkClientImpl) GetDubboStub(cc *triple.TripleConn) ArtistInfoArtworkClient {
@ -76,12 +80,24 @@ func (c *artistInfoArtworkClient) GetArtworkLockRecords(ctx context.Context, in
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetArtworkLockRecords", in, out) return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetArtworkLockRecords", in, out)
} }
func (c *artistInfoArtworkClient) GetArtworkLockHistoryGroup(ctx context.Context, in *GetArtworkLockHistoryRequest, opts ...grpc_go.CallOption) (*GetArtworkLockHistoryResponse, common.ErrorWithAttachment) {
out := new(GetArtworkLockHistoryResponse)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetArtworkLockHistoryGroup", in, out)
}
func (c *artistInfoArtworkClient) DeleteArtworkRecord(ctx context.Context, in *DeleteArtworkRecordRequest, opts ...grpc_go.CallOption) (*ArtworkCommonNoParams, common.ErrorWithAttachment) { func (c *artistInfoArtworkClient) DeleteArtworkRecord(ctx context.Context, in *DeleteArtworkRecordRequest, opts ...grpc_go.CallOption) (*ArtworkCommonNoParams, common.ErrorWithAttachment) {
out := new(ArtworkCommonNoParams) out := new(ArtworkCommonNoParams)
interfaceKey := ctx.Value(constant.InterfaceKey).(string) interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/DeleteArtworkRecord", in, out) return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/DeleteArtworkRecord", in, out)
} }
func (c *artistInfoArtworkClient) GetArtworkLockDetail(ctx context.Context, in *GetArtworkLockDetailRequest, opts ...grpc_go.CallOption) (*ArtistLockInfo, common.ErrorWithAttachment) {
out := new(ArtistLockInfo)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetArtworkLockDetail", in, out)
}
// ArtistInfoArtworkServer is the server API for ArtistInfoArtwork service. // ArtistInfoArtworkServer is the server API for ArtistInfoArtwork service.
// All implementations must embed UnimplementedArtistInfoArtworkServer // All implementations must embed UnimplementedArtistInfoArtworkServer
// for forward compatibility // for forward compatibility
@ -90,7 +106,9 @@ type ArtistInfoArtworkServer interface {
CreateArtworkLockRecord(context.Context, *CreateArtworkLockRecordReq) (*ArtworkCommonNoParams, error) CreateArtworkLockRecord(context.Context, *CreateArtworkLockRecordReq) (*ArtworkCommonNoParams, error)
ArtworkLockAction(context.Context, *ArtworkLockActionRequest) (*ArtworkCommonNoParams, error) ArtworkLockAction(context.Context, *ArtworkLockActionRequest) (*ArtworkCommonNoParams, error)
GetArtworkLockRecords(context.Context, *GetArtworkLockRecordsRequest) (*ArtworkLockList, error) GetArtworkLockRecords(context.Context, *GetArtworkLockRecordsRequest) (*ArtworkLockList, error)
GetArtworkLockHistoryGroup(context.Context, *GetArtworkLockHistoryRequest) (*GetArtworkLockHistoryResponse, error)
DeleteArtworkRecord(context.Context, *DeleteArtworkRecordRequest) (*ArtworkCommonNoParams, error) DeleteArtworkRecord(context.Context, *DeleteArtworkRecordRequest) (*ArtworkCommonNoParams, error)
GetArtworkLockDetail(context.Context, *GetArtworkLockDetailRequest) (*ArtistLockInfo, error)
mustEmbedUnimplementedArtistInfoArtworkServer() mustEmbedUnimplementedArtistInfoArtworkServer()
} }
@ -108,9 +126,15 @@ func (UnimplementedArtistInfoArtworkServer) ArtworkLockAction(context.Context, *
func (UnimplementedArtistInfoArtworkServer) GetArtworkLockRecords(context.Context, *GetArtworkLockRecordsRequest) (*ArtworkLockList, error) { func (UnimplementedArtistInfoArtworkServer) GetArtworkLockRecords(context.Context, *GetArtworkLockRecordsRequest) (*ArtworkLockList, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetArtworkLockRecords not implemented") return nil, status.Errorf(codes.Unimplemented, "method GetArtworkLockRecords not implemented")
} }
func (UnimplementedArtistInfoArtworkServer) GetArtworkLockHistoryGroup(context.Context, *GetArtworkLockHistoryRequest) (*GetArtworkLockHistoryResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetArtworkLockHistoryGroup not implemented")
}
func (UnimplementedArtistInfoArtworkServer) DeleteArtworkRecord(context.Context, *DeleteArtworkRecordRequest) (*ArtworkCommonNoParams, error) { func (UnimplementedArtistInfoArtworkServer) DeleteArtworkRecord(context.Context, *DeleteArtworkRecordRequest) (*ArtworkCommonNoParams, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteArtworkRecord not implemented") return nil, status.Errorf(codes.Unimplemented, "method DeleteArtworkRecord not implemented")
} }
func (UnimplementedArtistInfoArtworkServer) GetArtworkLockDetail(context.Context, *GetArtworkLockDetailRequest) (*ArtistLockInfo, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetArtworkLockDetail not implemented")
}
func (s *UnimplementedArtistInfoArtworkServer) XXX_SetProxyImpl(impl protocol.Invoker) { func (s *UnimplementedArtistInfoArtworkServer) XXX_SetProxyImpl(impl protocol.Invoker) {
s.proxyImpl = impl s.proxyImpl = impl
} }
@ -226,6 +250,35 @@ func _ArtistInfoArtwork_GetArtworkLockRecords_Handler(srv interface{}, ctx conte
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _ArtistInfoArtwork_GetArtworkLockHistoryGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(GetArtworkLockHistoryRequest)
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("GetArtworkLockHistoryGroup", 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 _ArtistInfoArtwork_DeleteArtworkRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { func _ArtistInfoArtwork_DeleteArtworkRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteArtworkRecordRequest) in := new(DeleteArtworkRecordRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
@ -255,6 +308,35 @@ func _ArtistInfoArtwork_DeleteArtworkRecord_Handler(srv interface{}, ctx context
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _ArtistInfoArtwork_GetArtworkLockDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(GetArtworkLockDetailRequest)
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("GetArtworkLockDetail", 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)
}
// ArtistInfoArtwork_ServiceDesc is the grpc_go.ServiceDesc for ArtistInfoArtwork service. // ArtistInfoArtwork_ServiceDesc is the grpc_go.ServiceDesc for ArtistInfoArtwork service.
// It's only intended for direct use with grpc_go.RegisterService, // It's only intended for direct use with grpc_go.RegisterService,
// and not to be introspected or modified (even as a copy) // and not to be introspected or modified (even as a copy)
@ -274,10 +356,18 @@ var ArtistInfoArtwork_ServiceDesc = grpc_go.ServiceDesc{
MethodName: "GetArtworkLockRecords", MethodName: "GetArtworkLockRecords",
Handler: _ArtistInfoArtwork_GetArtworkLockRecords_Handler, Handler: _ArtistInfoArtwork_GetArtworkLockRecords_Handler,
}, },
{
MethodName: "GetArtworkLockHistoryGroup",
Handler: _ArtistInfoArtwork_GetArtworkLockHistoryGroup_Handler,
},
{ {
MethodName: "DeleteArtworkRecord", MethodName: "DeleteArtworkRecord",
Handler: _ArtistInfoArtwork_DeleteArtworkRecord_Handler, Handler: _ArtistInfoArtwork_DeleteArtworkRecord_Handler,
}, },
{
MethodName: "GetArtworkLockDetail",
Handler: _ArtistInfoArtwork_GetArtworkLockDetail_Handler,
},
}, },
Streams: []grpc_go.StreamDesc{}, Streams: []grpc_go.StreamDesc{},
Metadata: "pb/artistinfoArtwork.proto", Metadata: "pb/artistinfoArtwork.proto",

View File

@ -10,7 +10,9 @@ service ArtistInfoArtwork {
rpc CreateArtworkLockRecord(CreateArtworkLockRecordReq)returns(ArtworkCommonNoParams){} // rpc CreateArtworkLockRecord(CreateArtworkLockRecordReq)returns(ArtworkCommonNoParams){} //
rpc ArtworkLockAction(ArtworkLockActionRequest)returns(ArtworkCommonNoParams){} // rpc ArtworkLockAction(ArtworkLockActionRequest)returns(ArtworkCommonNoParams){} //
rpc GetArtworkLockRecords(GetArtworkLockRecordsRequest)returns(ArtworkLockList){} //uid列表 rpc GetArtworkLockRecords(GetArtworkLockRecordsRequest)returns(ArtworkLockList){} //uid列表
rpc GetArtworkLockHistoryGroup(GetArtworkLockHistoryRequest)returns(GetArtworkLockHistoryResponse){}//
rpc DeleteArtworkRecord(DeleteArtworkRecordRequest)returns(ArtworkCommonNoParams){} // rpc DeleteArtworkRecord(DeleteArtworkRecordRequest)returns(ArtworkCommonNoParams){} //
rpc GetArtworkLockDetail(GetArtworkLockDetailRequest)returns(ArtistLockInfo){}//
} }
message ArtworkCommonNoParams{} message ArtworkCommonNoParams{}
@ -55,3 +57,31 @@ message ArtworkUidList{
message DeleteArtworkRecordRequest{ message DeleteArtworkRecordRequest{
repeated string artworkUids =1 ; repeated string artworkUids =1 ;
} }
message GetArtworkLockHistoryRequest{
string artistUid=1;
}
message GetArtworkLockDetailRequest{
string artworkUid=1 [(validate.rules).message.required = true];//uid;
}
//----
message ArtworkPreviewInfo {
string artistUuid=1;
string artworkName=2;
int32 length=3;
int32 width=4;
int32 ruler=5;
repeated string createdAddress=6;
string artistPhoto=7;
string hdPic=8;
string artworkUid=9;
string createdDate=10;
int32 lockStatus=11;
}
message GetArtworkLockHistoryResponse{
repeated ArtworkLockRecord groupList =1;
}
message ArtworkLockRecord{
string lockGroup =1;
repeated ArtworkPreviewInfo dataList =2;
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,336 @@
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: pb/artwork.proto
package artwork
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/protobuf/types/descriptorpb"
_ "github.com/mwitkow/go-proto-validators"
github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
func (this *TestReq) Validate() error {
return nil
}
func (this *TestResp) Validate() error {
return nil
}
func (this *CreArtProRequest) Validate() error {
if this.ArtworkName == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ArtworkName", fmt.Errorf(`画作名字不能为空`))
}
if this.ArtistName == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ArtistName", fmt.Errorf(`画家名字不能为空`))
}
if this.ArtistUuid == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ArtistUuid", fmt.Errorf(`请选择画家`))
}
if !(this.ArtworkType > 0) {
return github_com_mwitkow_go_proto_validators.FieldError("ArtworkType", fmt.Errorf(`请选择创作类型`))
}
if !(this.CreateSource > 0) {
return github_com_mwitkow_go_proto_validators.FieldError("CreateSource", fmt.Errorf(`创建来源不合法`))
}
return nil
}
func (this *ArtworkAddRes) Validate() error {
return nil
}
func (this *CreArtProResponse) Validate() error {
if this.Data != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Data); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("Data", err)
}
}
return nil
}
func (this *UpdateMInfoRequest) Validate() error {
return nil
}
func (this *UpdateMInfoResponse) Validate() error {
return nil
}
func (this *UpdateExtDataRequest) Validate() error {
return nil
}
func (this *UpdateExtDataResponse) Validate() error {
return nil
}
func (this *UpdateDigiInfoRequest) Validate() error {
return nil
}
func (this *UpdateDigiInfoResponse) Validate() error {
return nil
}
func (this *UpdateTagsRequest) Validate() error {
return nil
}
func (this *UpdateTagsResponse) Validate() error {
return nil
}
func (this *UpdateAuthDataRequest) 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 *UpdateAuthDataRequest_BitMap) Validate() error {
return nil
}
func (this *UpdateAuthDataResponse) Validate() error {
return nil
}
func (this *UpdateAuthImgRequest) Validate() error {
return nil
}
func (this *UpdateAuthImgResponse) Validate() error {
return nil
}
func (this *UpdateStorageRequest) Validate() error {
if this.ArtworkUuid == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ArtworkUuid", fmt.Errorf(`画家ID不能为空`))
}
if !(this.Type > 0) {
return github_com_mwitkow_go_proto_validators.FieldError("Type", fmt.Errorf(`类型不合法`))
}
if this.Detail == "" {
return github_com_mwitkow_go_proto_validators.FieldError("Detail", fmt.Errorf(`详情不能为空`))
}
if this.ArtistData != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ArtistData); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("ArtistData", err)
}
}
return nil
}
func (this *UpdateStorageRequest_ArtistInfo) Validate() error {
return nil
}
func (this *UpdateStorageResponse) Validate() error {
return nil
}
func (this *UploadBatchImgRequest) 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 *UploadBatchImgRequest_ImgInfo) Validate() error {
return nil
}
func (this *UploadBatchImgResponse) Validate() error {
return nil
}
func (this *ArtworkDetailRequest) Validate() error {
if this.ArtworkUuid == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ArtworkUuid", fmt.Errorf(`画作ID不能为空`))
}
return nil
}
func (this *ArtworkDetailResponse) Validate() error {
if this.ProfileInfo != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ProfileInfo); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("ProfileInfo", err)
}
}
for _, item := range this.MarketInfo {
if item != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("MarketInfo", err)
}
}
}
if this.ExtDataInfo != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ExtDataInfo); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("ExtDataInfo", err)
}
}
if this.DigiInfo != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.DigiInfo); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("DigiInfo", err)
}
}
if this.AuthData != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.AuthData); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("AuthData", err)
}
}
for _, item := range this.TagsData {
if item != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("TagsData", err)
}
}
}
if this.CopyRightInfo != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.CopyRightInfo); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("CopyRightInfo", err)
}
}
for _, item := range this.VerifyData {
if item != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("VerifyData", err)
}
}
}
return nil
}
func (this *ArtworkDetailResponse_TagsInfo) Validate() error {
return nil
}
func (this *StorageInfoRequest) Validate() error {
return nil
}
func (this *StorageInfoResponse) Validate() error {
for _, item := range this.StorageData {
if item != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("StorageData", err)
}
}
}
return nil
}
func (this *MarketInfoRequest) Validate() error {
return nil
}
func (this *MarketInfoResponse) Validate() error {
for _, item := range this.MarketInfo {
if item != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("MarketInfo", err)
}
}
}
return nil
}
func (this *UpArtistInfoRequest) 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 *UpArtistInfoRequest_ArtistInfo) Validate() error {
return nil
}
func (this *UpArtistInfoResponse) Validate() error {
return nil
}
func (this *RandomHashRequest) Validate() error {
return nil
}
func (this *RandomHashResponse) Validate() error {
return nil
}
func (this *UpdateCopyrightInfoRequest) Validate() error {
if this.ArtworkUuid == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ArtworkUuid", fmt.Errorf(`请选择画作`))
}
return nil
}
func (this *UpdateCopyrightInfoResponse) Validate() error {
return nil
}
func (this *UpdateTransferInfoRequest) Validate() error {
if this.ArtworkUuid == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ArtworkUuid", fmt.Errorf(`请选择画作`))
}
return nil
}
func (this *UpdateTransferInfoResponse) Validate() error {
return nil
}
func (this *TransferInfoListRequest) Validate() error {
if this.ArtworkUuid == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ArtworkUuid", fmt.Errorf(`请选择画作`))
}
return nil
}
func (this *TransferInfoListResponse) 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 *UpdateRulerInfoRequest) Validate() error {
return nil
}
func (this *UpdateRulerInfoResponse) Validate() error {
return nil
}
func (this *UpdateAwPriceRunRequest) 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 *UpdateAwPriceRunRequest_Info) Validate() error {
return nil
}
func (this *UpdateAwPriceRunResponse) Validate() error {
return nil
}
func (this *UpdateCrHashByTfnumRequest) 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 *UpdateCrHashByTfnumRequest_Info) Validate() error {
return nil
}
func (this *UpdateCrHashByTfnumResponse) Validate() error {
return nil
}
func (this *BitMap) Validate() error {
return nil
}
func (this *UpdateVerifyDataReq) 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)
}
}
}
if this.ArtworkUuid == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ArtworkUuid", fmt.Errorf(`请选择画作`))
}
return nil
}
func (this *UpdateVerifyDataResp) Validate() error {
return nil
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,302 @@
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: pb/artwork_query.proto
package artwork_query
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
_ "github.com/mwitkow/go-proto-validators"
_ "google.golang.org/protobuf/types/descriptorpb"
_ "google.golang.org/protobuf/types/known/wrapperspb"
github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
func (this *ArtworkListRequest) Validate() error {
if this.StorageStatus != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.StorageStatus); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("StorageStatus", err)
}
}
return nil
}
func (this *ArtworkListResponse) 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 *ArtworkListResponse_Info) Validate() error {
return nil
}
func (this *DelAwRequest) Validate() error {
if this.ArtworkUuid == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ArtworkUuid", fmt.Errorf(`请选择画作`))
}
return nil
}
func (this *DelAwResponse) Validate() error {
return nil
}
func (this *DelAuthDataRequest) Validate() error {
return nil
}
func (this *DelAuthDataResponse) Validate() error {
return nil
}
func (this *DelMarketDataRequest) Validate() error {
return nil
}
func (this *DelMarketDataResponse) Validate() error {
return nil
}
func (this *DelStorageDataRequest) Validate() error {
return nil
}
func (this *DelStorageDataResponse) Validate() error {
return nil
}
func (this *TagsListRequest) Validate() error {
return nil
}
func (this *TagsData) Validate() error {
if this.TagsFirst != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TagsFirst); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("TagsFirst", err)
}
}
for _, item := range this.List {
if item != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("List", err)
}
}
}
return nil
}
func (this *TagsData_TagsInfo) Validate() error {
return nil
}
func (this *TagsListResponse) Validate() error {
for _, item := range this.TagsData {
if item != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("TagsData", err)
}
}
}
return nil
}
func (this *CatListRequest) Validate() error {
if !(this.Pid > 0) {
return github_com_mwitkow_go_proto_validators.FieldError("Pid", fmt.Errorf(`分类ID不能为0`))
}
return nil
}
func (this *CatListResponse) 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 *CatListResponse_CatInfo) Validate() error {
return nil
}
func (this *ImgMatchRequest) Validate() error {
if this.ImgUrl == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ImgUrl", fmt.Errorf(`图片不能为空`))
}
if !(this.UseType > 0) {
return github_com_mwitkow_go_proto_validators.FieldError("UseType", fmt.Errorf(`用途不能为空`))
}
return nil
}
func (this *ImgMatchResponse) Validate() error {
return nil
}
func (this *BatchBitMapRequest) Validate() error {
for _, item := range this.BitData {
if item != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("BitData", err)
}
}
}
return nil
}
func (this *BatchBitMapRequest_BitInfo) Validate() error {
return nil
}
func (this *BatchBitMapResponse) Validate() error {
return nil
}
func (this *CheckArtworkNameRequest) Validate() error {
if this.ArtworkName == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ArtworkName", fmt.Errorf(`画作名不能为空`))
}
return nil
}
func (this *CheckArtworkNameResponse) Validate() error {
return nil
}
func (this *CheckArtworkTfnumRequest) Validate() error {
if this.Tfnum == "" {
return github_com_mwitkow_go_proto_validators.FieldError("Tfnum", fmt.Errorf(`编号不能为空`))
}
return nil
}
func (this *CheckArtworkTfnumResponse) Validate() error {
return nil
}
func (this *UpdateThirdPartyRequest) Validate() error {
if this.ArtworkUuid == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ArtworkUuid", fmt.Errorf(`请选择画作`))
}
if this.ThirdComment == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ThirdComment", fmt.Errorf(`属性值不能为空`))
}
return nil
}
func (this *UpdateThirdPartyResponse) Validate() error {
return nil
}
func (this *DelThirdPartyRequest) Validate() error {
return nil
}
func (this *DelThirdPartyResponse) Validate() error {
return nil
}
func (this *ThirdPartyListRequest) Validate() error {
if this.ArtworkUuid == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ArtworkUuid", fmt.Errorf(`请选择画作`))
}
return nil
}
func (this *ThirdPartyListResponse) Validate() error {
return nil
}
func (this *UpdateAwStockStatusRequest) Validate() error {
return nil
}
func (this *UpdateAwStockStatusResponse) Validate() error {
return nil
}
func (this *SyncArtShowIdRequest) 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 *SyncArtShowIdRequestInfo) Validate() error {
return nil
}
func (this *SyncArtShowIdResponse) Validate() error {
return nil
}
func (this *ShelfListRequest) Validate() error {
return nil
}
func (this *ShelfListResponse) 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 *ShelfListResponse_ShelfInfo) Validate() error {
return nil
}
func (this *UpdateCopyrightHashRequest) Validate() error {
if this.ArtworkUuid == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ArtworkUuid", fmt.Errorf(`请选择画家`))
}
if this.CopyrightPath == "" {
return github_com_mwitkow_go_proto_validators.FieldError("CopyrightPath", fmt.Errorf(`版权图路径不能为空`))
}
return nil
}
func (this *UpdateCopyrightHashResponse) Validate() error {
return nil
}
func (this *ExportArtworkRequest) Validate() error {
if this.ColumnId == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ColumnId", fmt.Errorf(`请选择字段`))
}
return nil
}
func (this *ExportArtworkResponse) 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 *ExportArtworkResponse_Info) Validate() error {
return nil
}
func (this *TagIdKvListRequest) Validate() error {
return nil
}
func (this *TagIdKvListResponse) Validate() error {
// Validation of proto3 map<> fields is unsupported.
return nil
}
func (this *ExportFieldListRequest) Validate() error {
if !(this.ExportType > 0) {
return github_com_mwitkow_go_proto_validators.FieldError("ExportType", fmt.Errorf(`导出类型必须大于0`))
}
return nil
}
func (this *ExportFieldListResponse) 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 *ExportFieldListResponse_Info) Validate() error {
return nil
}
func (this *ArtworkDataByShowIdRequest) Validate() error {
return nil
}
func (this *ArtworkDataByShowIdResponse) 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 *ArtworkDataByShowIdResponse_Info) Validate() error {
return nil
}

File diff suppressed because it is too large Load Diff

2002
pb/old/artwork/artwork.pb.go Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,507 @@
// Code generated by protoc-gen-go-triple. DO NOT EDIT.
// versions:
// - protoc-gen-go-triple v1.0.5
// - protoc v3.9.0
// source: pb/artwork/artwork.proto
package artwork
import (
context "context"
protocol "dubbo.apache.org/dubbo-go/v3/protocol"
dubbo3 "dubbo.apache.org/dubbo-go/v3/protocol/dubbo3"
invocation "dubbo.apache.org/dubbo-go/v3/protocol/invocation"
grpc_go "github.com/dubbogo/grpc-go"
codes "github.com/dubbogo/grpc-go/codes"
metadata "github.com/dubbogo/grpc-go/metadata"
status "github.com/dubbogo/grpc-go/status"
common "github.com/dubbogo/triple/pkg/common"
constant "github.com/dubbogo/triple/pkg/common/constant"
triple "github.com/dubbogo/triple/pkg/triple"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc_go.SupportPackageIsVersion7
// ArtworkClient is the client API for Artwork 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 ArtworkClient interface {
ArtworkAdd(ctx context.Context, in *ArtworkAddRequest, opts ...grpc_go.CallOption) (*ArtworkAddRespond, common.ErrorWithAttachment)
CheckUserLock(ctx context.Context, in *CheckUserLockRequest, opts ...grpc_go.CallOption) (*CheckUserLockRespond, common.ErrorWithAttachment)
UpdateArtwork(ctx context.Context, in *UpdateArtworkRequest, opts ...grpc_go.CallOption) (*UpdateArtworkRespond, common.ErrorWithAttachment)
GetArtworkList(ctx context.Context, in *GetArtworkListRequest, opts ...grpc_go.CallOption) (*GetArtworkListRespond, common.ErrorWithAttachment)
ApproveArtwork(ctx context.Context, in *ApproveArtworkRequest, opts ...grpc_go.CallOption) (*ApproveArtworkRespond, common.ErrorWithAttachment)
GetMgmtArtworkList(ctx context.Context, in *GetMgmtArtworkListRequest, opts ...grpc_go.CallOption) (*GetMgmtArtworkListRespond, common.ErrorWithAttachment)
GetArtwork(ctx context.Context, in *GetArtworkRequest, opts ...grpc_go.CallOption) (*GetArtworkRespond, common.ErrorWithAttachment)
DelArtwork(ctx context.Context, in *DelArtworkRequest, opts ...grpc_go.CallOption) (*DelArtworkRespond, common.ErrorWithAttachment)
UploadArtwork(ctx context.Context, in *UploadArtworkRequest, opts ...grpc_go.CallOption) (*UploadArtworkRespond, common.ErrorWithAttachment)
}
type artworkClient struct {
cc *triple.TripleConn
}
type ArtworkClientImpl struct {
ArtworkAdd func(ctx context.Context, in *ArtworkAddRequest) (*ArtworkAddRespond, error)
CheckUserLock func(ctx context.Context, in *CheckUserLockRequest) (*CheckUserLockRespond, error)
UpdateArtwork func(ctx context.Context, in *UpdateArtworkRequest) (*UpdateArtworkRespond, error)
GetArtworkList func(ctx context.Context, in *GetArtworkListRequest) (*GetArtworkListRespond, error)
ApproveArtwork func(ctx context.Context, in *ApproveArtworkRequest) (*ApproveArtworkRespond, error)
GetMgmtArtworkList func(ctx context.Context, in *GetMgmtArtworkListRequest) (*GetMgmtArtworkListRespond, error)
GetArtwork func(ctx context.Context, in *GetArtworkRequest) (*GetArtworkRespond, error)
DelArtwork func(ctx context.Context, in *DelArtworkRequest) (*DelArtworkRespond, error)
UploadArtwork func(ctx context.Context, in *UploadArtworkRequest) (*UploadArtworkRespond, error)
}
func (c *ArtworkClientImpl) GetDubboStub(cc *triple.TripleConn) ArtworkClient {
return NewArtworkClient(cc)
}
func (c *ArtworkClientImpl) XXX_InterfaceName() string {
return "artwork.Artwork"
}
func NewArtworkClient(cc *triple.TripleConn) ArtworkClient {
return &artworkClient{cc}
}
func (c *artworkClient) ArtworkAdd(ctx context.Context, in *ArtworkAddRequest, opts ...grpc_go.CallOption) (*ArtworkAddRespond, common.ErrorWithAttachment) {
out := new(ArtworkAddRespond)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/ArtworkAdd", in, out)
}
func (c *artworkClient) CheckUserLock(ctx context.Context, in *CheckUserLockRequest, opts ...grpc_go.CallOption) (*CheckUserLockRespond, common.ErrorWithAttachment) {
out := new(CheckUserLockRespond)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/CheckUserLock", in, out)
}
func (c *artworkClient) UpdateArtwork(ctx context.Context, in *UpdateArtworkRequest, opts ...grpc_go.CallOption) (*UpdateArtworkRespond, common.ErrorWithAttachment) {
out := new(UpdateArtworkRespond)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/UpdateArtwork", in, out)
}
func (c *artworkClient) GetArtworkList(ctx context.Context, in *GetArtworkListRequest, opts ...grpc_go.CallOption) (*GetArtworkListRespond, common.ErrorWithAttachment) {
out := new(GetArtworkListRespond)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetArtworkList", in, out)
}
func (c *artworkClient) ApproveArtwork(ctx context.Context, in *ApproveArtworkRequest, opts ...grpc_go.CallOption) (*ApproveArtworkRespond, common.ErrorWithAttachment) {
out := new(ApproveArtworkRespond)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/ApproveArtwork", in, out)
}
func (c *artworkClient) GetMgmtArtworkList(ctx context.Context, in *GetMgmtArtworkListRequest, opts ...grpc_go.CallOption) (*GetMgmtArtworkListRespond, common.ErrorWithAttachment) {
out := new(GetMgmtArtworkListRespond)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetMgmtArtworkList", in, out)
}
func (c *artworkClient) GetArtwork(ctx context.Context, in *GetArtworkRequest, opts ...grpc_go.CallOption) (*GetArtworkRespond, common.ErrorWithAttachment) {
out := new(GetArtworkRespond)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetArtwork", in, out)
}
func (c *artworkClient) DelArtwork(ctx context.Context, in *DelArtworkRequest, opts ...grpc_go.CallOption) (*DelArtworkRespond, common.ErrorWithAttachment) {
out := new(DelArtworkRespond)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/DelArtwork", in, out)
}
func (c *artworkClient) UploadArtwork(ctx context.Context, in *UploadArtworkRequest, opts ...grpc_go.CallOption) (*UploadArtworkRespond, common.ErrorWithAttachment) {
out := new(UploadArtworkRespond)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/UploadArtwork", in, out)
}
// ArtworkServer is the server API for Artwork service.
// All implementations must embed UnimplementedArtworkServer
// for forward compatibility
type ArtworkServer interface {
ArtworkAdd(context.Context, *ArtworkAddRequest) (*ArtworkAddRespond, error)
CheckUserLock(context.Context, *CheckUserLockRequest) (*CheckUserLockRespond, error)
UpdateArtwork(context.Context, *UpdateArtworkRequest) (*UpdateArtworkRespond, error)
GetArtworkList(context.Context, *GetArtworkListRequest) (*GetArtworkListRespond, error)
ApproveArtwork(context.Context, *ApproveArtworkRequest) (*ApproveArtworkRespond, error)
GetMgmtArtworkList(context.Context, *GetMgmtArtworkListRequest) (*GetMgmtArtworkListRespond, error)
GetArtwork(context.Context, *GetArtworkRequest) (*GetArtworkRespond, error)
DelArtwork(context.Context, *DelArtworkRequest) (*DelArtworkRespond, error)
UploadArtwork(context.Context, *UploadArtworkRequest) (*UploadArtworkRespond, error)
mustEmbedUnimplementedArtworkServer()
}
// UnimplementedArtworkServer must be embedded to have forward compatible implementations.
type UnimplementedArtworkServer struct {
proxyImpl protocol.Invoker
}
func (UnimplementedArtworkServer) ArtworkAdd(context.Context, *ArtworkAddRequest) (*ArtworkAddRespond, error) {
return nil, status.Errorf(codes.Unimplemented, "method ArtworkAdd not implemented")
}
func (UnimplementedArtworkServer) CheckUserLock(context.Context, *CheckUserLockRequest) (*CheckUserLockRespond, error) {
return nil, status.Errorf(codes.Unimplemented, "method CheckUserLock not implemented")
}
func (UnimplementedArtworkServer) UpdateArtwork(context.Context, *UpdateArtworkRequest) (*UpdateArtworkRespond, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateArtwork not implemented")
}
func (UnimplementedArtworkServer) GetArtworkList(context.Context, *GetArtworkListRequest) (*GetArtworkListRespond, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetArtworkList not implemented")
}
func (UnimplementedArtworkServer) ApproveArtwork(context.Context, *ApproveArtworkRequest) (*ApproveArtworkRespond, error) {
return nil, status.Errorf(codes.Unimplemented, "method ApproveArtwork not implemented")
}
func (UnimplementedArtworkServer) GetMgmtArtworkList(context.Context, *GetMgmtArtworkListRequest) (*GetMgmtArtworkListRespond, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetMgmtArtworkList not implemented")
}
func (UnimplementedArtworkServer) GetArtwork(context.Context, *GetArtworkRequest) (*GetArtworkRespond, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetArtwork not implemented")
}
func (UnimplementedArtworkServer) DelArtwork(context.Context, *DelArtworkRequest) (*DelArtworkRespond, error) {
return nil, status.Errorf(codes.Unimplemented, "method DelArtwork not implemented")
}
func (UnimplementedArtworkServer) UploadArtwork(context.Context, *UploadArtworkRequest) (*UploadArtworkRespond, error) {
return nil, status.Errorf(codes.Unimplemented, "method UploadArtwork not implemented")
}
func (s *UnimplementedArtworkServer) XXX_SetProxyImpl(impl protocol.Invoker) {
s.proxyImpl = impl
}
func (s *UnimplementedArtworkServer) XXX_GetProxyImpl() protocol.Invoker {
return s.proxyImpl
}
func (s *UnimplementedArtworkServer) XXX_ServiceDesc() *grpc_go.ServiceDesc {
return &Artwork_ServiceDesc
}
func (s *UnimplementedArtworkServer) XXX_InterfaceName() string {
return "artwork.Artwork"
}
func (UnimplementedArtworkServer) mustEmbedUnimplementedArtworkServer() {}
// UnsafeArtworkServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ArtworkServer will
// result in compilation errors.
type UnsafeArtworkServer interface {
mustEmbedUnimplementedArtworkServer()
}
func RegisterArtworkServer(s grpc_go.ServiceRegistrar, srv ArtworkServer) {
s.RegisterService(&Artwork_ServiceDesc, srv)
}
func _Artwork_ArtworkAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(ArtworkAddRequest)
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("ArtworkAdd", 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 _Artwork_CheckUserLock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(CheckUserLockRequest)
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("CheckUserLock", 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 _Artwork_UpdateArtwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateArtworkRequest)
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("UpdateArtwork", 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 _Artwork_GetArtworkList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(GetArtworkListRequest)
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("GetArtworkList", 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 _Artwork_ApproveArtwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(ApproveArtworkRequest)
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("ApproveArtwork", 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 _Artwork_GetMgmtArtworkList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(GetMgmtArtworkListRequest)
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("GetMgmtArtworkList", 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 _Artwork_GetArtwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(GetArtworkRequest)
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("GetArtwork", 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 _Artwork_DelArtwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(DelArtworkRequest)
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("DelArtwork", 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 _Artwork_UploadArtwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(UploadArtworkRequest)
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("UploadArtwork", 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)
}
// Artwork_ServiceDesc is the grpc_go.ServiceDesc for Artwork service.
// It's only intended for direct use with grpc_go.RegisterService,
// and not to be introspected or modified (even as a copy)
var Artwork_ServiceDesc = grpc_go.ServiceDesc{
ServiceName: "artwork.Artwork",
HandlerType: (*ArtworkServer)(nil),
Methods: []grpc_go.MethodDesc{
{
MethodName: "ArtworkAdd",
Handler: _Artwork_ArtworkAdd_Handler,
},
{
MethodName: "CheckUserLock",
Handler: _Artwork_CheckUserLock_Handler,
},
{
MethodName: "UpdateArtwork",
Handler: _Artwork_UpdateArtwork_Handler,
},
{
MethodName: "GetArtworkList",
Handler: _Artwork_GetArtworkList_Handler,
},
{
MethodName: "ApproveArtwork",
Handler: _Artwork_ApproveArtwork_Handler,
},
{
MethodName: "GetMgmtArtworkList",
Handler: _Artwork_GetMgmtArtworkList_Handler,
},
{
MethodName: "GetArtwork",
Handler: _Artwork_GetArtwork_Handler,
},
{
MethodName: "DelArtwork",
Handler: _Artwork_DelArtwork_Handler,
},
{
MethodName: "UploadArtwork",
Handler: _Artwork_UploadArtwork_Handler,
},
},
Streams: []grpc_go.StreamDesc{},
Metadata: "pb/artwork/artwork.proto",
}

View File

@ -2,6 +2,9 @@ package service
import ( import (
"dubbo.apache.org/dubbo-go/v3/config" "dubbo.apache.org/dubbo-go/v3/config"
"github.com/fonchain/fonchain-artistinfo/pb/artwork"
"github.com/fonchain/fonchain-artistinfo/pb/artwork_query"
//_ "dubbo.apache.org/dubbo-go/v3/imports" //_ "dubbo.apache.org/dubbo-go/v3/imports"
"github.com/fonchain/fonchain-artistinfo/pb/account" "github.com/fonchain/fonchain-artistinfo/pb/account"
"github.com/fonchain/fonchain-artistinfo/pb/artist" "github.com/fonchain/fonchain-artistinfo/pb/artist"
@ -11,11 +14,15 @@ var (
GrpcArtistImpl = new(artist.ArtistClientImpl) GrpcArtistImpl = new(artist.ArtistClientImpl)
AccountProvider = new(account.AccountClientImpl) AccountProvider = new(account.AccountClientImpl)
ArtworkImpl = new(artwork.ArtworkClientImpl)
ArtworkQueryImpl = new(artwork_query.ArtworkQueryClientImpl)
) )
func init() { func init() {
config.SetConsumerService(GrpcArtistImpl) config.SetConsumerService(GrpcArtistImpl)
config.SetConsumerService(AccountProvider) config.SetConsumerService(AccountProvider)
config.SetConsumerService(ArtworkImpl)
config.SetConsumerService(ArtworkQueryImpl)
//if os.Args[len(os.Args)-1] == "unit-test" { //if os.Args[len(os.Args)-1] == "unit-test" {
// _ = os.Setenv(constant.ConfigFileEnvKey, "../../conf/dubbogo.yaml") // _ = os.Setenv(constant.ConfigFileEnvKey, "../../conf/dubbogo.yaml")
//} //}