exhibition-register/pb/exhibition.proto
2024-02-02 17:05:34 +08:00

80 lines
1.5 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);
}
message RegisterInfo{
int32 id = 1;
string uuid = 2;
string artistName = 3;
int32 gender = 4;
string phoneNum = 5;
string idCard = 6;
string address = 7;
string idCardPhoto = 8;
string artistPhoto = 9;
string createdAt = 10;
string updatedAt = 11;
}
message SaveRegisterRecordResp{
RegisterInfo data = 1;
string msg = 2;
}
message CheckPhoneResp {
bool isExist = 1;
string msg = 2;
RegisterInfo data = 3;
}
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 artistPhoto = 9;
string createdAt = 10;
string updatedAt = 11;
}
message ExportRecordResp {
repeated ExportInfo data = 1;
string msg = 2;
}