448 lines
13 KiB
Protocol Buffer
448 lines
13 KiB
Protocol Buffer
syntax = "proto3";
|
|
package artistinfo;
|
|
option go_package = "./;artistInfoUser";
|
|
import public "google/protobuf/timestamp.proto";
|
|
// protoc --proto_path=. --go_out=./pb/artistinfoUser --go-triple_out=./pb/artistinfoUser ./pb/artistinfoUser.proto
|
|
service ArtistInfoUser {
|
|
rpc RegisterUser (RegisterUserRequest) returns (RegisterUserRespond){}
|
|
rpc UpdateIdCard (UpdateIdCardRequest) returns (CommonNoParams) {} //更新身份证信息
|
|
// rpc UploadPic (UploadPicRequest) returns (UploadPicRespond) {} //上传身份证反面
|
|
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) {}
|
|
rpc ArtistSupplyList (ArtistSupplyListRequest) returns (ArtistSupplyListRespond){}
|
|
rpc UserLock (UserLockRequest) returns(UserLockRespond){}
|
|
rpc CheckInvitedCode(CheckInvitedCodeRequest)returns (GetUserRespond){}
|
|
rpc UnFinishList(UnFinishListRequest)returns (UnFinishListRespond){}
|
|
rpc GetUserMsg(GetUserMsgRequest) returns (GetUserMsgRespond){} //获取用户信息
|
|
rpc UpdateMsg(UpdateMsgRequest) returns (UpdateMsgRespond){} //更新用户信息
|
|
rpc BindInviteInvitedAccount(BindInviteInvitedAccountRequest)returns(BindInviteInvitedAccountRespond){} //绑定邀请人与被邀请人账号
|
|
rpc BindArtistId(BindArtistIdRequest)returns(BindArtistIdResp){} // 账号绑定艺术家id
|
|
rpc FindUsers(FindUserRequest)returns(FindUserResponse){} //批量查询用户信息
|
|
rpc FindUser(FindUserRequest)returns(UserInfo){}//查找单个用户信息
|
|
rpc UpdateUserData(UserInfo)returns(CommonNoParams){} //更新用户信息
|
|
rpc PreSaveArtistInfo(PreSaveArtistInfoData)returns(CommonNoParams){}//暂存艺术家信息
|
|
rpc GetPreSaveArtistInfo(GetPreSaveArtistInfoRequest)returns(PreSaveArtistInfoData){}//获取暂存的艺术家信息
|
|
}
|
|
message CommonNoParams{
|
|
}
|
|
message UpdateMsgRequest {
|
|
int64 Id = 1;
|
|
}
|
|
|
|
message UpdateMsgRespond {
|
|
|
|
}
|
|
|
|
message GetUserMsgRequest{
|
|
int64 Id = 1;
|
|
}
|
|
|
|
message GetUserMsgRespond{
|
|
int64 id = 1[json_name = "id"];
|
|
int64 mgmtAccId = 2[json_name = "mgmtAccId"];
|
|
string mgmtArtistUid = 3[json_name = "mgmtArtistUid"];
|
|
string account = 4[json_name = "account"];
|
|
string mnemonicWords = 5[json_name = "mnemonicWords"];
|
|
string telNum = 6[json_name = "telNum"];
|
|
string name = 7[json_name = "name"];
|
|
string penName = 8[json_name = "penName"];
|
|
string stageName = 9[json_name = "stageName"];
|
|
string joinAssoTime = 10[json_name = "joinAssoTime"];
|
|
string certificateNum = 11[json_name = "certificateNum"];
|
|
string certificateImg = 12[json_name = "certificateImg"];
|
|
string key = 13[json_name = "key"];
|
|
int32 realNameID = 14[json_name = "realNameID"];
|
|
string iDNum = 15[json_name = "idNum"];
|
|
int32 sex = 16[json_name = "sex"];
|
|
int64 ruler = 17[json_name = "ruler"];
|
|
string openId = 18[json_name = "openId"];
|
|
string customerId = 19[json_name = "customerId"];
|
|
int32 age = 20[json_name = "age"];
|
|
string introduct = 21[json_name = "introduct"];
|
|
string createdAt = 22[json_name = "createdAt"];
|
|
string conAddress = 23[json_name = "conAddress"];
|
|
string photo = 24[json_name = "photo"];
|
|
string video = 25[json_name = "video"];
|
|
int64 isRealName = 26[json_name = "isRealName"];
|
|
int64 isFdd = 27[json_name = "isFdd"];
|
|
int64 fddState = 28[json_name = "fddState"];
|
|
string wxAccount = 29[json_name = "wxAccount"];
|
|
bool isLock = 30[json_name = "isLock"];
|
|
string invitedCode = 31[json_name = "invitedCode"];
|
|
int32 isRead = 32[json_name = "isRead"];
|
|
int32 isImport = 33[json_name = "isImport"];
|
|
bool enable = 34[json_name = "enable"];
|
|
}
|
|
message CheckInvitedCodeRequest {
|
|
string invitedCode = 1;
|
|
}
|
|
|
|
message CheckInvitedCodeRespond {
|
|
|
|
}
|
|
message UnFinishListRequest {
|
|
int64 id = 1;
|
|
}
|
|
|
|
message UnFinishListRespond {
|
|
int64 contractList = 1;
|
|
int64 supplyInfoList = 2;
|
|
int64 accountStateList = 3;
|
|
}
|
|
|
|
message UploadPicRequest {
|
|
|
|
}
|
|
|
|
message UploadPicRespond {
|
|
|
|
}
|
|
|
|
message UpdateIdCardRequest {
|
|
// int64 id = 1;//用户id
|
|
int64 mgmtAccId = 2; //账号id
|
|
string idNum = 3;//证件号码
|
|
string name = 4;
|
|
int64 age = 5;//年龄
|
|
string sex = 6;//性别
|
|
string address = 7;//地址
|
|
string idCardFront = 8;//身份证正面url
|
|
string idCardBack = 9;//身份证反面url
|
|
string nativePlace = 10;//籍贯
|
|
string birthday = 11; //出生日期
|
|
}
|
|
|
|
message CheckMsgRequest{
|
|
string telNum = 1 ;
|
|
string verCode = 2;
|
|
}
|
|
message RegisterUserRequest {
|
|
int64 id = 1;
|
|
int64 mgmtAccId = 2; //账号id
|
|
string mgmtArtistUid = 3; //艺术家id
|
|
string telNum = 4; //用户电话号码
|
|
string userInviteCode = 5; //账号服务生成的邀请码
|
|
string Account = 6;//账号
|
|
int64 mgmtArtistId = 7; //艺术家id
|
|
}
|
|
|
|
message RegisterUserRespond {
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetUserRequest {
|
|
string telNum = 1;
|
|
}
|
|
|
|
message GetUserRespond {
|
|
int64 id = 1;
|
|
int64 mgmtAccId = 2;
|
|
string mgmtArtistUid = 3;//艺术家uid
|
|
int64 mgmtArtistId = 8;//艺术家id
|
|
string telNum = 4;
|
|
int64 fddState = 5;
|
|
int64 isRealName = 6;
|
|
int64 ruler = 7;
|
|
}
|
|
|
|
message GetUserByIdRequest {
|
|
int64 id = 1;
|
|
}
|
|
|
|
message GetUserByIdRespond{
|
|
int64 id = 1;
|
|
int64 mgmtAccId = 2;
|
|
string mgmtArtistUid = 3;//艺术家uid
|
|
int64 mgmtArtistId = 11;//艺术家id
|
|
string telNum = 5;
|
|
int64 fddState = 6;
|
|
int64 isRealName = 7;
|
|
int64 ruler = 8;
|
|
string invitedCode = 9;
|
|
string customerId = 10;
|
|
}
|
|
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 {
|
|
int64 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"];
|
|
int64 id = 26 [json_name = "id"];
|
|
}
|
|
|
|
message CreateUserInfoRespond {
|
|
|
|
}
|
|
|
|
|
|
|
|
message UpdateRealNameRequest {
|
|
int64 id = 1; //用户id
|
|
string idNum = 2; // 身份证号码
|
|
string name = 3; // 姓名
|
|
}
|
|
|
|
message UpdateRealNameRespond {
|
|
|
|
}
|
|
|
|
|
|
|
|
message FinishVerifyRequest {
|
|
int64 id = 1;
|
|
}
|
|
|
|
message FinishVerifyRespond {
|
|
|
|
}
|
|
|
|
|
|
message CheckUserLockRequest {
|
|
int64 id = 1 [json_name = "id"];
|
|
}
|
|
|
|
message CheckUserLockRespond {
|
|
|
|
}
|
|
|
|
|
|
|
|
message ArtistSupplyListRequest {
|
|
string artistId = 1;
|
|
string name = 2;
|
|
string artistName = 3;
|
|
string invitedName = 4;
|
|
int64 isImport = 5;
|
|
int64 state = 6;
|
|
int64 page = 7;
|
|
int64 pageSize = 8;
|
|
}
|
|
|
|
message ArtistSupplyListRespond {
|
|
int64 count = 1;
|
|
repeated ArtistArtworkSupplyListResponseData data = 2;
|
|
}
|
|
|
|
message ArtistArtworkSupplyListResponseData {
|
|
string id = 1;
|
|
string account = 2;
|
|
int64 passRulerCount = 3;
|
|
string mnemonicWords = 4;
|
|
string telNum = 5;
|
|
int64 passArtworkCount = 6;
|
|
string name = 7;
|
|
string penName = 8;
|
|
string certificate = 9;
|
|
string certificateImg = 10;
|
|
string key = 11;
|
|
int64 sex = 12;
|
|
int64 age = 13;
|
|
string introduct = 14;
|
|
string createTime = 15;
|
|
string joinAssoTime = 16;
|
|
string stageName = 17;
|
|
string updateTime = 18;
|
|
string conAddress = 19;
|
|
string photo = 20;
|
|
string video = 21;
|
|
string invitedName = 22;
|
|
bool enable = 23;
|
|
string idCard = 24;
|
|
int64 isImport = 25;
|
|
bool isLock = 26;
|
|
string idCardFront = 27;
|
|
string idCardBack = 28;
|
|
string bankName = 29;
|
|
string bankAccount = 30;
|
|
string minTime = 31;
|
|
string lockTime = 32;
|
|
int64 artworkCount = 33;
|
|
int64 rulerCount = 34;
|
|
}
|
|
|
|
|
|
message UserLockRequest {
|
|
int64 id = 1; //id三选一
|
|
int64 accId =2;
|
|
string artistUid=3;
|
|
bool isLock = 4;
|
|
}
|
|
|
|
message UserLockRespond {
|
|
|
|
}
|
|
|
|
|
|
message BindInviteInvitedAccountRequest{
|
|
int32 userId = 1; //邀请人账号id
|
|
int32 invitedUserId = 2; // 受邀请人账号id
|
|
string inviteCode = 3; //邀请人的邀请码
|
|
string invitedCode = 4; //受邀请人的邀请码
|
|
}
|
|
message BindInviteInvitedAccountRespond{
|
|
// no params
|
|
}
|
|
|
|
|
|
|
|
message BindArtistIdRequest{
|
|
int64 userId = 1; // 用户账号id
|
|
int64 artistId = 2; // 艺术家id
|
|
string artistUid =3; //艺术家Uid
|
|
}
|
|
message BindArtistIdResp{
|
|
string error = 1;
|
|
}
|
|
|
|
|
|
message CreateDataRequest{
|
|
|
|
}
|
|
|
|
message FindUserRequest{
|
|
int64 mgmtAccId = 1; //账号id
|
|
int64 mgmtArtistId = 2;//艺术家id
|
|
string mgmtArtistUid = 3;
|
|
// string Account = 3;
|
|
// string TelNum = 4;
|
|
// bool IsLock = 5;
|
|
// bool Enable = 6;
|
|
// int64 FddState = 7;
|
|
string invitedCode = 8;//邀请码
|
|
}
|
|
message FindUserResponse{
|
|
repeated UserInfo data = 1;
|
|
}
|
|
|
|
|
|
message RealNameInfo{
|
|
string Name = 1;
|
|
string IdNum = 2;
|
|
string TelNum = 3;
|
|
string IdCardFront = 4;
|
|
string IdCardBack = 5;
|
|
int32 Age = 6;
|
|
string Sex = 7;
|
|
string Birthday = 8;
|
|
string Address = 9;
|
|
int64 Id = 10;
|
|
}
|
|
message UserInfo{
|
|
int64 id = 1;
|
|
int64 deletedAt = 2;
|
|
int64 updatedAt = 3;
|
|
int64 createdAt = 4;
|
|
int64 mgmtAccId = 5;
|
|
string mgmtArtistUid = 6;
|
|
string telNum = 7;
|
|
string invitedCode = 8;// 邀请者的邀请码
|
|
string invitedName = 9;
|
|
int64 isRealName = 10;
|
|
int64 realNameId = 11;
|
|
RealNameInfo realName = 12;
|
|
int64 fddState = 13 ;
|
|
string customerId = 14 ;
|
|
string openId = 15;
|
|
int64 isRead = 16;
|
|
// int64 IsImport=17;
|
|
// bool enable=18;
|
|
bool isLock = 19;
|
|
// int64 Ruler=20;
|
|
string account = 21;
|
|
string certificateNum = 22;
|
|
string certificateImg = 23;
|
|
string photo = 24;
|
|
string htmlType = 25;//法大大实名认证页面跳转参数
|
|
string envType = 26;//法大大实名认证页面跳转参数
|
|
string inviteCode = 27;
|
|
int64 mgmtArtistId = 28; //艺术家id
|
|
|
|
//手机号更新用
|
|
string domain =29;
|
|
string verCode=30;
|
|
}
|
|
|
|
message PreSaveArtistInfoData{
|
|
int64 mgmtAccId = 1;
|
|
string name = 2;
|
|
string cardId = 3;
|
|
int32 gender = 4;
|
|
int32 age = 5;
|
|
string nativePlace = 6;
|
|
string penName = 7;
|
|
string phone = 8;
|
|
string address = 9;
|
|
string stageName = 10;
|
|
string caaCertNum = 11;
|
|
string caaJoinTime = 12;
|
|
int32 joinShow = 13;
|
|
}
|
|
|
|
message GetPreSaveArtistInfoRequest{
|
|
int64 mgmtAccId = 1;
|
|
} |