exhibition-register/pb/exhibition.proto

117 lines
2.4 KiB
Protocol Buffer
Raw Normal View History

2024-01-29 09:02:58 +00:00
syntax = "proto3";
package exhibition;
2024-01-30 03:52:56 +00:00
option go_package = "./pb/exhibition";
2024-01-29 09:02:58 +00:00
import "pb/validator.proto";
2024-01-30 03:52:56 +00:00
import "pb/descriptor.proto";
2024-01-29 09:02:58 +00:00
service Exhibition {
2024-01-30 03:52:56 +00:00
rpc CheckPhone(RegisterInfo) returns (CheckPhoneResp);
rpc SaveRegisterRecord(RegisterInfo) returns (SaveRegisterRecordResp);
2024-02-01 10:56:19 +00:00
rpc RegisterRecordList(RecordListReq) returns (RecordListResp);
rpc ExportRegisterRecord(ExportRecordReq) returns (ExportRecordResp);
2024-02-23 03:24:24 +00:00
rpc CheckIdCard(RegisterInfo) returns (CheckIdCardResp);
rpc ImportInfoByExcel(RegisterInfo) returns(SaveRegisterRecordResp);
2025-03-26 02:05:13 +00:00
rpc CheckRatingNo(CheckRatingNoReq) returns(CheckRatingNoResp) {};
2024-01-30 03:52:56 +00:00
}
message RegisterInfo{
int32 id = 1;
string uuid = 2;
string artistName = 3;
int32 gender = 4;
string phoneNum = 5;
string idCard = 6;
string address = 7;
2024-02-20 06:10:29 +00:00
string address1 = 8;
string idCardPhoto = 9;
string idCardBackPhoto = 10;
string artistPhoto = 11;
string createdAt = 12;
string updatedAt = 13;
string idCardStartDate = 14;
string idCardEndDate = 15;
2024-09-10 01:48:15 +00:00
string artworkFile = 16;
2025-03-04 05:28:43 +00:00
string artworkName =17;
2025-03-10 07:18:11 +00:00
string PreliminaryRatingNo = 18;
string ReRatingNo = 19;
string province = 20;
int32 artworkType = 21;
string artworkSize = 22;
2025-03-26 02:05:13 +00:00
string registeredDate = 23;//报名时间
2025-03-26 05:08:10 +00:00
string artistUuid = 24;
string artworkUuid = 25;
2024-01-30 03:52:56 +00:00
}
message SaveRegisterRecordResp{
2024-02-02 09:05:34 +00:00
RegisterInfo data = 1;
string msg = 2;
2024-01-30 03:52:56 +00:00
}
message CheckPhoneResp {
bool isExist = 1;
string msg = 2;
RegisterInfo data = 3;
2024-01-29 09:02:58 +00:00
2024-02-01 10:56:19 +00:00
}
2024-02-23 03:24:24 +00:00
message CheckIdCardResp {
string msg = 1;
}
2024-02-01 10:56:19 +00:00
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;
2024-02-18 03:10:07 +00:00
string idCardBackPhoto = 9;
string artistPhoto = 10;
string createdAt = 11;
string updatedAt = 12;
2025-03-04 05:28:43 +00:00
string artworkName =13;
2025-03-10 07:18:11 +00:00
string PreliminaryRatingNo = 14;
string ReRatingNo = 15;
string province = 16;
int32 artworkType = 17;
string artworkSize = 18;
2025-03-04 05:28:43 +00:00
2024-02-01 10:56:19 +00:00
}
message ExportRecordResp {
repeated ExportInfo data = 1;
string msg = 2;
2025-03-26 02:05:13 +00:00
}
message CheckRatingNoReq{
string ratingNo = 1;
int32 type = 2; // 1初评 2复评
}
message CheckRatingNoResp{
bool isExist = 1;
string msg = 2;
2024-01-29 09:02:58 +00:00
}