115 lines
2.4 KiB
Protocol Buffer
115 lines
2.4 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package exhibition;
|
|
option go_package = "./pb/exhibition";
|
|
|
|
import "pb/validator.proto";
|
|
import "pb/descriptor.proto";
|
|
|
|
service Exhibition {
|
|
rpc CheckPhone(RegisterInfo) returns (CheckPhoneResp);
|
|
rpc SaveRegisterRecord(RegisterInfo) returns (SaveRegisterRecordResp);
|
|
rpc RegisterRecordList(RecordListReq) returns (RecordListResp);
|
|
rpc ExportRegisterRecord(ExportRecordReq) returns (ExportRecordResp);
|
|
rpc CheckIdCard(RegisterInfo) returns (CheckIdCardResp);
|
|
rpc ImportInfoByExcel(RegisterInfo) returns(SaveRegisterRecordResp);
|
|
rpc CheckRatingNo(CheckRatingNoReq) returns(CheckRatingNoResp) {};
|
|
|
|
}
|
|
|
|
message RegisterInfo{
|
|
int32 id = 1;
|
|
string uuid = 2;
|
|
string artistName = 3;
|
|
int32 gender = 4;
|
|
string phoneNum = 5;
|
|
string idCard = 6;
|
|
string address = 7;
|
|
string address1 = 8;
|
|
string idCardPhoto = 9;
|
|
string idCardBackPhoto = 10;
|
|
string artistPhoto = 11;
|
|
string createdAt = 12;
|
|
string updatedAt = 13;
|
|
string idCardStartDate = 14;
|
|
string idCardEndDate = 15;
|
|
string artworkFile = 16;
|
|
string artworkName =17;
|
|
string PreliminaryRatingNo = 18;
|
|
string ReRatingNo = 19;
|
|
string province = 20;
|
|
int32 artworkType = 21;
|
|
string artworkSize = 22;
|
|
string registeredDate = 23;//报名时间
|
|
}
|
|
|
|
message SaveRegisterRecordResp{
|
|
RegisterInfo data = 1;
|
|
string msg = 2;
|
|
|
|
}
|
|
|
|
message CheckPhoneResp {
|
|
bool isExist = 1;
|
|
string msg = 2;
|
|
RegisterInfo data = 3;
|
|
|
|
}
|
|
|
|
message CheckIdCardResp {
|
|
string msg = 1;
|
|
}
|
|
|
|
message RecordListReq {
|
|
string keyword = 1;
|
|
int32 page = 2;
|
|
int32 pageSize = 3;
|
|
int32 sortKey = 4;
|
|
string sort = 5;
|
|
}
|
|
|
|
message RecordListResp {
|
|
repeated RegisterInfo data = 1;
|
|
int32 count = 2;
|
|
int32 page = 3;
|
|
int32 pageSize = 4;
|
|
string msg = 5;
|
|
}
|
|
|
|
message ExportRecordReq {
|
|
|
|
}
|
|
|
|
message ExportInfo {
|
|
string artistName = 3;
|
|
int32 gender = 4;
|
|
string phoneNum = 5;
|
|
string idCard = 6;
|
|
string address = 7;
|
|
string idCardPhoto = 8;
|
|
string idCardBackPhoto = 9;
|
|
string artistPhoto = 10;
|
|
string createdAt = 11;
|
|
string updatedAt = 12;
|
|
string artworkName =13;
|
|
string PreliminaryRatingNo = 14;
|
|
string ReRatingNo = 15;
|
|
string province = 16;
|
|
int32 artworkType = 17;
|
|
string artworkSize = 18;
|
|
|
|
}
|
|
|
|
message ExportRecordResp {
|
|
repeated ExportInfo data = 1;
|
|
string msg = 2;
|
|
|
|
}
|
|
message CheckRatingNoReq{
|
|
string ratingNo = 1;
|
|
int32 type = 2; // 1初评 2复评
|
|
}
|
|
message CheckRatingNoResp{
|
|
bool isExist = 1;
|
|
string msg = 2;
|
|
} |