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; //批量删除 }