175 lines
5.3 KiB
Protocol Buffer
175 lines
5.3 KiB
Protocol Buffer
|
syntax = "proto3";
|
||
|
package artistinfo;
|
||
|
option go_package = "./;artistinfo";
|
||
|
// protoc --proto_path=. --go_out=./api/artistinfo --go-triple_out=./api/artistinfo ./api/artistinfo/artistinfo.proto
|
||
|
service ArtistInfo {
|
||
|
rpc UploadPic (UploadPicRequest) returns (UploadPicRespond) {}
|
||
|
rpc UploadIdCard (UploadIdCardRequest) returns (UploadIdCardRespond) {}
|
||
|
rpc RegisterUser (RegisterUserRequest) returns (RegisterUserRespond){}
|
||
|
rpc GetUser(GetUserRequest) returns (GetUserRespond){}
|
||
|
rpc GetUserById(GetUserByIdRequest) returns (GetUserByIdRespond){}
|
||
|
rpc CreateUser (CreateUserRequest) returns (CreateUserRespond){}
|
||
|
rpc CreateUserInfo (CreateUserInfoRequest) returns (CreateUserInfoRespond){}
|
||
|
rpc UpdateRealName (UpdateRealNameRequest) returns (UpdateRealNameRespond){}
|
||
|
rpc FinishVerify (FinishVerifyRequest) returns (FinishVerifyRespond){}
|
||
|
rpc CheckUserLock (CheckUserLockRequest) returns (CheckUserLockRespond) {}
|
||
|
|
||
|
}
|
||
|
message UploadPicRequest {
|
||
|
|
||
|
}
|
||
|
|
||
|
message UploadPicRespond {
|
||
|
|
||
|
}
|
||
|
|
||
|
message UploadIdCardRequest {
|
||
|
|
||
|
}
|
||
|
|
||
|
message UploadIdCardRespond {
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
message RegisterUserRequest {
|
||
|
uint64 Id =1;
|
||
|
uint64 MgmtUserId =2;
|
||
|
string MgmtArtistId = 3;
|
||
|
string TelNum = 4;
|
||
|
}
|
||
|
|
||
|
message RegisterUserRespond {
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
message GetUserRequest {
|
||
|
string TelNum = 1;
|
||
|
}
|
||
|
|
||
|
message GetUserRespond {
|
||
|
uint64 Id =1;
|
||
|
uint64 MgmtUserId =2;
|
||
|
string MgmtArtistId = 3;
|
||
|
string TelNum = 4;
|
||
|
int64 IsFdd = 5;
|
||
|
int64 IsRealName =6;
|
||
|
int64 ruler = 7;
|
||
|
}
|
||
|
|
||
|
message GetUserByIdRequest {
|
||
|
uint64 Id = 1;
|
||
|
}
|
||
|
|
||
|
message GetUserByIdRespond{
|
||
|
uint64 Id =1;
|
||
|
uint64 MgmtUserId =2;
|
||
|
string MgmtArtistId = 3;
|
||
|
string TelNum = 4;
|
||
|
int64 IsFdd = 5;
|
||
|
int64 IsRealName =6;
|
||
|
int64 ruler = 7;
|
||
|
string InvitedCode = 8;
|
||
|
string CustomerId = 9;
|
||
|
}
|
||
|
message GetUserByIdData {
|
||
|
string TelNum =1 [json_name ="telNum"];
|
||
|
string CertificateNum =2 [json_name ="certificateNum" ];
|
||
|
string CertificateImg =3 [json_name ="certificateImg" ];
|
||
|
string JoinAssoTime =4 [json_name= "joinAssoTime"];
|
||
|
string RealName =5 [json_name ="realName" ];
|
||
|
string PenName =6 [json_name ="penName" ];
|
||
|
string StageName =7 [json_name ="stageName" ];
|
||
|
int32 Sex =8 [json_name ="sex" ];
|
||
|
string IdCard =9 [json_name ="idCard" ];
|
||
|
string IdCardFront =10 [json_name ="idCardFront" ];
|
||
|
string IdCardBack =11 [json_name ="idCardBack" ];
|
||
|
int32 Age =12 [json_name ="age" ];
|
||
|
int64 Ruler =13 [json_name ="ruler" ];
|
||
|
repeated string ConAddress =14 [json_name ="conAddress" ];
|
||
|
string Photo =15 [json_name ="photo" ];
|
||
|
string Video =16 [json_name ="video" ];
|
||
|
int64 FddState =17 [json_name ="fddState" ];
|
||
|
string CustomerId =18 [json_name ="customerId" ];
|
||
|
string InvitedCode =19 [json_name ="invitedCode" ];
|
||
|
string InvitedName =20 [json_name ="invitedName" ];
|
||
|
string WxAccount =21 [json_name ="wxAccount" ];
|
||
|
string QrCodeImg =22 [json_name ="qrCode" ];
|
||
|
string QrCodeImgDownload =23 [json_name ="qrCodeDownload" ];
|
||
|
string HtmlType =24 [json_name ="htmlType" ];
|
||
|
string EnvType =25 [json_name ="envType" ];
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
message CreateUserRequest {
|
||
|
uint64 Id =1;
|
||
|
string TelNum = 2;
|
||
|
}
|
||
|
|
||
|
message CreateUserRespond {
|
||
|
|
||
|
}
|
||
|
message CreateUserInfoRequest {
|
||
|
string TelNum =1 [json_name ="telNum"];
|
||
|
string CertificateNum =2 [json_name ="certificateNum" ];
|
||
|
string CertificateImg =3 [json_name ="certificateImg" ];
|
||
|
string JoinAssoTime =4 [json_name= "joinAssoTime"];
|
||
|
string RealName =5 [json_name ="realName" ];
|
||
|
string PenName =6 [json_name ="penName" ];
|
||
|
string StageName =7 [json_name ="stageName" ];
|
||
|
int32 Sex =8 [json_name ="sex" ];
|
||
|
string IdCard =9 [json_name ="idCard" ];
|
||
|
string IdCardFront =10 [json_name ="idCardFront" ];
|
||
|
string IdCardBack =11 [json_name ="idCardBack" ];
|
||
|
int32 Age =12 [json_name ="age" ];
|
||
|
int64 Ruler =13 [json_name ="ruler" ];
|
||
|
repeated string ConAddress =14 [json_name ="conAddress" ];
|
||
|
string Photo =15 [json_name ="photo" ];
|
||
|
string Video =16 [json_name ="video" ];
|
||
|
int64 FddState =17 [json_name ="fddState" ];
|
||
|
string CustomerId =18 [json_name ="customerId" ];
|
||
|
string InvitedCode =19 [json_name ="invitedCode" ];
|
||
|
string InvitedName =20 [json_name ="invitedName" ];
|
||
|
string WxAccount =21 [json_name ="wxAccount" ];
|
||
|
string QrCodeImg =22 [json_name ="qrCode" ];
|
||
|
string QrCodeImgDownload =23 [json_name ="qrCodeDownload" ];
|
||
|
string HtmlType =24 [json_name ="htmlType" ];
|
||
|
string EnvType =25 [json_name ="envType" ];
|
||
|
}
|
||
|
|
||
|
message CreateUserInfoRespond {
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
message UpdateRealNameRequest {
|
||
|
uint64 Id =1;
|
||
|
}
|
||
|
|
||
|
message UpdateRealNameRespond {
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
message FinishVerifyRequest {
|
||
|
uint64 Id =1;
|
||
|
}
|
||
|
|
||
|
message FinishVerifyRespond {
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
message CheckUserLockRequest {
|
||
|
uint64 ID = 1 [json_name = "id"];
|
||
|
}
|
||
|
|
||
|
message CheckUserLockRespond {
|
||
|
|
||
|
}
|