fonchain-artistinfo/pb/artistinfoArtshow.proto

162 lines
4.9 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 GetArtshowVideoDetail(GetArtshowVideoDetailRequest)returns(ArtshowVideoInfo){} //获取视频详情
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){} //删除画展视频
// rpc GetArtistListOfVideo(ArtistListRequest)returns(){}//获取后台画家指数审批的画家列表
//画家指数
rpc GetArtistIndexDetail(GetArtistIndexDetailRequest)returns(ArtistIndexInfo){} //获取视频详情
rpc GetArtistIndexList(GetArtistIndexListRequest)returns(GetArtistIndexListResponse){}//获取画展视频列表
rpc CreateArtistIndex(ArtistIndexInfo)returns(google.protobuf.Empty){}
rpc BatchCreateArtistIndex(BatchCreateArtistIndexRequest)returns(google.protobuf.Empty){}
rpc AuditArtistIndex(AuditArtistIndexRequest)returns(google.protobuf.Empty){} //审批画展视频
rpc UpdateArtistIndex(UpdateArtistIndexRequest)returns(google.protobuf.Empty){} //更新或创建画展视频
rpc DeletedArtistIndex(DeletedArtistIndexRequest)returns(google.protobuf.Empty){} //删除画展视频
// rpc GetArtistListOfArtistIndex(ArtistListRequest)returns(){}//获取后台画家指数审批的画家列表
}
message ArtistListRequest{
string artistName =1;
}
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;
}
message GetArtshowVideoDetailRequest{
string artistUid=1;
string lockTime=2;
int32 status=3;
}
//-------------------画家指数请求参数
message ArtistIndexInfo{
string artistUid=1;
string title=2;
string class=3;
int64 titleScore=4;
string score=5;
string types=6;
int64 status=7;
string lockTime=8;
string auditMark1=9;
string auditMark2=10;
int64 auditStatus=11;
int64 id=12;
int64 createdAt=13;
int64 updatedAt=14;
int64 deletedAt=15;
}
message GetArtistIndexListResponse{
repeated ArtistIndexInfo Data=1;
videoPagination page=2;
}
message GetArtistIndexDetailRequest{
int64 id =1;
}
message GetArtistIndexListRequest{
string artistUid =1;
string artistName =3;
string lockTime=4;
int64 auditStatus=5;
int64 status=6; //锁定状态 2=锁定 3=解锁
int64 page=7;
int64 pageSize=8;
}
message BatchCreateArtistIndexRequest{
repeated string artistUids =1;
// string lockTime=2;
}
message AuditArtistIndexRequest{
repeated int64 artistIndexIds =1;
int64 auditStatus =5;
string auditMark1 =6;
string auditMark2 =7;
}
message UpdateArtistIndexRequest{
int64 id=12;
int64 titleScore=4;
string score=5;
int64 status=7;
}
message DeletedArtistIndexRequest{
int64 Id=1; //单个删除
repeated int64 Ids =2; //批量删除
}