完成画展视频相关的基础接口
This commit is contained in:
parent
dfadc8446d
commit
db21400118
40
cmd/internal/controller/artshowVideo.go
Normal file
40
cmd/internal/controller/artshowVideo.go
Normal file
@ -0,0 +1,40 @@
|
||||
// Package controller -----------------------------
|
||||
// @file : artshowVideo.go
|
||||
// @author : JJXu
|
||||
// @contact : wavingbear@163.com
|
||||
// @time : 2023/3/2 10:52
|
||||
// -------------------------------------------
|
||||
package controller
|
||||
|
||||
import (
|
||||
context "context"
|
||||
"github.com/fonchain/fonchain-artistinfo/pb/artistinfoArtshow"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
)
|
||||
|
||||
// 画展包视频
|
||||
var _ artistinfoArtshow.ArtistInfoArtshowServer = new(ArtshowVideo)
|
||||
|
||||
type ArtshowVideo struct {
|
||||
artistinfoArtshow.UnimplementedArtistInfoArtshowServer
|
||||
}
|
||||
|
||||
func (a ArtshowVideo) GetArtshowVideoList(ctx context.Context, requst *artistinfoArtshow.GetArtshowVideoListRequst) (*artistinfoArtshow.GetArtshowVideoListResponse, error) {
|
||||
//TODO implement me
|
||||
panic("implement me")
|
||||
}
|
||||
|
||||
func (a ArtshowVideo) AuditArtshowVideo(ctx context.Context, request *artistinfoArtshow.AuditArtshowVideoRequest) (*emptypb.Empty, error) {
|
||||
//TODO implement me
|
||||
panic("implement me")
|
||||
}
|
||||
|
||||
func (a ArtshowVideo) UpdateArtshowVideo(ctx context.Context, request *artistinfoArtshow.UpdateArtshowVideoRequest) (*emptypb.Empty, error) {
|
||||
//TODO implement me
|
||||
panic("implement me")
|
||||
}
|
||||
|
||||
func (a ArtshowVideo) DeletedArtshowVideo(ctx context.Context, request *artistinfoArtshow.DeletedArtshowVideoRequest) (*emptypb.Empty, error) {
|
||||
//TODO implement me
|
||||
panic("implement me")
|
||||
}
|
78
cmd/internal/dao/artistinfo_artshow.go
Normal file
78
cmd/internal/dao/artistinfo_artshow.go
Normal file
@ -0,0 +1,78 @@
|
||||
// Package dao -----------------------------
|
||||
// @file : artistinfo_artshow.go
|
||||
// @author : JJXu
|
||||
// @contact : wavingbear@163.com
|
||||
// @time : 2023/3/2 12:06
|
||||
// -------------------------------------------
|
||||
package dao
|
||||
|
||||
import (
|
||||
"github.com/fonchain/fonchain-artistinfo/cmd/model"
|
||||
"github.com/fonchain/fonchain-artistinfo/pb/artistinfoArtshow"
|
||||
db "github.com/fonchain/fonchain-artistinfo/pkg/db"
|
||||
"gorm.io/gorm/clause"
|
||||
)
|
||||
|
||||
var ArtistinfoArtshowVideo = new(artistinfoArtshowVideo)
|
||||
|
||||
type artistinfoArtshowVideo struct{}
|
||||
|
||||
func (a artistinfoArtshowVideo) CreateData(data *model.ArtshowRecord) error {
|
||||
return db.DB.Create(&data).Error
|
||||
}
|
||||
|
||||
func (a artistinfoArtshowVideo) UpdateData(data *model.ArtshowRecord) error {
|
||||
return db.DB.Create(&data).Error
|
||||
|
||||
}
|
||||
|
||||
func (a artistinfoArtshowVideo) DeletedData(id ...int64) (err error) {
|
||||
if len(id) == 1 {
|
||||
err = db.DB.Where("id = ?", id[0]).Delete(&model.ArtshowRecord{}).Error
|
||||
} else if len(id) > 0 {
|
||||
err = db.DB.Where("id = ?", id).Delete(&model.ArtshowRecord{}).Error
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
func (a artistinfoArtshowVideo) GetData(id int64) (data *model.ArtshowRecord, err error) {
|
||||
err = db.DB.Where("id = ?", id).First(data).Error
|
||||
return
|
||||
}
|
||||
|
||||
func (a artistinfoArtshowVideo) GetDataList(req *artistinfoArtshow.GetArtshowVideoListRequst) (datas []model.ArtshowRecord, total int64, err error) {
|
||||
datas = []model.ArtshowRecord{}
|
||||
var tx = db.DB.Model(model.ArtshowRecord{})
|
||||
if req.ArtistUid != "" {
|
||||
tx = tx.Where("artist_uid = ?", req.ArtistUid)
|
||||
}
|
||||
if req.LockTime != "" {
|
||||
tx = tx.Where("lock_time = ?", req.LockTime)
|
||||
}
|
||||
if req.ArtistName != "" {
|
||||
tx = tx.Clauses(clause.Like{
|
||||
Column: "artist_name",
|
||||
Value: "%" + req.ArtistName + "%",
|
||||
})
|
||||
}
|
||||
//if req.VideoUrl != "" {
|
||||
// tx = tx.Where("video_url = ?", req.VideoUrl)
|
||||
//}
|
||||
if req.AuditStatus != 0 {
|
||||
tx = tx.Where("audit_status = ?", req.AuditStatus)
|
||||
}
|
||||
//if req.AuditMark1 != "" {
|
||||
// tx = tx.Where("audit_mark1 = ?", req.AuditMark1)
|
||||
//}
|
||||
//if req.AuditMark2 != "" {
|
||||
// tx = tx.Where("audit_mark2 = ?", req.AuditMark2)
|
||||
//}
|
||||
err = tx.Count(&total).Scopes(db.Pagination(req.Page, req.PageSize)).Find(&datas).Error
|
||||
return
|
||||
}
|
||||
func (a artistinfoArtshowVideo) Audit(auditStatus model.AuditStatus, mark1, mark2 string, ids ...int64) error {
|
||||
return db.DB.Model(model.ArtshowRecord{}).Where("id in ?", ids).
|
||||
Update("audit_status", auditStatus).
|
||||
Update("audit_mark1", mark1).
|
||||
Update("audit_mark2", mark2).Error
|
||||
}
|
74
cmd/internal/logic/artistinfo_artshowVideo.go
Normal file
74
cmd/internal/logic/artistinfo_artshowVideo.go
Normal file
@ -0,0 +1,74 @@
|
||||
// Package logic -----------------------------
|
||||
// @file : artistinfo_artshowVideo.go
|
||||
// @author : JJXu
|
||||
// @contact : wavingbear@163.com
|
||||
// @time : 2023/3/2 11:51
|
||||
// -------------------------------------------
|
||||
package logic
|
||||
|
||||
import (
|
||||
"github.com/fonchain/fonchain-artistinfo/cmd/internal/dao"
|
||||
"github.com/fonchain/fonchain-artistinfo/cmd/model"
|
||||
"github.com/fonchain/fonchain-artistinfo/pb/artistinfoArtshow"
|
||||
"google.golang.org/protobuf/types/known/emptypb"
|
||||
)
|
||||
|
||||
type ArtshowVideoLogic struct{}
|
||||
|
||||
func (a ArtshowVideoLogic) GetArtshowVideoList(request *artistinfoArtshow.GetArtshowVideoListRequst) (res *artistinfoArtshow.GetArtshowVideoListResponse, err error) {
|
||||
res = &artistinfoArtshow.GetArtshowVideoListResponse{}
|
||||
datas, total, err := dao.ArtistinfoArtshowVideo.GetDataList(request)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
res.Page = &artistinfoArtshow.VideoPagination{
|
||||
Page: request.Page,
|
||||
PageSize: request.PageSize,
|
||||
Total: total,
|
||||
}
|
||||
for _, v := range datas {
|
||||
res.Data = append(res.Data, &artistinfoArtshow.ArtshowVideoInfo{
|
||||
Id: v.ID,
|
||||
ArtistUid: v.ArtistUid,
|
||||
LockTime: v.LockTime,
|
||||
VideoUrl: v.VideoUrl,
|
||||
AuditStatus: int64(v.AuditStatus),
|
||||
AuditMark1: v.AuditMark1,
|
||||
AuditMark2: v.AuditMark2,
|
||||
CreatedAt: v.CreatedAt.Unix(),
|
||||
UpdateAt: v.UpdatedAt.Unix(),
|
||||
DeletedAt: int64(v.DeletedAt),
|
||||
})
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func (a ArtshowVideoLogic) AuditArtshowVideo(request *artistinfoArtshow.AuditArtshowVideoRequest) (*emptypb.Empty, error) {
|
||||
err := dao.ArtistinfoArtshowVideo.Audit(model.AuditStatus(request.AuditStatus), request.AuditMark1, request.AuditMark2, request.ArtshowVideoIds...)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
func (a ArtshowVideoLogic) UpdateArtshowVideo(request *artistinfoArtshow.UpdateArtshowVideoRequest) (*emptypb.Empty, error) {
|
||||
err := dao.ArtistinfoArtshowVideo.UpdateData(&model.ArtshowRecord{
|
||||
Model: model.Model{ID: request.Id},
|
||||
ArtistUid: request.ArtistUid,
|
||||
LockTime: request.LockTime,
|
||||
ArtistName: request.ArtistName,
|
||||
VideoUrl: request.VideoUrl,
|
||||
AuditStatus: model.AuditStatus(request.AuditStatus),
|
||||
AuditMark1: request.AuditMark1,
|
||||
AuditMark2: request.AuditMark2,
|
||||
})
|
||||
return nil, err
|
||||
}
|
||||
|
||||
func (a ArtshowVideoLogic) DeletedArtshowVideo(request *artistinfoArtshow.DeletedArtshowVideoRequest) (*emptypb.Empty, error) {
|
||||
var ids = []int64{}
|
||||
if request.Id != 0 {
|
||||
ids = append(ids, request.Id)
|
||||
} else if len(request.Ids) > 0 {
|
||||
ids = append(ids, request.Ids...)
|
||||
}
|
||||
err := dao.ArtistinfoArtshowVideo.DeletedData(ids...)
|
||||
return nil, err
|
||||
}
|
@ -167,6 +167,7 @@ func (ArtistInfoArtworkLogic) DeleteArtworkRecord(req *artistInfoArtwork.DeleteA
|
||||
func (a ArtistInfoArtworkLogic) UpdateArtworkAuditStatus(request *artistInfoArtwork.UpdateArtworkAuditStatusRequest) (res *artistInfoArtwork.ArtworkCommonNoParams, err error) {
|
||||
if request.ArtworkUid != "" {
|
||||
err = dao.UpdateAuditStatus(request.ArtworkUid, request.AuditStatus, request.AuditMark, request.AuditMark2, request.FlowIndex)
|
||||
|
||||
} else if request.ArtworkUids != nil && len(request.ArtworkUids) > 0 {
|
||||
err = dao.BatchUpdateAuditStatus(request.ArtworkUids, request.AuditStatus, request.AuditMark, request.AuditMark2, request.FlowIndex)
|
||||
} else {
|
||||
@ -194,4 +195,5 @@ func (a ArtistInfoArtworkLogic) GenerateArtworkSupplementInfo(request *artistInf
|
||||
//更新画作流程
|
||||
err := dao.GenerateArtworkSupplementInfo(request.ArtworkUids)
|
||||
return nil, err
|
||||
|
||||
}
|
||||
|
27
cmd/model/artshow_video.go
Normal file
27
cmd/model/artshow_video.go
Normal file
@ -0,0 +1,27 @@
|
||||
// Package model -----------------------------
|
||||
// @file : artshow.go
|
||||
// @author : JJXu
|
||||
// @contact : wavingbear@163.com
|
||||
// @time : 2023/3/2 9:32
|
||||
// -------------------------------------------
|
||||
package model
|
||||
|
||||
type ArtshowRecord struct {
|
||||
Model
|
||||
//通过这两个字段弱关联 artwork_lock_record表中对应的画作
|
||||
ArtistUid string `json:"artistUid" gorm:"column:artist_uid;comment:"`
|
||||
LockTime string `json:"lockTime" gorm:"column:lock_time;comment:"`
|
||||
|
||||
//AccountId int64 `json:"accountId" gorm:"column:account_id;comment:"`
|
||||
ArtistName string `json:"artistName" gorm:"column:artist_name;comment:"`
|
||||
VideoUrl string `json:"videoUrl" gorm:"column:video_url;comment:"`
|
||||
|
||||
//审批字段
|
||||
AuditStatus AuditStatus `json:"auditStatus" gorm:"column:audit_status;comment:审核状态:2= 待审核,3= 审核失败,4= 审核通过,5= 待补充"`
|
||||
AuditMark1 string `json:"auditMark1" gorm:"column:audit_mark1;comment:审核备注1"`
|
||||
AuditMark2 string `json:"auditMark2" gorm:"column:audit_mark2;comment:审核备注2"`
|
||||
}
|
||||
|
||||
func (a ArtshowRecord) TableName() string {
|
||||
return "artshow_record"
|
||||
}
|
@ -10,6 +10,25 @@ const (
|
||||
AuditType_Supplemented AuditStatus = 5 //5= 待补充
|
||||
)
|
||||
|
||||
var auditStatusMaper = map[AuditStatus]string{
|
||||
AuditType_preSave: "暂存",
|
||||
AuditType_Pending: "待审核",
|
||||
AuditType_Failed: "审核失败",
|
||||
AuditType_Pass: "审核通过",
|
||||
AuditType_Supplemented: "待补充",
|
||||
}
|
||||
|
||||
func (a AuditStatus) String() string {
|
||||
if a == 0 {
|
||||
return "无"
|
||||
}
|
||||
str, ok := auditStatusMaper[a]
|
||||
if !ok {
|
||||
return "未知"
|
||||
}
|
||||
return str
|
||||
}
|
||||
|
||||
// 此表作为画家宝中的画作中间表的主表(画作主要数据保存在画作微服务中),请悉知
|
||||
type ArtworkLockRecord struct {
|
||||
Model
|
||||
@ -36,10 +55,23 @@ type ArtworkLockRecord struct {
|
||||
//UserInfo User `gorm:"foreignKey:ArtistUid;reference:MgmtArtistUid"`
|
||||
}
|
||||
|
||||
func (a ArtworkLockRecord) TableName() string {
|
||||
func (a *ArtworkLockRecord) TableName() string {
|
||||
return "artwork_lock_record"
|
||||
}
|
||||
|
||||
//func (a *ArtworkLockRecord) BeforeUpdate(tx *gorm.DB) (err error) {
|
||||
// var thisData ArtworkLockRecord
|
||||
// tx.Where("artwork_uid = ?", a.ArtworkUid).First(&thisData)
|
||||
// //如果是审核状态不通过的情况下更新画作信息,则自动变为待审核
|
||||
// if thisData.BaseAuditStatus == 3 && a.BaseAuditStatus == 0 && a.SupplementAuditStatus == 0 {
|
||||
// a.BaseAuditStatus = 2
|
||||
// }
|
||||
// if thisData.SupplementAuditStatus == 3 && a.BaseAuditStatus == 0 && a.SupplementAuditStatus == 0 {
|
||||
// a.SupplementAuditStatus = 2
|
||||
// }
|
||||
// return
|
||||
//}
|
||||
|
||||
// 基本信息是否可编辑
|
||||
func (a *ArtworkLockRecord) BaseEditable() bool {
|
||||
if a.Status == 1 {
|
||||
|
68
pb/artistinfoArtshow.proto
Normal file
68
pb/artistinfoArtshow.proto
Normal file
@ -0,0 +1,68 @@
|
||||
syntax = "proto3";
|
||||
package artistinfo;
|
||||
option go_package = "./;artistinfoArtshow";
|
||||
|
||||
//import "validate.proto";
|
||||
import public "google/protobuf/timestamp.proto";
|
||||
import "google/protobuf/empty.proto"; //使用 google.protobuf.Empty
|
||||
|
||||
// protoc -I . -I ./pb --proto_path=. --go_out=./pb/artistinfoArtshow --go-triple_out=./pb/artistinfoArtshow --validate_out="lang=go:./pb/artistinfoArtshow" ./pb/artistinfoArtshow.proto
|
||||
service ArtistInfoArtshow {
|
||||
//画展视频
|
||||
rpc GetArtshowVideoList(GetArtshowVideoListRequst)returns(GetArtshowVideoListResponse){}//获取画展视频列表
|
||||
rpc AuditArtshowVideo(AuditArtshowVideoRequest)returns(google.protobuf.Empty){} //审批画展视频
|
||||
rpc UpdateArtshowVideo(UpdateArtshowVideoRequest)returns(google.protobuf.Empty){} //更新或创建画展视频
|
||||
rpc DeletedArtshowVideo(DeletedArtshowVideoRequest)returns(google.protobuf.Empty){} //删除画展视频
|
||||
}
|
||||
|
||||
message videoPagination{
|
||||
int64 page =1;
|
||||
int64 pageSize=2;
|
||||
int64 total=3;
|
||||
}
|
||||
message GetArtshowVideoListRequst{
|
||||
int64 page =1;
|
||||
int64 pageSize =2;
|
||||
string artistName =3;
|
||||
string artistUid =4;
|
||||
string lockTime=5;
|
||||
int64 auditStatus=6;
|
||||
}
|
||||
message ArtshowVideoInfo {
|
||||
int64 id =1;
|
||||
string artistUid =2;
|
||||
string lockTime =3;
|
||||
string videoUrl =4;
|
||||
int64 auditStatus =5;
|
||||
string auditMark1 =6;
|
||||
string auditMark2 =7;
|
||||
int64 createdAt=8;
|
||||
int64 updateAt=9;
|
||||
int64 deletedAt=10;
|
||||
}
|
||||
message GetArtshowVideoListResponse{
|
||||
repeated ArtshowVideoInfo data =1;
|
||||
videoPagination page =2;
|
||||
}
|
||||
|
||||
message AuditArtshowVideoRequest {
|
||||
repeated int64 artshowVideoIds =1;
|
||||
int64 auditStatus =5;
|
||||
string auditMark1 =6;
|
||||
string auditMark2 =7;
|
||||
}
|
||||
|
||||
message UpdateArtshowVideoRequest {
|
||||
int64 Id =1;
|
||||
string artistUid =2;
|
||||
string lockTime =3;
|
||||
string videoUrl =4;
|
||||
int64 auditStatus =5;
|
||||
string auditMark1 =6;
|
||||
string auditMark2 =7;
|
||||
string artistName =8;
|
||||
}
|
||||
message DeletedArtshowVideoRequest{
|
||||
int64 Id=1; //单个删除
|
||||
repeated int64 Ids =2; //批量删除
|
||||
}
|
847
pb/artistinfoArtshow/artistinfoArtshow.pb.go
Normal file
847
pb/artistinfoArtshow/artistinfoArtshow.pb.go
Normal file
@ -0,0 +1,847 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.1
|
||||
// protoc v4.22.0--rc2
|
||||
// source: pb/artistinfoArtshow.proto
|
||||
|
||||
package artistinfoArtshow
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// Symbols defined in public import of google/protobuf/timestamp.proto.
|
||||
|
||||
type Timestamp = timestamppb.Timestamp
|
||||
|
||||
type VideoPagination struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
|
||||
PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
|
||||
Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
|
||||
}
|
||||
|
||||
func (x *VideoPagination) Reset() {
|
||||
*x = VideoPagination{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_pb_artistinfoArtshow_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *VideoPagination) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*VideoPagination) ProtoMessage() {}
|
||||
|
||||
func (x *VideoPagination) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_pb_artistinfoArtshow_proto_msgTypes[0]
|
||||
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 VideoPagination.ProtoReflect.Descriptor instead.
|
||||
func (*VideoPagination) Descriptor() ([]byte, []int) {
|
||||
return file_pb_artistinfoArtshow_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *VideoPagination) GetPage() int64 {
|
||||
if x != nil {
|
||||
return x.Page
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *VideoPagination) GetPageSize() int64 {
|
||||
if x != nil {
|
||||
return x.PageSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *VideoPagination) GetTotal() int64 {
|
||||
if x != nil {
|
||||
return x.Total
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type GetArtshowVideoListRequst struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
|
||||
PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
|
||||
ArtistName string `protobuf:"bytes,3,opt,name=artistName,proto3" json:"artistName,omitempty"`
|
||||
ArtistUid string `protobuf:"bytes,4,opt,name=artistUid,proto3" json:"artistUid,omitempty"`
|
||||
LockTime string `protobuf:"bytes,5,opt,name=lockTime,proto3" json:"lockTime,omitempty"`
|
||||
AuditStatus int64 `protobuf:"varint,6,opt,name=auditStatus,proto3" json:"auditStatus,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GetArtshowVideoListRequst) Reset() {
|
||||
*x = GetArtshowVideoListRequst{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_pb_artistinfoArtshow_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *GetArtshowVideoListRequst) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GetArtshowVideoListRequst) ProtoMessage() {}
|
||||
|
||||
func (x *GetArtshowVideoListRequst) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_pb_artistinfoArtshow_proto_msgTypes[1]
|
||||
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 GetArtshowVideoListRequst.ProtoReflect.Descriptor instead.
|
||||
func (*GetArtshowVideoListRequst) Descriptor() ([]byte, []int) {
|
||||
return file_pb_artistinfoArtshow_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *GetArtshowVideoListRequst) GetPage() int64 {
|
||||
if x != nil {
|
||||
return x.Page
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *GetArtshowVideoListRequst) GetPageSize() int64 {
|
||||
if x != nil {
|
||||
return x.PageSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *GetArtshowVideoListRequst) GetArtistName() string {
|
||||
if x != nil {
|
||||
return x.ArtistName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *GetArtshowVideoListRequst) GetArtistUid() string {
|
||||
if x != nil {
|
||||
return x.ArtistUid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *GetArtshowVideoListRequst) GetLockTime() string {
|
||||
if x != nil {
|
||||
return x.LockTime
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *GetArtshowVideoListRequst) GetAuditStatus() int64 {
|
||||
if x != nil {
|
||||
return x.AuditStatus
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type ArtshowVideoInfo struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
ArtistUid string `protobuf:"bytes,2,opt,name=artistUid,proto3" json:"artistUid,omitempty"`
|
||||
LockTime string `protobuf:"bytes,3,opt,name=lockTime,proto3" json:"lockTime,omitempty"`
|
||||
VideoUrl string `protobuf:"bytes,4,opt,name=videoUrl,proto3" json:"videoUrl,omitempty"`
|
||||
AuditStatus int64 `protobuf:"varint,5,opt,name=auditStatus,proto3" json:"auditStatus,omitempty"`
|
||||
AuditMark1 string `protobuf:"bytes,6,opt,name=auditMark1,proto3" json:"auditMark1,omitempty"`
|
||||
AuditMark2 string `protobuf:"bytes,7,opt,name=auditMark2,proto3" json:"auditMark2,omitempty"`
|
||||
CreatedAt int64 `protobuf:"varint,8,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
|
||||
UpdateAt int64 `protobuf:"varint,9,opt,name=updateAt,proto3" json:"updateAt,omitempty"`
|
||||
DeletedAt int64 `protobuf:"varint,10,opt,name=deletedAt,proto3" json:"deletedAt,omitempty"`
|
||||
}
|
||||
|
||||
func (x *ArtshowVideoInfo) Reset() {
|
||||
*x = ArtshowVideoInfo{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_pb_artistinfoArtshow_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *ArtshowVideoInfo) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ArtshowVideoInfo) ProtoMessage() {}
|
||||
|
||||
func (x *ArtshowVideoInfo) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_pb_artistinfoArtshow_proto_msgTypes[2]
|
||||
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 ArtshowVideoInfo.ProtoReflect.Descriptor instead.
|
||||
func (*ArtshowVideoInfo) Descriptor() ([]byte, []int) {
|
||||
return file_pb_artistinfoArtshow_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *ArtshowVideoInfo) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *ArtshowVideoInfo) GetArtistUid() string {
|
||||
if x != nil {
|
||||
return x.ArtistUid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ArtshowVideoInfo) GetLockTime() string {
|
||||
if x != nil {
|
||||
return x.LockTime
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ArtshowVideoInfo) GetVideoUrl() string {
|
||||
if x != nil {
|
||||
return x.VideoUrl
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ArtshowVideoInfo) GetAuditStatus() int64 {
|
||||
if x != nil {
|
||||
return x.AuditStatus
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *ArtshowVideoInfo) GetAuditMark1() string {
|
||||
if x != nil {
|
||||
return x.AuditMark1
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ArtshowVideoInfo) GetAuditMark2() string {
|
||||
if x != nil {
|
||||
return x.AuditMark2
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ArtshowVideoInfo) GetCreatedAt() int64 {
|
||||
if x != nil {
|
||||
return x.CreatedAt
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *ArtshowVideoInfo) GetUpdateAt() int64 {
|
||||
if x != nil {
|
||||
return x.UpdateAt
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *ArtshowVideoInfo) GetDeletedAt() int64 {
|
||||
if x != nil {
|
||||
return x.DeletedAt
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type GetArtshowVideoListResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Data []*ArtshowVideoInfo `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
|
||||
Page *VideoPagination `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GetArtshowVideoListResponse) Reset() {
|
||||
*x = GetArtshowVideoListResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_pb_artistinfoArtshow_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *GetArtshowVideoListResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GetArtshowVideoListResponse) ProtoMessage() {}
|
||||
|
||||
func (x *GetArtshowVideoListResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_pb_artistinfoArtshow_proto_msgTypes[3]
|
||||
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 GetArtshowVideoListResponse.ProtoReflect.Descriptor instead.
|
||||
func (*GetArtshowVideoListResponse) Descriptor() ([]byte, []int) {
|
||||
return file_pb_artistinfoArtshow_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *GetArtshowVideoListResponse) GetData() []*ArtshowVideoInfo {
|
||||
if x != nil {
|
||||
return x.Data
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetArtshowVideoListResponse) GetPage() *VideoPagination {
|
||||
if x != nil {
|
||||
return x.Page
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type AuditArtshowVideoRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ArtshowVideoIds []int64 `protobuf:"varint,1,rep,packed,name=artshowVideoIds,proto3" json:"artshowVideoIds,omitempty"`
|
||||
AuditStatus int64 `protobuf:"varint,5,opt,name=auditStatus,proto3" json:"auditStatus,omitempty"`
|
||||
AuditMark1 string `protobuf:"bytes,6,opt,name=auditMark1,proto3" json:"auditMark1,omitempty"`
|
||||
AuditMark2 string `protobuf:"bytes,7,opt,name=auditMark2,proto3" json:"auditMark2,omitempty"`
|
||||
}
|
||||
|
||||
func (x *AuditArtshowVideoRequest) Reset() {
|
||||
*x = AuditArtshowVideoRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_pb_artistinfoArtshow_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *AuditArtshowVideoRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AuditArtshowVideoRequest) ProtoMessage() {}
|
||||
|
||||
func (x *AuditArtshowVideoRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_pb_artistinfoArtshow_proto_msgTypes[4]
|
||||
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 AuditArtshowVideoRequest.ProtoReflect.Descriptor instead.
|
||||
func (*AuditArtshowVideoRequest) Descriptor() ([]byte, []int) {
|
||||
return file_pb_artistinfoArtshow_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *AuditArtshowVideoRequest) GetArtshowVideoIds() []int64 {
|
||||
if x != nil {
|
||||
return x.ArtshowVideoIds
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *AuditArtshowVideoRequest) GetAuditStatus() int64 {
|
||||
if x != nil {
|
||||
return x.AuditStatus
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *AuditArtshowVideoRequest) GetAuditMark1() string {
|
||||
if x != nil {
|
||||
return x.AuditMark1
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AuditArtshowVideoRequest) GetAuditMark2() string {
|
||||
if x != nil {
|
||||
return x.AuditMark2
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type UpdateArtshowVideoRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`
|
||||
ArtistUid string `protobuf:"bytes,2,opt,name=artistUid,proto3" json:"artistUid,omitempty"`
|
||||
LockTime string `protobuf:"bytes,3,opt,name=lockTime,proto3" json:"lockTime,omitempty"`
|
||||
VideoUrl string `protobuf:"bytes,4,opt,name=videoUrl,proto3" json:"videoUrl,omitempty"`
|
||||
AuditStatus int64 `protobuf:"varint,5,opt,name=auditStatus,proto3" json:"auditStatus,omitempty"`
|
||||
AuditMark1 string `protobuf:"bytes,6,opt,name=auditMark1,proto3" json:"auditMark1,omitempty"`
|
||||
AuditMark2 string `protobuf:"bytes,7,opt,name=auditMark2,proto3" json:"auditMark2,omitempty"`
|
||||
ArtistName string `protobuf:"bytes,8,opt,name=artistName,proto3" json:"artistName,omitempty"`
|
||||
}
|
||||
|
||||
func (x *UpdateArtshowVideoRequest) Reset() {
|
||||
*x = UpdateArtshowVideoRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_pb_artistinfoArtshow_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *UpdateArtshowVideoRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UpdateArtshowVideoRequest) ProtoMessage() {}
|
||||
|
||||
func (x *UpdateArtshowVideoRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_pb_artistinfoArtshow_proto_msgTypes[5]
|
||||
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 UpdateArtshowVideoRequest.ProtoReflect.Descriptor instead.
|
||||
func (*UpdateArtshowVideoRequest) Descriptor() ([]byte, []int) {
|
||||
return file_pb_artistinfoArtshow_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *UpdateArtshowVideoRequest) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UpdateArtshowVideoRequest) GetArtistUid() string {
|
||||
if x != nil {
|
||||
return x.ArtistUid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UpdateArtshowVideoRequest) GetLockTime() string {
|
||||
if x != nil {
|
||||
return x.LockTime
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UpdateArtshowVideoRequest) GetVideoUrl() string {
|
||||
if x != nil {
|
||||
return x.VideoUrl
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UpdateArtshowVideoRequest) GetAuditStatus() int64 {
|
||||
if x != nil {
|
||||
return x.AuditStatus
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UpdateArtshowVideoRequest) GetAuditMark1() string {
|
||||
if x != nil {
|
||||
return x.AuditMark1
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UpdateArtshowVideoRequest) GetAuditMark2() string {
|
||||
if x != nil {
|
||||
return x.AuditMark2
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UpdateArtshowVideoRequest) GetArtistName() string {
|
||||
if x != nil {
|
||||
return x.ArtistName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type DeletedArtshowVideoRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` //单个删除
|
||||
Ids []int64 `protobuf:"varint,2,rep,packed,name=Ids,proto3" json:"Ids,omitempty"` //批量删除
|
||||
}
|
||||
|
||||
func (x *DeletedArtshowVideoRequest) Reset() {
|
||||
*x = DeletedArtshowVideoRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_pb_artistinfoArtshow_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *DeletedArtshowVideoRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DeletedArtshowVideoRequest) ProtoMessage() {}
|
||||
|
||||
func (x *DeletedArtshowVideoRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_pb_artistinfoArtshow_proto_msgTypes[6]
|
||||
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 DeletedArtshowVideoRequest.ProtoReflect.Descriptor instead.
|
||||
func (*DeletedArtshowVideoRequest) Descriptor() ([]byte, []int) {
|
||||
return file_pb_artistinfoArtshow_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *DeletedArtshowVideoRequest) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DeletedArtshowVideoRequest) GetIds() []int64 {
|
||||
if x != nil {
|
||||
return x.Ids
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_pb_artistinfoArtshow_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_pb_artistinfoArtshow_proto_rawDesc = []byte{
|
||||
0x0a, 0x1a, 0x70, 0x62, 0x2f, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x41,
|
||||
0x72, 0x74, 0x73, 0x68, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x61, 0x72,
|
||||
0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
||||
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
|
||||
0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
|
||||
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x57, 0x0a, 0x0f, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x50,
|
||||
0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67,
|
||||
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a,
|
||||
0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
|
||||
0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74,
|
||||
0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x22,
|
||||
0xc7, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x73, 0x68, 0x6f, 0x77, 0x56, 0x69,
|
||||
0x64, 0x65, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x73, 0x74, 0x12, 0x12, 0x0a,
|
||||
0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x70, 0x61, 0x67,
|
||||
0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1e, 0x0a,
|
||||
0x0a, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a,
|
||||
0x09, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x55, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x09, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x55, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6c,
|
||||
0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c,
|
||||
0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x75, 0x64, 0x69, 0x74,
|
||||
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x75,
|
||||
0x64, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xb2, 0x02, 0x0a, 0x10, 0x41, 0x72,
|
||||
0x74, 0x73, 0x68, 0x6f, 0x77, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e,
|
||||
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c,
|
||||
0x0a, 0x09, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x55, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x09, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x55, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08,
|
||||
0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
|
||||
0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x76, 0x69, 0x64, 0x65,
|
||||
0x6f, 0x55, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x69, 0x64, 0x65,
|
||||
0x6f, 0x55, 0x72, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x75, 0x64, 0x69, 0x74, 0x53, 0x74, 0x61,
|
||||
0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x75, 0x64, 0x69, 0x74,
|
||||
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x75, 0x64, 0x69, 0x74, 0x4d,
|
||||
0x61, 0x72, 0x6b, 0x31, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x75, 0x64, 0x69,
|
||||
0x74, 0x4d, 0x61, 0x72, 0x6b, 0x31, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x75, 0x64, 0x69, 0x74, 0x4d,
|
||||
0x61, 0x72, 0x6b, 0x32, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x75, 0x64, 0x69,
|
||||
0x74, 0x4d, 0x61, 0x72, 0x6b, 0x32, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
|
||||
0x64, 0x41, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74,
|
||||
0x65, 0x64, 0x41, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x74,
|
||||
0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x74,
|
||||
0x12, 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x0a, 0x20,
|
||||
0x01, 0x28, 0x03, 0x52, 0x09, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x80,
|
||||
0x01, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x73, 0x68, 0x6f, 0x77, 0x56, 0x69, 0x64,
|
||||
0x65, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30,
|
||||
0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x61,
|
||||
0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x41, 0x72, 0x74, 0x73, 0x68, 0x6f,
|
||||
0x77, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61,
|
||||
0x12, 0x2f, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b,
|
||||
0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x76, 0x69, 0x64, 0x65,
|
||||
0x6f, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x70, 0x61, 0x67,
|
||||
0x65, 0x22, 0xa6, 0x01, 0x0a, 0x18, 0x41, 0x75, 0x64, 0x69, 0x74, 0x41, 0x72, 0x74, 0x73, 0x68,
|
||||
0x6f, 0x77, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28,
|
||||
0x0a, 0x0f, 0x61, 0x72, 0x74, 0x73, 0x68, 0x6f, 0x77, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x49, 0x64,
|
||||
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0f, 0x61, 0x72, 0x74, 0x73, 0x68, 0x6f, 0x77,
|
||||
0x56, 0x69, 0x64, 0x65, 0x6f, 0x49, 0x64, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x75, 0x64, 0x69,
|
||||
0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61,
|
||||
0x75, 0x64, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x75,
|
||||
0x64, 0x69, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x31, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
|
||||
0x61, 0x75, 0x64, 0x69, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x31, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x75,
|
||||
0x64, 0x69, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x32, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
|
||||
0x61, 0x75, 0x64, 0x69, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x32, 0x22, 0x83, 0x02, 0x0a, 0x19, 0x55,
|
||||
0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x73, 0x68, 0x6f, 0x77, 0x56, 0x69, 0x64, 0x65,
|
||||
0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x72, 0x74, 0x69,
|
||||
0x73, 0x74, 0x55, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x72, 0x74,
|
||||
0x69, 0x73, 0x74, 0x55, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69,
|
||||
0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69,
|
||||
0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x55, 0x72, 0x6c, 0x18, 0x04,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x55, 0x72, 0x6c, 0x12, 0x20,
|
||||
0x0a, 0x0b, 0x61, 0x75, 0x64, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20,
|
||||
0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x75, 0x64, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
|
||||
0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x75, 0x64, 0x69, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x31, 0x18, 0x06,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x75, 0x64, 0x69, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x31,
|
||||
0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x75, 0x64, 0x69, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x32, 0x18, 0x07,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x75, 0x64, 0x69, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x32,
|
||||
0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x08,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65,
|
||||
0x22, 0x3e, 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x41, 0x72, 0x74, 0x73, 0x68,
|
||||
0x6f, 0x77, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e,
|
||||
0x0a, 0x02, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x49, 0x64, 0x12, 0x10,
|
||||
0x0a, 0x03, 0x49, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x03, 0x52, 0x03, 0x49, 0x64, 0x73,
|
||||
0x32, 0x81, 0x03, 0x0a, 0x11, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x41,
|
||||
0x72, 0x74, 0x73, 0x68, 0x6f, 0x77, 0x12, 0x67, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74,
|
||||
0x73, 0x68, 0x6f, 0x77, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x25, 0x2e,
|
||||
0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x72,
|
||||
0x74, 0x73, 0x68, 0x6f, 0x77, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
|
||||
0x71, 0x75, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66,
|
||||
0x6f, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x73, 0x68, 0x6f, 0x77, 0x56, 0x69, 0x64, 0x65,
|
||||
0x6f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12,
|
||||
0x53, 0x0a, 0x11, 0x41, 0x75, 0x64, 0x69, 0x74, 0x41, 0x72, 0x74, 0x73, 0x68, 0x6f, 0x77, 0x56,
|
||||
0x69, 0x64, 0x65, 0x6f, 0x12, 0x24, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66,
|
||||
0x6f, 0x2e, 0x41, 0x75, 0x64, 0x69, 0x74, 0x41, 0x72, 0x74, 0x73, 0x68, 0x6f, 0x77, 0x56, 0x69,
|
||||
0x64, 0x65, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f,
|
||||
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,
|
||||
0x74, 0x79, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x72,
|
||||
0x74, 0x73, 0x68, 0x6f, 0x77, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x12, 0x25, 0x2e, 0x61, 0x72, 0x74,
|
||||
0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x72,
|
||||
0x74, 0x73, 0x68, 0x6f, 0x77, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x13, 0x44,
|
||||
0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x41, 0x72, 0x74, 0x73, 0x68, 0x6f, 0x77, 0x56, 0x69, 0x64,
|
||||
0x65, 0x6f, 0x12, 0x26, 0x2e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x66, 0x6f, 0x2e,
|
||||
0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x41, 0x72, 0x74, 0x73, 0x68, 0x6f, 0x77, 0x56, 0x69,
|
||||
0x64, 0x65, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f,
|
||||
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,
|
||||
0x74, 0x79, 0x22, 0x00, 0x42, 0x16, 0x5a, 0x14, 0x2e, 0x2f, 0x3b, 0x61, 0x72, 0x74, 0x69, 0x73,
|
||||
0x74, 0x69, 0x6e, 0x66, 0x6f, 0x41, 0x72, 0x74, 0x73, 0x68, 0x6f, 0x77, 0x50, 0x00, 0x62, 0x06,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_pb_artistinfoArtshow_proto_rawDescOnce sync.Once
|
||||
file_pb_artistinfoArtshow_proto_rawDescData = file_pb_artistinfoArtshow_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_pb_artistinfoArtshow_proto_rawDescGZIP() []byte {
|
||||
file_pb_artistinfoArtshow_proto_rawDescOnce.Do(func() {
|
||||
file_pb_artistinfoArtshow_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_artistinfoArtshow_proto_rawDescData)
|
||||
})
|
||||
return file_pb_artistinfoArtshow_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_pb_artistinfoArtshow_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_pb_artistinfoArtshow_proto_goTypes = []interface{}{
|
||||
(*VideoPagination)(nil), // 0: artistinfo.videoPagination
|
||||
(*GetArtshowVideoListRequst)(nil), // 1: artistinfo.GetArtshowVideoListRequst
|
||||
(*ArtshowVideoInfo)(nil), // 2: artistinfo.ArtshowVideoInfo
|
||||
(*GetArtshowVideoListResponse)(nil), // 3: artistinfo.GetArtshowVideoListResponse
|
||||
(*AuditArtshowVideoRequest)(nil), // 4: artistinfo.AuditArtshowVideoRequest
|
||||
(*UpdateArtshowVideoRequest)(nil), // 5: artistinfo.UpdateArtshowVideoRequest
|
||||
(*DeletedArtshowVideoRequest)(nil), // 6: artistinfo.DeletedArtshowVideoRequest
|
||||
(*emptypb.Empty)(nil), // 7: google.protobuf.Empty
|
||||
}
|
||||
var file_pb_artistinfoArtshow_proto_depIdxs = []int32{
|
||||
2, // 0: artistinfo.GetArtshowVideoListResponse.data:type_name -> artistinfo.ArtshowVideoInfo
|
||||
0, // 1: artistinfo.GetArtshowVideoListResponse.page:type_name -> artistinfo.videoPagination
|
||||
1, // 2: artistinfo.ArtistInfoArtshow.GetArtshowVideoList:input_type -> artistinfo.GetArtshowVideoListRequst
|
||||
4, // 3: artistinfo.ArtistInfoArtshow.AuditArtshowVideo:input_type -> artistinfo.AuditArtshowVideoRequest
|
||||
5, // 4: artistinfo.ArtistInfoArtshow.UpdateArtshowVideo:input_type -> artistinfo.UpdateArtshowVideoRequest
|
||||
6, // 5: artistinfo.ArtistInfoArtshow.DeletedArtshowVideo:input_type -> artistinfo.DeletedArtshowVideoRequest
|
||||
3, // 6: artistinfo.ArtistInfoArtshow.GetArtshowVideoList:output_type -> artistinfo.GetArtshowVideoListResponse
|
||||
7, // 7: artistinfo.ArtistInfoArtshow.AuditArtshowVideo:output_type -> google.protobuf.Empty
|
||||
7, // 8: artistinfo.ArtistInfoArtshow.UpdateArtshowVideo:output_type -> google.protobuf.Empty
|
||||
7, // 9: artistinfo.ArtistInfoArtshow.DeletedArtshowVideo:output_type -> google.protobuf.Empty
|
||||
6, // [6:10] is the sub-list for method output_type
|
||||
2, // [2:6] is the sub-list for method input_type
|
||||
2, // [2:2] is the sub-list for extension type_name
|
||||
2, // [2:2] is the sub-list for extension extendee
|
||||
0, // [0:2] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_pb_artistinfoArtshow_proto_init() }
|
||||
func file_pb_artistinfoArtshow_proto_init() {
|
||||
if File_pb_artistinfoArtshow_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_pb_artistinfoArtshow_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*VideoPagination); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_pb_artistinfoArtshow_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*GetArtshowVideoListRequst); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_pb_artistinfoArtshow_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ArtshowVideoInfo); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_pb_artistinfoArtshow_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*GetArtshowVideoListResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_pb_artistinfoArtshow_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*AuditArtshowVideoRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_pb_artistinfoArtshow_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*UpdateArtshowVideoRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_pb_artistinfoArtshow_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DeletedArtshowVideoRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_pb_artistinfoArtshow_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 7,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_pb_artistinfoArtshow_proto_goTypes,
|
||||
DependencyIndexes: file_pb_artistinfoArtshow_proto_depIdxs,
|
||||
MessageInfos: file_pb_artistinfoArtshow_proto_msgTypes,
|
||||
}.Build()
|
||||
File_pb_artistinfoArtshow_proto = out.File
|
||||
file_pb_artistinfoArtshow_proto_rawDesc = nil
|
||||
file_pb_artistinfoArtshow_proto_goTypes = nil
|
||||
file_pb_artistinfoArtshow_proto_depIdxs = nil
|
||||
}
|
872
pb/artistinfoArtshow/artistinfoArtshow.pb.validate.go
Normal file
872
pb/artistinfoArtshow/artistinfoArtshow.pb.validate.go
Normal file
@ -0,0 +1,872 @@
|
||||
// Code generated by protoc-gen-validate. DO NOT EDIT.
|
||||
// source: pb/artistinfoArtshow.proto
|
||||
|
||||
package artistinfoArtshow
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net"
|
||||
"net/mail"
|
||||
"net/url"
|
||||
"regexp"
|
||||
"sort"
|
||||
"strings"
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
"google.golang.org/protobuf/types/known/anypb"
|
||||
)
|
||||
|
||||
// ensure the imports are used
|
||||
var (
|
||||
_ = bytes.MinRead
|
||||
_ = errors.New("")
|
||||
_ = fmt.Print
|
||||
_ = utf8.UTFMax
|
||||
_ = (*regexp.Regexp)(nil)
|
||||
_ = (*strings.Reader)(nil)
|
||||
_ = net.IPv4len
|
||||
_ = time.Duration(0)
|
||||
_ = (*url.URL)(nil)
|
||||
_ = (*mail.Address)(nil)
|
||||
_ = anypb.Any{}
|
||||
_ = sort.Sort
|
||||
)
|
||||
|
||||
// Validate checks the field values on VideoPagination 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 *VideoPagination) Validate() error {
|
||||
return m.validate(false)
|
||||
}
|
||||
|
||||
// ValidateAll checks the field values on VideoPagination 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
|
||||
// VideoPaginationMultiError, or nil if none found.
|
||||
func (m *VideoPagination) ValidateAll() error {
|
||||
return m.validate(true)
|
||||
}
|
||||
|
||||
func (m *VideoPagination) validate(all bool) error {
|
||||
if m == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
var errors []error
|
||||
|
||||
// no validation rules for Page
|
||||
|
||||
// no validation rules for PageSize
|
||||
|
||||
// no validation rules for Total
|
||||
|
||||
if len(errors) > 0 {
|
||||
return VideoPaginationMultiError(errors)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// VideoPaginationMultiError is an error wrapping multiple validation errors
|
||||
// returned by VideoPagination.ValidateAll() if the designated constraints
|
||||
// aren't met.
|
||||
type VideoPaginationMultiError []error
|
||||
|
||||
// Error returns a concatenation of all the error messages it wraps.
|
||||
func (m VideoPaginationMultiError) 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 VideoPaginationMultiError) AllErrors() []error { return m }
|
||||
|
||||
// VideoPaginationValidationError is the validation error returned by
|
||||
// VideoPagination.Validate if the designated constraints aren't met.
|
||||
type VideoPaginationValidationError struct {
|
||||
field string
|
||||
reason string
|
||||
cause error
|
||||
key bool
|
||||
}
|
||||
|
||||
// Field function returns field value.
|
||||
func (e VideoPaginationValidationError) Field() string { return e.field }
|
||||
|
||||
// Reason function returns reason value.
|
||||
func (e VideoPaginationValidationError) Reason() string { return e.reason }
|
||||
|
||||
// Cause function returns cause value.
|
||||
func (e VideoPaginationValidationError) Cause() error { return e.cause }
|
||||
|
||||
// Key function returns key value.
|
||||
func (e VideoPaginationValidationError) Key() bool { return e.key }
|
||||
|
||||
// ErrorName returns error name.
|
||||
func (e VideoPaginationValidationError) ErrorName() string { return "VideoPaginationValidationError" }
|
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e VideoPaginationValidationError) 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 %sVideoPagination.%s: %s%s",
|
||||
key,
|
||||
e.field,
|
||||
e.reason,
|
||||
cause)
|
||||
}
|
||||
|
||||
var _ error = VideoPaginationValidationError{}
|
||||
|
||||
var _ interface {
|
||||
Field() string
|
||||
Reason() string
|
||||
Key() bool
|
||||
Cause() error
|
||||
ErrorName() string
|
||||
} = VideoPaginationValidationError{}
|
||||
|
||||
// Validate checks the field values on GetArtshowVideoListRequst 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 *GetArtshowVideoListRequst) Validate() error {
|
||||
return m.validate(false)
|
||||
}
|
||||
|
||||
// ValidateAll checks the field values on GetArtshowVideoListRequst 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
|
||||
// GetArtshowVideoListRequstMultiError, or nil if none found.
|
||||
func (m *GetArtshowVideoListRequst) ValidateAll() error {
|
||||
return m.validate(true)
|
||||
}
|
||||
|
||||
func (m *GetArtshowVideoListRequst) validate(all bool) error {
|
||||
if m == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
var errors []error
|
||||
|
||||
// no validation rules for Page
|
||||
|
||||
// no validation rules for PageSize
|
||||
|
||||
// no validation rules for ArtistName
|
||||
|
||||
// no validation rules for ArtistUid
|
||||
|
||||
// no validation rules for LockTime
|
||||
|
||||
// no validation rules for AuditStatus
|
||||
|
||||
if len(errors) > 0 {
|
||||
return GetArtshowVideoListRequstMultiError(errors)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// GetArtshowVideoListRequstMultiError is an error wrapping multiple validation
|
||||
// errors returned by GetArtshowVideoListRequst.ValidateAll() if the
|
||||
// designated constraints aren't met.
|
||||
type GetArtshowVideoListRequstMultiError []error
|
||||
|
||||
// Error returns a concatenation of all the error messages it wraps.
|
||||
func (m GetArtshowVideoListRequstMultiError) 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 GetArtshowVideoListRequstMultiError) AllErrors() []error { return m }
|
||||
|
||||
// GetArtshowVideoListRequstValidationError is the validation error returned by
|
||||
// GetArtshowVideoListRequst.Validate if the designated constraints aren't met.
|
||||
type GetArtshowVideoListRequstValidationError struct {
|
||||
field string
|
||||
reason string
|
||||
cause error
|
||||
key bool
|
||||
}
|
||||
|
||||
// Field function returns field value.
|
||||
func (e GetArtshowVideoListRequstValidationError) Field() string { return e.field }
|
||||
|
||||
// Reason function returns reason value.
|
||||
func (e GetArtshowVideoListRequstValidationError) Reason() string { return e.reason }
|
||||
|
||||
// Cause function returns cause value.
|
||||
func (e GetArtshowVideoListRequstValidationError) Cause() error { return e.cause }
|
||||
|
||||
// Key function returns key value.
|
||||
func (e GetArtshowVideoListRequstValidationError) Key() bool { return e.key }
|
||||
|
||||
// ErrorName returns error name.
|
||||
func (e GetArtshowVideoListRequstValidationError) ErrorName() string {
|
||||
return "GetArtshowVideoListRequstValidationError"
|
||||
}
|
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e GetArtshowVideoListRequstValidationError) 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 %sGetArtshowVideoListRequst.%s: %s%s",
|
||||
key,
|
||||
e.field,
|
||||
e.reason,
|
||||
cause)
|
||||
}
|
||||
|
||||
var _ error = GetArtshowVideoListRequstValidationError{}
|
||||
|
||||
var _ interface {
|
||||
Field() string
|
||||
Reason() string
|
||||
Key() bool
|
||||
Cause() error
|
||||
ErrorName() string
|
||||
} = GetArtshowVideoListRequstValidationError{}
|
||||
|
||||
// Validate checks the field values on ArtshowVideoInfo 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 *ArtshowVideoInfo) Validate() error {
|
||||
return m.validate(false)
|
||||
}
|
||||
|
||||
// ValidateAll checks the field values on ArtshowVideoInfo 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
|
||||
// ArtshowVideoInfoMultiError, or nil if none found.
|
||||
func (m *ArtshowVideoInfo) ValidateAll() error {
|
||||
return m.validate(true)
|
||||
}
|
||||
|
||||
func (m *ArtshowVideoInfo) validate(all bool) error {
|
||||
if m == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
var errors []error
|
||||
|
||||
// no validation rules for Id
|
||||
|
||||
// no validation rules for ArtistUid
|
||||
|
||||
// no validation rules for LockTime
|
||||
|
||||
// no validation rules for VideoUrl
|
||||
|
||||
// no validation rules for AuditStatus
|
||||
|
||||
// no validation rules for AuditMark1
|
||||
|
||||
// no validation rules for AuditMark2
|
||||
|
||||
// no validation rules for CreatedAt
|
||||
|
||||
// no validation rules for UpdateAt
|
||||
|
||||
// no validation rules for DeletedAt
|
||||
|
||||
if len(errors) > 0 {
|
||||
return ArtshowVideoInfoMultiError(errors)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ArtshowVideoInfoMultiError is an error wrapping multiple validation errors
|
||||
// returned by ArtshowVideoInfo.ValidateAll() if the designated constraints
|
||||
// aren't met.
|
||||
type ArtshowVideoInfoMultiError []error
|
||||
|
||||
// Error returns a concatenation of all the error messages it wraps.
|
||||
func (m ArtshowVideoInfoMultiError) 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 ArtshowVideoInfoMultiError) AllErrors() []error { return m }
|
||||
|
||||
// ArtshowVideoInfoValidationError is the validation error returned by
|
||||
// ArtshowVideoInfo.Validate if the designated constraints aren't met.
|
||||
type ArtshowVideoInfoValidationError struct {
|
||||
field string
|
||||
reason string
|
||||
cause error
|
||||
key bool
|
||||
}
|
||||
|
||||
// Field function returns field value.
|
||||
func (e ArtshowVideoInfoValidationError) Field() string { return e.field }
|
||||
|
||||
// Reason function returns reason value.
|
||||
func (e ArtshowVideoInfoValidationError) Reason() string { return e.reason }
|
||||
|
||||
// Cause function returns cause value.
|
||||
func (e ArtshowVideoInfoValidationError) Cause() error { return e.cause }
|
||||
|
||||
// Key function returns key value.
|
||||
func (e ArtshowVideoInfoValidationError) Key() bool { return e.key }
|
||||
|
||||
// ErrorName returns error name.
|
||||
func (e ArtshowVideoInfoValidationError) ErrorName() string { return "ArtshowVideoInfoValidationError" }
|
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e ArtshowVideoInfoValidationError) 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 %sArtshowVideoInfo.%s: %s%s",
|
||||
key,
|
||||
e.field,
|
||||
e.reason,
|
||||
cause)
|
||||
}
|
||||
|
||||
var _ error = ArtshowVideoInfoValidationError{}
|
||||
|
||||
var _ interface {
|
||||
Field() string
|
||||
Reason() string
|
||||
Key() bool
|
||||
Cause() error
|
||||
ErrorName() string
|
||||
} = ArtshowVideoInfoValidationError{}
|
||||
|
||||
// Validate checks the field values on GetArtshowVideoListResponse 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 *GetArtshowVideoListResponse) Validate() error {
|
||||
return m.validate(false)
|
||||
}
|
||||
|
||||
// ValidateAll checks the field values on GetArtshowVideoListResponse 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
|
||||
// GetArtshowVideoListResponseMultiError, or nil if none found.
|
||||
func (m *GetArtshowVideoListResponse) ValidateAll() error {
|
||||
return m.validate(true)
|
||||
}
|
||||
|
||||
func (m *GetArtshowVideoListResponse) validate(all bool) error {
|
||||
if m == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
var errors []error
|
||||
|
||||
for idx, item := range m.GetData() {
|
||||
_, _ = idx, item
|
||||
|
||||
if all {
|
||||
switch v := interface{}(item).(type) {
|
||||
case interface{ ValidateAll() error }:
|
||||
if err := v.ValidateAll(); err != nil {
|
||||
errors = append(errors, GetArtshowVideoListResponseValidationError{
|
||||
field: fmt.Sprintf("Data[%v]", idx),
|
||||
reason: "embedded message failed validation",
|
||||
cause: err,
|
||||
})
|
||||
}
|
||||
case interface{ Validate() error }:
|
||||
if err := v.Validate(); err != nil {
|
||||
errors = append(errors, GetArtshowVideoListResponseValidationError{
|
||||
field: fmt.Sprintf("Data[%v]", idx),
|
||||
reason: "embedded message failed validation",
|
||||
cause: err,
|
||||
})
|
||||
}
|
||||
}
|
||||
} else if v, ok := interface{}(item).(interface{ Validate() error }); ok {
|
||||
if err := v.Validate(); err != nil {
|
||||
return GetArtshowVideoListResponseValidationError{
|
||||
field: fmt.Sprintf("Data[%v]", idx),
|
||||
reason: "embedded message failed validation",
|
||||
cause: err,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if all {
|
||||
switch v := interface{}(m.GetPage()).(type) {
|
||||
case interface{ ValidateAll() error }:
|
||||
if err := v.ValidateAll(); err != nil {
|
||||
errors = append(errors, GetArtshowVideoListResponseValidationError{
|
||||
field: "Page",
|
||||
reason: "embedded message failed validation",
|
||||
cause: err,
|
||||
})
|
||||
}
|
||||
case interface{ Validate() error }:
|
||||
if err := v.Validate(); err != nil {
|
||||
errors = append(errors, GetArtshowVideoListResponseValidationError{
|
||||
field: "Page",
|
||||
reason: "embedded message failed validation",
|
||||
cause: err,
|
||||
})
|
||||
}
|
||||
}
|
||||
} else if v, ok := interface{}(m.GetPage()).(interface{ Validate() error }); ok {
|
||||
if err := v.Validate(); err != nil {
|
||||
return GetArtshowVideoListResponseValidationError{
|
||||
field: "Page",
|
||||
reason: "embedded message failed validation",
|
||||
cause: err,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if len(errors) > 0 {
|
||||
return GetArtshowVideoListResponseMultiError(errors)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// GetArtshowVideoListResponseMultiError is an error wrapping multiple
|
||||
// validation errors returned by GetArtshowVideoListResponse.ValidateAll() if
|
||||
// the designated constraints aren't met.
|
||||
type GetArtshowVideoListResponseMultiError []error
|
||||
|
||||
// Error returns a concatenation of all the error messages it wraps.
|
||||
func (m GetArtshowVideoListResponseMultiError) 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 GetArtshowVideoListResponseMultiError) AllErrors() []error { return m }
|
||||
|
||||
// GetArtshowVideoListResponseValidationError is the validation error returned
|
||||
// by GetArtshowVideoListResponse.Validate if the designated constraints
|
||||
// aren't met.
|
||||
type GetArtshowVideoListResponseValidationError struct {
|
||||
field string
|
||||
reason string
|
||||
cause error
|
||||
key bool
|
||||
}
|
||||
|
||||
// Field function returns field value.
|
||||
func (e GetArtshowVideoListResponseValidationError) Field() string { return e.field }
|
||||
|
||||
// Reason function returns reason value.
|
||||
func (e GetArtshowVideoListResponseValidationError) Reason() string { return e.reason }
|
||||
|
||||
// Cause function returns cause value.
|
||||
func (e GetArtshowVideoListResponseValidationError) Cause() error { return e.cause }
|
||||
|
||||
// Key function returns key value.
|
||||
func (e GetArtshowVideoListResponseValidationError) Key() bool { return e.key }
|
||||
|
||||
// ErrorName returns error name.
|
||||
func (e GetArtshowVideoListResponseValidationError) ErrorName() string {
|
||||
return "GetArtshowVideoListResponseValidationError"
|
||||
}
|
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e GetArtshowVideoListResponseValidationError) 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 %sGetArtshowVideoListResponse.%s: %s%s",
|
||||
key,
|
||||
e.field,
|
||||
e.reason,
|
||||
cause)
|
||||
}
|
||||
|
||||
var _ error = GetArtshowVideoListResponseValidationError{}
|
||||
|
||||
var _ interface {
|
||||
Field() string
|
||||
Reason() string
|
||||
Key() bool
|
||||
Cause() error
|
||||
ErrorName() string
|
||||
} = GetArtshowVideoListResponseValidationError{}
|
||||
|
||||
// Validate checks the field values on AuditArtshowVideoRequest 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 *AuditArtshowVideoRequest) Validate() error {
|
||||
return m.validate(false)
|
||||
}
|
||||
|
||||
// ValidateAll checks the field values on AuditArtshowVideoRequest 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
|
||||
// AuditArtshowVideoRequestMultiError, or nil if none found.
|
||||
func (m *AuditArtshowVideoRequest) ValidateAll() error {
|
||||
return m.validate(true)
|
||||
}
|
||||
|
||||
func (m *AuditArtshowVideoRequest) validate(all bool) error {
|
||||
if m == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
var errors []error
|
||||
|
||||
// no validation rules for AuditStatus
|
||||
|
||||
// no validation rules for AuditMark1
|
||||
|
||||
// no validation rules for AuditMark2
|
||||
|
||||
if len(errors) > 0 {
|
||||
return AuditArtshowVideoRequestMultiError(errors)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// AuditArtshowVideoRequestMultiError is an error wrapping multiple validation
|
||||
// errors returned by AuditArtshowVideoRequest.ValidateAll() if the designated
|
||||
// constraints aren't met.
|
||||
type AuditArtshowVideoRequestMultiError []error
|
||||
|
||||
// Error returns a concatenation of all the error messages it wraps.
|
||||
func (m AuditArtshowVideoRequestMultiError) 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 AuditArtshowVideoRequestMultiError) AllErrors() []error { return m }
|
||||
|
||||
// AuditArtshowVideoRequestValidationError is the validation error returned by
|
||||
// AuditArtshowVideoRequest.Validate if the designated constraints aren't met.
|
||||
type AuditArtshowVideoRequestValidationError struct {
|
||||
field string
|
||||
reason string
|
||||
cause error
|
||||
key bool
|
||||
}
|
||||
|
||||
// Field function returns field value.
|
||||
func (e AuditArtshowVideoRequestValidationError) Field() string { return e.field }
|
||||
|
||||
// Reason function returns reason value.
|
||||
func (e AuditArtshowVideoRequestValidationError) Reason() string { return e.reason }
|
||||
|
||||
// Cause function returns cause value.
|
||||
func (e AuditArtshowVideoRequestValidationError) Cause() error { return e.cause }
|
||||
|
||||
// Key function returns key value.
|
||||
func (e AuditArtshowVideoRequestValidationError) Key() bool { return e.key }
|
||||
|
||||
// ErrorName returns error name.
|
||||
func (e AuditArtshowVideoRequestValidationError) ErrorName() string {
|
||||
return "AuditArtshowVideoRequestValidationError"
|
||||
}
|
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e AuditArtshowVideoRequestValidationError) 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 %sAuditArtshowVideoRequest.%s: %s%s",
|
||||
key,
|
||||
e.field,
|
||||
e.reason,
|
||||
cause)
|
||||
}
|
||||
|
||||
var _ error = AuditArtshowVideoRequestValidationError{}
|
||||
|
||||
var _ interface {
|
||||
Field() string
|
||||
Reason() string
|
||||
Key() bool
|
||||
Cause() error
|
||||
ErrorName() string
|
||||
} = AuditArtshowVideoRequestValidationError{}
|
||||
|
||||
// Validate checks the field values on UpdateArtshowVideoRequest 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 *UpdateArtshowVideoRequest) Validate() error {
|
||||
return m.validate(false)
|
||||
}
|
||||
|
||||
// ValidateAll checks the field values on UpdateArtshowVideoRequest 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
|
||||
// UpdateArtshowVideoRequestMultiError, or nil if none found.
|
||||
func (m *UpdateArtshowVideoRequest) ValidateAll() error {
|
||||
return m.validate(true)
|
||||
}
|
||||
|
||||
func (m *UpdateArtshowVideoRequest) validate(all bool) error {
|
||||
if m == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
var errors []error
|
||||
|
||||
// no validation rules for Id
|
||||
|
||||
// no validation rules for ArtistUid
|
||||
|
||||
// no validation rules for LockTime
|
||||
|
||||
// no validation rules for VideoUrl
|
||||
|
||||
// no validation rules for AuditStatus
|
||||
|
||||
// no validation rules for AuditMark1
|
||||
|
||||
// no validation rules for AuditMark2
|
||||
|
||||
// no validation rules for ArtistName
|
||||
|
||||
if len(errors) > 0 {
|
||||
return UpdateArtshowVideoRequestMultiError(errors)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// UpdateArtshowVideoRequestMultiError is an error wrapping multiple validation
|
||||
// errors returned by UpdateArtshowVideoRequest.ValidateAll() if the
|
||||
// designated constraints aren't met.
|
||||
type UpdateArtshowVideoRequestMultiError []error
|
||||
|
||||
// Error returns a concatenation of all the error messages it wraps.
|
||||
func (m UpdateArtshowVideoRequestMultiError) 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 UpdateArtshowVideoRequestMultiError) AllErrors() []error { return m }
|
||||
|
||||
// UpdateArtshowVideoRequestValidationError is the validation error returned by
|
||||
// UpdateArtshowVideoRequest.Validate if the designated constraints aren't met.
|
||||
type UpdateArtshowVideoRequestValidationError struct {
|
||||
field string
|
||||
reason string
|
||||
cause error
|
||||
key bool
|
||||
}
|
||||
|
||||
// Field function returns field value.
|
||||
func (e UpdateArtshowVideoRequestValidationError) Field() string { return e.field }
|
||||
|
||||
// Reason function returns reason value.
|
||||
func (e UpdateArtshowVideoRequestValidationError) Reason() string { return e.reason }
|
||||
|
||||
// Cause function returns cause value.
|
||||
func (e UpdateArtshowVideoRequestValidationError) Cause() error { return e.cause }
|
||||
|
||||
// Key function returns key value.
|
||||
func (e UpdateArtshowVideoRequestValidationError) Key() bool { return e.key }
|
||||
|
||||
// ErrorName returns error name.
|
||||
func (e UpdateArtshowVideoRequestValidationError) ErrorName() string {
|
||||
return "UpdateArtshowVideoRequestValidationError"
|
||||
}
|
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e UpdateArtshowVideoRequestValidationError) 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 %sUpdateArtshowVideoRequest.%s: %s%s",
|
||||
key,
|
||||
e.field,
|
||||
e.reason,
|
||||
cause)
|
||||
}
|
||||
|
||||
var _ error = UpdateArtshowVideoRequestValidationError{}
|
||||
|
||||
var _ interface {
|
||||
Field() string
|
||||
Reason() string
|
||||
Key() bool
|
||||
Cause() error
|
||||
ErrorName() string
|
||||
} = UpdateArtshowVideoRequestValidationError{}
|
||||
|
||||
// Validate checks the field values on DeletedArtshowVideoRequest 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 *DeletedArtshowVideoRequest) Validate() error {
|
||||
return m.validate(false)
|
||||
}
|
||||
|
||||
// ValidateAll checks the field values on DeletedArtshowVideoRequest 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
|
||||
// DeletedArtshowVideoRequestMultiError, or nil if none found.
|
||||
func (m *DeletedArtshowVideoRequest) ValidateAll() error {
|
||||
return m.validate(true)
|
||||
}
|
||||
|
||||
func (m *DeletedArtshowVideoRequest) validate(all bool) error {
|
||||
if m == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
var errors []error
|
||||
|
||||
// no validation rules for Id
|
||||
|
||||
if len(errors) > 0 {
|
||||
return DeletedArtshowVideoRequestMultiError(errors)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeletedArtshowVideoRequestMultiError is an error wrapping multiple
|
||||
// validation errors returned by DeletedArtshowVideoRequest.ValidateAll() if
|
||||
// the designated constraints aren't met.
|
||||
type DeletedArtshowVideoRequestMultiError []error
|
||||
|
||||
// Error returns a concatenation of all the error messages it wraps.
|
||||
func (m DeletedArtshowVideoRequestMultiError) 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 DeletedArtshowVideoRequestMultiError) AllErrors() []error { return m }
|
||||
|
||||
// DeletedArtshowVideoRequestValidationError is the validation error returned
|
||||
// by DeletedArtshowVideoRequest.Validate if the designated constraints aren't met.
|
||||
type DeletedArtshowVideoRequestValidationError struct {
|
||||
field string
|
||||
reason string
|
||||
cause error
|
||||
key bool
|
||||
}
|
||||
|
||||
// Field function returns field value.
|
||||
func (e DeletedArtshowVideoRequestValidationError) Field() string { return e.field }
|
||||
|
||||
// Reason function returns reason value.
|
||||
func (e DeletedArtshowVideoRequestValidationError) Reason() string { return e.reason }
|
||||
|
||||
// Cause function returns cause value.
|
||||
func (e DeletedArtshowVideoRequestValidationError) Cause() error { return e.cause }
|
||||
|
||||
// Key function returns key value.
|
||||
func (e DeletedArtshowVideoRequestValidationError) Key() bool { return e.key }
|
||||
|
||||
// ErrorName returns error name.
|
||||
func (e DeletedArtshowVideoRequestValidationError) ErrorName() string {
|
||||
return "DeletedArtshowVideoRequestValidationError"
|
||||
}
|
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e DeletedArtshowVideoRequestValidationError) 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 %sDeletedArtshowVideoRequest.%s: %s%s",
|
||||
key,
|
||||
e.field,
|
||||
e.reason,
|
||||
cause)
|
||||
}
|
||||
|
||||
var _ error = DeletedArtshowVideoRequestValidationError{}
|
||||
|
||||
var _ interface {
|
||||
Field() string
|
||||
Reason() string
|
||||
Key() bool
|
||||
Cause() error
|
||||
ErrorName() string
|
||||
} = DeletedArtshowVideoRequestValidationError{}
|
285
pb/artistinfoArtshow/artistinfoArtshow_triple.pb.go
Normal file
285
pb/artistinfoArtshow/artistinfoArtshow_triple.pb.go
Normal file
@ -0,0 +1,285 @@
|
||||
// Code generated by protoc-gen-go-triple. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-triple v1.0.8
|
||||
// - protoc v4.22.0--rc2
|
||||
// source: pb/artistinfoArtshow.proto
|
||||
|
||||
package artistinfoArtshow
|
||||
|
||||
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"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// ArtistInfoArtshowClient is the client API for ArtistInfoArtshow 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 ArtistInfoArtshowClient interface {
|
||||
// 画展视频
|
||||
GetArtshowVideoList(ctx context.Context, in *GetArtshowVideoListRequst, opts ...grpc_go.CallOption) (*GetArtshowVideoListResponse, common.ErrorWithAttachment)
|
||||
AuditArtshowVideo(ctx context.Context, in *AuditArtshowVideoRequest, opts ...grpc_go.CallOption) (*emptypb.Empty, common.ErrorWithAttachment)
|
||||
UpdateArtshowVideo(ctx context.Context, in *UpdateArtshowVideoRequest, opts ...grpc_go.CallOption) (*emptypb.Empty, common.ErrorWithAttachment)
|
||||
DeletedArtshowVideo(ctx context.Context, in *DeletedArtshowVideoRequest, opts ...grpc_go.CallOption) (*emptypb.Empty, common.ErrorWithAttachment)
|
||||
}
|
||||
|
||||
type artistInfoArtshowClient struct {
|
||||
cc *triple.TripleConn
|
||||
}
|
||||
|
||||
type ArtistInfoArtshowClientImpl struct {
|
||||
GetArtshowVideoList func(ctx context.Context, in *GetArtshowVideoListRequst) (*GetArtshowVideoListResponse, error)
|
||||
AuditArtshowVideo func(ctx context.Context, in *AuditArtshowVideoRequest) (*emptypb.Empty, error)
|
||||
UpdateArtshowVideo func(ctx context.Context, in *UpdateArtshowVideoRequest) (*emptypb.Empty, error)
|
||||
DeletedArtshowVideo func(ctx context.Context, in *DeletedArtshowVideoRequest) (*emptypb.Empty, error)
|
||||
}
|
||||
|
||||
func (c *ArtistInfoArtshowClientImpl) GetDubboStub(cc *triple.TripleConn) ArtistInfoArtshowClient {
|
||||
return NewArtistInfoArtshowClient(cc)
|
||||
}
|
||||
|
||||
func (c *ArtistInfoArtshowClientImpl) XXX_InterfaceName() string {
|
||||
return "artistinfo.ArtistInfoArtshow"
|
||||
}
|
||||
|
||||
func NewArtistInfoArtshowClient(cc *triple.TripleConn) ArtistInfoArtshowClient {
|
||||
return &artistInfoArtshowClient{cc}
|
||||
}
|
||||
|
||||
func (c *artistInfoArtshowClient) GetArtshowVideoList(ctx context.Context, in *GetArtshowVideoListRequst, opts ...grpc_go.CallOption) (*GetArtshowVideoListResponse, common.ErrorWithAttachment) {
|
||||
out := new(GetArtshowVideoListResponse)
|
||||
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||||
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetArtshowVideoList", in, out)
|
||||
}
|
||||
|
||||
func (c *artistInfoArtshowClient) AuditArtshowVideo(ctx context.Context, in *AuditArtshowVideoRequest, opts ...grpc_go.CallOption) (*emptypb.Empty, common.ErrorWithAttachment) {
|
||||
out := new(emptypb.Empty)
|
||||
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||||
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/AuditArtshowVideo", in, out)
|
||||
}
|
||||
|
||||
func (c *artistInfoArtshowClient) UpdateArtshowVideo(ctx context.Context, in *UpdateArtshowVideoRequest, opts ...grpc_go.CallOption) (*emptypb.Empty, common.ErrorWithAttachment) {
|
||||
out := new(emptypb.Empty)
|
||||
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||||
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/UpdateArtshowVideo", in, out)
|
||||
}
|
||||
|
||||
func (c *artistInfoArtshowClient) DeletedArtshowVideo(ctx context.Context, in *DeletedArtshowVideoRequest, opts ...grpc_go.CallOption) (*emptypb.Empty, common.ErrorWithAttachment) {
|
||||
out := new(emptypb.Empty)
|
||||
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||||
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/DeletedArtshowVideo", in, out)
|
||||
}
|
||||
|
||||
// ArtistInfoArtshowServer is the server API for ArtistInfoArtshow service.
|
||||
// All implementations must embed UnimplementedArtistInfoArtshowServer
|
||||
// for forward compatibility
|
||||
type ArtistInfoArtshowServer interface {
|
||||
// 画展视频
|
||||
GetArtshowVideoList(context.Context, *GetArtshowVideoListRequst) (*GetArtshowVideoListResponse, error)
|
||||
AuditArtshowVideo(context.Context, *AuditArtshowVideoRequest) (*emptypb.Empty, error)
|
||||
UpdateArtshowVideo(context.Context, *UpdateArtshowVideoRequest) (*emptypb.Empty, error)
|
||||
DeletedArtshowVideo(context.Context, *DeletedArtshowVideoRequest) (*emptypb.Empty, error)
|
||||
mustEmbedUnimplementedArtistInfoArtshowServer()
|
||||
}
|
||||
|
||||
// UnimplementedArtistInfoArtshowServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedArtistInfoArtshowServer struct {
|
||||
proxyImpl protocol.Invoker
|
||||
}
|
||||
|
||||
func (UnimplementedArtistInfoArtshowServer) GetArtshowVideoList(context.Context, *GetArtshowVideoListRequst) (*GetArtshowVideoListResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetArtshowVideoList not implemented")
|
||||
}
|
||||
func (UnimplementedArtistInfoArtshowServer) AuditArtshowVideo(context.Context, *AuditArtshowVideoRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method AuditArtshowVideo not implemented")
|
||||
}
|
||||
func (UnimplementedArtistInfoArtshowServer) UpdateArtshowVideo(context.Context, *UpdateArtshowVideoRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateArtshowVideo not implemented")
|
||||
}
|
||||
func (UnimplementedArtistInfoArtshowServer) DeletedArtshowVideo(context.Context, *DeletedArtshowVideoRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DeletedArtshowVideo not implemented")
|
||||
}
|
||||
func (s *UnimplementedArtistInfoArtshowServer) XXX_SetProxyImpl(impl protocol.Invoker) {
|
||||
s.proxyImpl = impl
|
||||
}
|
||||
|
||||
func (s *UnimplementedArtistInfoArtshowServer) XXX_GetProxyImpl() protocol.Invoker {
|
||||
return s.proxyImpl
|
||||
}
|
||||
|
||||
func (s *UnimplementedArtistInfoArtshowServer) XXX_ServiceDesc() *grpc_go.ServiceDesc {
|
||||
return &ArtistInfoArtshow_ServiceDesc
|
||||
}
|
||||
func (s *UnimplementedArtistInfoArtshowServer) XXX_InterfaceName() string {
|
||||
return "artistinfo.ArtistInfoArtshow"
|
||||
}
|
||||
|
||||
func (UnimplementedArtistInfoArtshowServer) mustEmbedUnimplementedArtistInfoArtshowServer() {}
|
||||
|
||||
// UnsafeArtistInfoArtshowServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to ArtistInfoArtshowServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeArtistInfoArtshowServer interface {
|
||||
mustEmbedUnimplementedArtistInfoArtshowServer()
|
||||
}
|
||||
|
||||
func RegisterArtistInfoArtshowServer(s grpc_go.ServiceRegistrar, srv ArtistInfoArtshowServer) {
|
||||
s.RegisterService(&ArtistInfoArtshow_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _ArtistInfoArtshow_GetArtshowVideoList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetArtshowVideoListRequst)
|
||||
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("GetArtshowVideoList", 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 _ArtistInfoArtshow_AuditArtshowVideo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(AuditArtshowVideoRequest)
|
||||
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("AuditArtshowVideo", 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 _ArtistInfoArtshow_UpdateArtshowVideo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateArtshowVideoRequest)
|
||||
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("UpdateArtshowVideo", 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 _ArtistInfoArtshow_DeletedArtshowVideo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeletedArtshowVideoRequest)
|
||||
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("DeletedArtshowVideo", 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)
|
||||
}
|
||||
|
||||
// ArtistInfoArtshow_ServiceDesc is the grpc_go.ServiceDesc for ArtistInfoArtshow service.
|
||||
// It's only intended for direct use with grpc_go.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var ArtistInfoArtshow_ServiceDesc = grpc_go.ServiceDesc{
|
||||
ServiceName: "artistinfo.ArtistInfoArtshow",
|
||||
HandlerType: (*ArtistInfoArtshowServer)(nil),
|
||||
Methods: []grpc_go.MethodDesc{
|
||||
{
|
||||
MethodName: "GetArtshowVideoList",
|
||||
Handler: _ArtistInfoArtshow_GetArtshowVideoList_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "AuditArtshowVideo",
|
||||
Handler: _ArtistInfoArtshow_AuditArtshowVideo_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateArtshowVideo",
|
||||
Handler: _ArtistInfoArtshow_UpdateArtshowVideo_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeletedArtshowVideo",
|
||||
Handler: _ArtistInfoArtshow_DeletedArtshowVideo_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc_go.StreamDesc{},
|
||||
Metadata: "pb/artistinfoArtshow.proto",
|
||||
}
|
@ -140,4 +140,4 @@ message UpdateArtworkAuditStatusRequest{
|
||||
}
|
||||
message CheckArtworkEditableResponse{
|
||||
bool editable =1;
|
||||
}
|
||||
}
|
||||
|
@ -110,6 +110,7 @@ func migration() {
|
||||
&old.ArtworkBatch{},
|
||||
&model.TempArtistInfo{},
|
||||
&model.ArtworkLockRecord{},
|
||||
&model.ArtshowRecord{}, //画展视频记录
|
||||
)
|
||||
if err != nil {
|
||||
fmt.Println("register table fail")
|
||||
|
Loading…
Reference in New Issue
Block a user