570 lines
16 KiB
Protocol Buffer
570 lines
16 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 FindUser(FindUserRequest)returns(UserInfo){} //查找单个用户信息
|
|
rpc FindUsers(FindUsersRequest)returns(FindUsersResponse){} //批量查询用户信息
|
|
rpc FindUsersUserView(FindUsersRequest)returns(FindUsersUserViewResponse){} //使用视图批量查询用户信息
|
|
rpc UpdateUserData(UserInfo)returns(CommonNoParams){} //更新用户信息
|
|
rpc PreSaveArtistInfo(PreSaveArtistInfoData)returns(CommonNoParams){}//暂存艺术家信息
|
|
rpc GetPreSaveArtistInfo(GetPreSaveArtistInfoRequest)returns(PreSaveArtistInfoData){} //获取暂存的艺术家信息
|
|
rpc GetInvitedUserList(GetInvitedUserListRequest)returns(GetInvitedUserListResponse){} //通过邀请者的邀请码,获取接受邀请的人员列表
|
|
rpc GetInviterUserList(GetInviterUserListRequest)returns(GetInvitedUserListResponse){} //通过接受邀请者的邀请码,获取邀请者列表
|
|
rpc GetInviteStaticList(GetInviteStaticListRequest)returns(GetInviteStaticListResponse){}//获取邀请关系统计列表
|
|
}
|
|
message CommonNoParams{
|
|
}
|
|
message UserCommonPageInfo{
|
|
int32 page =1;
|
|
int32 pageSize =2;
|
|
int64 total=4;
|
|
}
|
|
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 accId = 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 {
|
|
string lockTime =1;
|
|
}
|
|
|
|
|
|
|
|
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 {
|
|
string lockTime =1;
|
|
}
|
|
|
|
|
|
message BindInviteInvitedAccountRequest{
|
|
int32 invitedUserId = 1; // 受邀请人的画家宝用户id
|
|
string inviteCode = 2; // 邀请人的邀请码
|
|
string invitedCode = 3; // 受邀请人的邀请码
|
|
}
|
|
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; //邀请码
|
|
bool isArtist=9; //查询有艺术家uid的数据
|
|
}
|
|
message FindUsersRequest{
|
|
string mgmtArtistUid = 1;
|
|
string inviterName =2; //邀请人名称
|
|
string ArtistRealName = 3; //画家真是姓名
|
|
string invitedCode = 4;//邀请码
|
|
int32 page=5;
|
|
int32 pageSize=6;
|
|
bool isArtist=9; //查询有艺术家uid的数据
|
|
repeated string mgmtArtistUids =10;
|
|
bool isLock =11;
|
|
int64 mgmtAccountId = 12;
|
|
// string Account = 3;
|
|
// string TelNum = 4;
|
|
// bool IsLock = 5;
|
|
// bool Enable = 6;
|
|
// int64 FddState = 7;
|
|
}
|
|
message FindUsersResponse{
|
|
repeated UserInfo data = 1;
|
|
UserCommonPageInfo page =2;
|
|
}
|
|
|
|
|
|
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 inviterCode = 8;// 邀请者的邀请码
|
|
string inviterName = 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 latestLockTime=29; //最近一次上锁时间
|
|
string joinAssoTime =32;
|
|
string wxAccount=33;
|
|
//手机号更新用
|
|
string domain =30;
|
|
string verCode=31;
|
|
}
|
|
|
|
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;
|
|
string wxAccount=14;
|
|
string InviterCode=15;
|
|
}
|
|
|
|
message GetPreSaveArtistInfoRequest{
|
|
int64 mgmtAccId = 1;
|
|
}
|
|
|
|
message UserView{
|
|
int64 userId=1;
|
|
int64 accId=2;
|
|
string artistUid=3;
|
|
string telNum=4;
|
|
string inviteCode=5;
|
|
string account=6;
|
|
string photo=7;
|
|
int64 isRealName=8;
|
|
int64 fddState=9;
|
|
int64 isRead=10;
|
|
bool isLock=11;
|
|
string realName=12;
|
|
string idNum=13;
|
|
string sex=14;
|
|
int64 age=15;
|
|
repeated string address=16;
|
|
string idcardBack=17;
|
|
string idcardFront=18;
|
|
string inviterInviteCode=19;
|
|
string inviterRealName=20;
|
|
string joinAssoTime=29;
|
|
int64 deletedAt = 21;
|
|
string updatedAt = 22;
|
|
string createdAt = 23;
|
|
string penName =24;
|
|
string stageName=25;
|
|
string certificateNum=26;
|
|
string certificateImg=30;
|
|
string bankName=27;
|
|
string bankNum=28;
|
|
string latestLockTime=31;
|
|
string wxAccount=32;
|
|
}
|
|
message FindUsersUserViewResponse{
|
|
repeated UserView data=1;
|
|
UserCommonPageInfo page =2;
|
|
}
|
|
message GetInvitedUserListRequest{
|
|
// string telNum =1;//可选 邀请者的电话号码
|
|
string inviterCode=2;//可选 邀请者的二维码
|
|
int64 page=3;
|
|
int64 pageSize=4;
|
|
}
|
|
|
|
message InvitedUser{
|
|
int64 userId=1;
|
|
int64 accId=2;
|
|
string artistUid=3;
|
|
string telNum=4;
|
|
string inviteCode=5;
|
|
string account=6;
|
|
string photo=7;
|
|
int64 isRealName=8;
|
|
int64 fddState=9;
|
|
string realName=12;
|
|
string sex=14;
|
|
int64 age=15;
|
|
string createdAt = 23;
|
|
string penName =24;
|
|
string stageName=25;
|
|
}
|
|
message GetInvitedUserListResponse{
|
|
repeated InvitedUser data =1;
|
|
UserCommonPageInfo page =2;
|
|
}
|
|
|
|
message GetInviterUserListRequest{
|
|
string invitedCode=1; //受邀请者的邀请码
|
|
int64 page=2;
|
|
int64 pageSize=3;
|
|
}
|
|
|
|
message GetInviteStaticListRequest{
|
|
int64 page=1;
|
|
int64 pageSize=2;
|
|
string KeyWords=3; //关键字 受邀请者的邀请码 OR 受邀请者的姓名 OR 受邀请者的手机号码
|
|
}
|
|
message GetInviteStaticListData{
|
|
int64 idx=1;//序号
|
|
string realName=2;//画家真实姓名
|
|
string telNum=3;//电话号码
|
|
string inviteCode=4;//邀请码
|
|
string invitePicUrl=5;//邀请二维码
|
|
int64 invitedCount=6;//邀请人员总数
|
|
}
|
|
message GetInviteStaticListResponse{
|
|
repeated GetInviteStaticListData data =1;
|
|
UserCommonPageInfo page=2;
|
|
} |