fonchain-artistinfo/pb/artistinfoArtshow.proto

341 lines
9.4 KiB
Protocol Buffer
Raw Normal View History

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 {
//画展视频
2023-03-03 01:12:26 +00:00
rpc GetArtshowVideoDetail(GetArtshowVideoDetailRequest)returns(ArtshowVideoInfo){} //获取视频详情
rpc GetArtshowVideoList(GetArtshowVideoListRequst)returns(GetArtshowVideoListResponse){}//获取画展视频列表
2023-03-02 09:22:10 +00:00
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){} //删除画展视频
2023-03-03 01:12:26 +00:00
// rpc CheckeExists(CheckeExistsRequest)returns(google.protobuf.Empty){} //删除画展视频
// rpc GetArtistListOfVideo(ArtistListRequest)returns(){}//获取后台画家指数审批的画家列表
2023-03-08 07:26:38 +00:00
rpc GetArtshowHistroyList(GetArtshowHistroyListRequest)returns(GetArtshowHistroyListResponse){}//获取画展补充信息的历史记录(按锁定时间端分组)
2023-03-03 01:12:26 +00:00
//画家指数
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(){}//获取后台画家指数审批的画家列表
2023-03-03 05:47:45 +00:00
//画家补充信息
rpc GetArtistSupplementDetail(GetArtistSupplementDetailRequest)returns(ArtistSupplementInfo){} //获取视频详情
rpc GetArtistSupplementList(GetArtistSupplementListRequest)returns(GetArtistSupplementListResponse){}//获取画展视频列表
rpc CreateArtistSupplement(ArtistSupplementInfo)returns(google.protobuf.Empty){}
rpc BatchCreateArtistSupplement(BatchCreateArtistSupplementRequest)returns(google.protobuf.Empty){}
rpc AuditArtistSupplement(AuditArtistSupplementRequest)returns(google.protobuf.Empty){} //审批画展视频
rpc UpdateArtistSupplement(UpdateArtistSupplementRequest)returns(google.protobuf.Empty){} //更新或创建画展视频
rpc DeletedArtistSupplement(DeletedArtistSupplementRequest)returns(google.protobuf.Empty){} //删除画展视频
2023-03-03 01:12:26 +00:00
}
2023-03-03 05:47:45 +00:00
message ArtistListRequest{//勿删
int64 page =1;
int64 pageSize=2;
string artistName =3;
}
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;
2023-03-02 09:22:10 +00:00
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;
string createdAt=8;
string updatedAt=9;
int64 deletedAt=10;
2023-03-02 09:22:10 +00:00
string artistName=11;
int64 status=12;//锁定状态
2023-03-03 07:28:55 +00:00
bool editable=13;
}
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;
2023-03-02 09:22:10 +00:00
int64 status=9;//锁定状态
}
message DeletedArtshowVideoRequest{
int64 Id=1; //单个删除
repeated int64 Ids =2; //批量删除
2023-03-02 09:22:10 +00:00
}
message BatchCreateArtshowVideoRequest{
repeated ArtshowVideoInfo data =1;
}
message CheckeExistsRequest{
string artistUid =1;
string lockTime =2;
2023-03-03 01:12:26 +00:00
}
message GetArtshowVideoDetailRequest{
string artistUid=1;
string lockTime=2;
int32 status=3;
2023-03-03 05:59:36 +00:00
int64 id=4;
2023-03-03 01:12:26 +00:00
}
//-------------------画家指数请求参数
message ArtistIndexInfo{
string artistUid=1;
string title=2;
string class=3;
2023-03-10 09:27:10 +00:00
float titleScore=4;
2023-03-03 01:12:26 +00:00
string score=5;
string types=6;
int64 status=7;
string lockTime=8;
string auditMark1=9;
string auditMark2=10;
int64 auditStatus=11;
int64 id=12;
2023-03-09 07:42:03 +00:00
string createdAt=13;
string updatedAt=14;
2023-03-03 01:12:26 +00:00
int64 deletedAt=15;
2023-03-03 07:28:55 +00:00
bool editable=16;
2023-03-03 01:12:26 +00:00
}
message GetArtistIndexListResponse{
repeated ArtistIndexInfo Data=1;
videoPagination page=2;
}
2023-03-03 05:47:45 +00:00
message GetArtistIndexDetailRequest{
int64 id =1;
}
message GetArtistIndexListRequest{
2023-03-03 01:12:26 +00:00
string artistUid =1;
string artistName =3;
string lockTime=4;
int64 auditStatus=5;
int64 status=6; //锁定状态 2=锁定 3=解锁
2023-03-03 05:47:45 +00:00
int64 page=7;
int64 pageSize=8;
}
2023-03-03 01:12:26 +00:00
2023-03-03 05:47:45 +00:00
message BatchCreateArtistIndexRequest{
repeated string artistUids =1;
2023-03-03 01:12:26 +00:00
// string lockTime=2;
2023-03-03 05:47:45 +00:00
}
message AuditArtistIndexRequest{
repeated int64 artistIndexIds =1;
int64 auditStatus =5;
string auditMark1 =6;
string auditMark2 =7;
}
message UpdateArtistIndexRequest{
int64 id=12;
2023-03-10 09:27:10 +00:00
float titleScore=4;
2023-03-03 05:47:45 +00:00
string score=5;
int64 status=7;
}
message DeletedArtistIndexRequest{
int64 Id=1; //单个删除
repeated int64 Ids =2; //批量删除
}
//画家补充信息------------
message ArtistSupplementInfo{
string ArtistUid=1;
int64 Status=2;
string LockTime=3;
int64 AuditStatus=4;
string AuditMark1=5;
string AuditMark2=6;
string ArtistName=7;
string ArtistProfile=8;
int64 CountryArtLevel=9;
string ArtistCertPic=10;
string BankNum=11;
string BankName=12;
int64 id=13;
2023-03-09 07:42:03 +00:00
string createdAt=14;
string updatedAt=15;
2023-03-03 05:47:45 +00:00
int64 deletedAt=16;
2023-03-03 07:28:55 +00:00
bool editable=17;//是否用户可编辑
2023-03-03 05:47:45 +00:00
}
message GetArtistSupplementListResponse{
repeated ArtistSupplementInfo Data=1;
videoPagination page=2;
}
message GetArtistSupplementDetailRequest{
int64 id =1;
}
message GetArtistSupplementListRequest{
string artistUid =1;
string artistName =3;
string lockTime=4;
int64 auditStatus=5;
int64 status=6; //锁定状态 2=锁定 3=解锁
int64 page=7;
int64 pageSize=8;
}
message BatchCreateArtistSupplementRequest{
repeated string artistUids =1;
}
message AuditArtistSupplementRequest{
repeated int64 artistSupplementIds =1;
int64 auditStatus =5;
string auditMark1 =6;
string auditMark2 =7;
}
message UpdateArtistSupplementRequest{
int64 id=1;
string ArtistProfile=2;
int64 CountryArtLevel=3;
string ArtistCertPic=4;
string BankNum=5;
string BankName=6;
}
message DeletedArtistSupplementRequest{
int64 Id=1; //单个删除
repeated int64 Ids =2; //批量删除
2023-03-08 07:26:38 +00:00
}
message GetArtshowHistroyListRequest{
int64 page =1;
int64 pageSize=2;
2023-03-10 09:27:10 +00:00
string artistUid=3;
2023-03-08 07:26:38 +00:00
int64 auditStatus=4;
}
// 历史记录查询
message artworkSupplementData{
2023-03-10 09:27:10 +00:00
string artistUid=1;
int64 status=2;
string lockTime=3;
int64 auditStatus=4;
string auditMark1=5;
string auditMark2=6;
string artworkName=7;
string createdDate=8;
string createdAddress=9;
2023-03-08 07:26:38 +00:00
string createdAt=14;
string updatedAt=15;
2023-03-10 09:27:10 +00:00
int64 deletedAt=16;
string ArtworkUuid=17;
// string ArtistName=18;
int32 Length=19;
int32 Width=20;
int32 Ruler=21;
// string InscribeDate=22;
// string Abstract=23;
string HdPic=24;
string ArtistPhoto=25;
// float PriceRun=26;
// string FirstPublish=27;
// bool IsFirstPublish=34;
// 画作荣誉
// string ArtistMarketDetail=28;
// string ArtistMarketUrl1=29;
// string ArtistMarketUrl2=30;
// string ArtistMarketId1=31;
// string ArtistMarketId2=32;
// string ArtistMarketId3=33;
2023-03-08 07:26:38 +00:00
}
2023-03-10 09:27:10 +00:00
2023-03-08 07:26:38 +00:00
message artistSupplementData{
2023-03-10 09:27:10 +00:00
string artistUid=1;
int64 status=2;
string lockTime=3;
int64 auditStatus=4;
string auditMark1=5;
string auditMark2=6;
string artistName=7;
string artistProfile=8;
int64 countryArtLevel=9;
string artistCertPic=10;
string bankNum=11;
string bankName=12;
2023-03-08 07:26:38 +00:00
int64 id=13;
string createdAt=14;
string updatedAt=15;
string deletedAt=16;
}
message artistIndexData{
string artistUid=1;
string title=2;
string class=3;
2023-03-10 09:27:10 +00:00
float titleScore=4;
2023-03-08 07:26:38 +00:00
string score=5;
string types=6;
int64 status=7;
string lockTime=8;
string auditMark1=9;
string auditMark2=10;
int64 auditStatus=11;
int64 id=12;
string createdAt=13;
string updatedAt=14;
string deletedAt=15;
}
message artistVideoData{
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 timeGroup {
string time =1;
repeated artworkSupplementData artworkSupplementList =2;
repeated artistSupplementData artistSupplementList =3;
repeated artistIndexData artistIndexList =4;
repeated artistVideoData artistVideoList =5;
}
message GetArtshowHistroyListResponse{
videoPagination page=1;
repeated timeGroup Data =2;
2023-03-03 05:47:45 +00:00
}