fonchain-artistinfo/pb/artistinfoArtshow.proto

83 lines
2.5 KiB
Protocol Buffer

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 CreateArtshowVideo(ArtshowVideoInfo)returns(google.protobuf.Empty){}
rpc BatchCreateArtshowVideo(BatchCreateArtshowVideoRequest)returns(google.protobuf.Empty){}
rpc AuditArtshowVideo(AuditArtshowVideoRequest)returns(google.protobuf.Empty){} //审批画展视频
rpc UpdateArtshowVideo(UpdateArtshowVideoRequest)returns(google.protobuf.Empty){} //更新或创建画展视频
rpc DeletedArtshowVideo(DeletedArtshowVideoRequest)returns(google.protobuf.Empty){} //删除画展视频
rpc CheckeExists(CheckeExistsRequest)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;
int64 status=7; //锁定状态 2=锁定 3=解锁
}
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 updatedAt=9;
int64 deletedAt=10;
string artistName=11;
int64 status=12;//锁定状态
}
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;
int64 status=9;//锁定状态
}
message DeletedArtshowVideoRequest{
int64 Id=1; //单个删除
repeated int64 Ids =2; //批量删除
}
message BatchCreateArtshowVideoRequest{
repeated ArtshowVideoInfo data =1;
}
message CheckeExistsRequest{
string artistUid =1;
string lockTime =2;
}