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(){}//获取后台画家指数审批的画家列表


  //画家补充信息
  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){} //删除画展视频
  
}
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;
  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;//锁定状态
  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;
  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;
  int64 id=4;
}

//-------------------画家指数请求参数
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;
  bool editable=16;
}
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; //批量删除
}


//画家补充信息------------
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;
  int64 createdAt=14;
  int64 updatedAt=15;
  int64 deletedAt=16;
  bool editable=17;//是否用户可编辑
}
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; //批量删除
}