fonchain-artistinfo/pb/artistinfo/artistinfo.proto

402 lines
11 KiB
Protocol Buffer
Raw Normal View History

2023-01-18 09:03:15 +00:00
syntax = "proto3";
package artistinfo;
option go_package = "./;artistinfo";
2023-02-17 03:33:56 +00:00
import public "google/protobuf/timestamp.proto";
2023-02-02 06:10:24 +00:00
// protoc --proto_path=. --go_out=./pb/artistinfo --go-triple_out=./pb/artistinfo ./pb/artistinfo/artistinfo.proto
2023-01-18 09:03:15 +00:00
service ArtistInfo {
2023-02-17 03:33:56 +00:00
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) {}
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){} //更新用户信息
}
message CommonNoParams{
}
message UpdateMsgRequest {
uint64 Id = 1;
}
message UpdateMsgRespond {
}
message GetUserMsgRequest{
uint64 Id = 1;
}
message GetUserMsgRespond{
uint64 id = 1[json_name = "id"];
uint64 mgmtUserId = 2[json_name = "mgmtUserId"];
string mgmtArtistId = 3[json_name = "mgmtArtistId"];
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 {
uint64 id = 1;
}
message UnFinishListRespond {
int64 contractList = 1;
int64 supplyInfoList = 2;
int64 accountStateList = 3;
}
2023-02-15 01:39:14 +00:00
2023-01-18 09:03:15 +00:00
message UploadPicRequest {
}
message UploadPicRespond {
2023-02-06 01:33:09 +00:00
2023-01-18 09:03:15 +00:00
}
message UploadIdCardRequest {
2023-02-06 01:33:09 +00:00
2023-01-18 09:03:15 +00:00
}
message UploadIdCardRespond {
2023-02-06 01:33:09 +00:00
2023-01-18 09:03:15 +00:00
}
2023-02-02 06:10:24 +00:00
message CheckMsgRequest{
2023-02-17 03:33:56 +00:00
string telNum = 1 ;
string verCode = 2;
2023-02-02 06:10:24 +00:00
}
2023-01-18 09:03:15 +00:00
message RegisterUserRequest {
2023-02-17 03:33:56 +00:00
uint64 id = 1;
uint64 mgmtUserId = 2;
string mgmtArtistId = 3;
string telNum = 4;
2023-01-18 09:03:15 +00:00
}
message RegisterUserRespond {
2023-02-06 01:33:09 +00:00
2023-01-18 09:03:15 +00:00
}
message GetUserRequest {
2023-02-17 03:33:56 +00:00
string telNum = 1;
2023-01-18 09:03:15 +00:00
}
message GetUserRespond {
2023-02-17 03:33:56 +00:00
uint64 id = 1;
uint64 mgmtUserId = 2;
string mgmtArtistId = 3;
string telNum = 4;
int64 isFdd = 5;
int64 isRealName = 6;
int64 ruler = 7;
2023-01-18 09:03:15 +00:00
}
message GetUserByIdRequest {
2023-02-17 03:33:56 +00:00
uint64 id = 1;
2023-01-18 09:03:15 +00:00
}
message GetUserByIdRespond{
2023-02-17 03:33:56 +00:00
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;
2023-01-18 09:03:15 +00:00
}
message GetUserByIdData {
2023-02-17 03:33:56 +00:00
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"];
2023-01-18 09:03:15 +00:00
}
message CreateUserRequest {
2023-02-17 03:33:56 +00:00
uint64 id = 1;
string telNum = 2;
2023-01-18 09:03:15 +00:00
}
message CreateUserRespond {
2023-02-06 01:33:09 +00:00
2023-01-18 09:03:15 +00:00
}
message CreateUserInfoRequest {
2023-02-17 03:33:56 +00:00
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"];
uint64 id = 26 [json_name = "id"];
2023-01-18 09:03:15 +00:00
}
message CreateUserInfoRespond {
2023-02-06 01:33:09 +00:00
2023-01-18 09:03:15 +00:00
}
message UpdateRealNameRequest {
2023-02-17 03:33:56 +00:00
uint64 id = 1; //用户id
string idNum = 2; // 身份证号码
string name = 3; // 姓名
2023-01-18 09:03:15 +00:00
}
message UpdateRealNameRespond {
2023-02-06 01:33:09 +00:00
2023-01-18 09:03:15 +00:00
}
message FinishVerifyRequest {
2023-02-17 03:33:56 +00:00
uint64 id = 1;
2023-01-18 09:03:15 +00:00
}
message FinishVerifyRespond {
2023-02-06 01:33:09 +00:00
2023-01-18 09:03:15 +00:00
}
message CheckUserLockRequest {
2023-02-17 03:33:56 +00:00
uint64 id = 1 [json_name = "id"];
2023-02-06 01:33:09 +00:00
}
message CheckUserLockRespond {
}
message ArtistSupplyListRequest {
2023-02-17 03:33:56 +00:00
string artistId = 1;
string name = 2;
string artistName = 3;
string invitedName = 4;
uint64 isImport = 5;
uint64 state = 6;
uint64 page = 7;
uint64 pageSize = 8;
2023-02-06 01:33:09 +00:00
}
message ArtistSupplyListRespond {
2023-02-17 03:33:56 +00:00
uint64 count = 1;
repeated ArtistArtworkSupplyListResponseData data = 2;
2023-02-06 01:33:09 +00:00
}
2023-02-02 06:10:24 +00:00
message ArtistArtworkSupplyListResponseData {
2023-02-17 03:33:56 +00:00
string id = 1;
string account = 2;
uint64 passRulerCount = 3;
string mnemonicWords = 4;
string telNum = 5;
uint64 passArtworkCount = 6;
string name = 7;
string penName = 8;
string certificate = 9;
string certificateImg = 10;
string key = 11;
uint64 sex = 12;
uint64 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;
uint64 isImport = 25;
bool isLock = 26;
string idCardFront = 27;
string idCardBack = 28;
string bankName = 29;
string bankAccount = 30;
string minTime = 31;
string lockTime = 32;
uint64 artworkCount = 33;
uint64 rulerCount = 34;
2023-02-06 01:33:09 +00:00
}
message UserLockRequest {
2023-02-17 03:33:56 +00:00
int64 id = 1;
bool isLock = 2;
2023-02-06 01:33:09 +00:00
}
message UserLockRespond {
2023-02-15 01:10:11 +00:00
}
2023-02-15 02:03:22 +00:00
2023-02-15 01:10:11 +00:00
message BindInviteInvitedAccountRequest{
2023-02-17 03:33:56 +00:00
int32 userId = 1; //邀请人账号id
int32 invitedUserId = 2; // 受邀请人账号id
string inviteCode = 3; //邀请人的邀请码
string invitedCode = 4; //受邀请人的邀请码
2023-02-15 01:10:11 +00:00
}
message BindInviteInvitedAccountRespond{
2023-02-15 02:03:22 +00:00
// no params
2023-02-15 01:10:11 +00:00
}
message BindArtistIdRequest{
2023-02-17 03:33:56 +00:00
int64 userId = 1; // 用户账号id
int64 artistId = 2; // 艺术家id
}
message BindArtistIdResp{
2023-02-17 03:33:56 +00:00
string error = 1;
}
message CreateDataRequest{
}
message FindUserRequest{
uint64 mgmtUserId = 1;
string mgmtArtistId = 2;
// 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 UserInfo{
uint64 id = 1;
uint64 mgmtUserId = 2;
string mgmtArtistId = 3;
string account = 4;
string mnemonicWords = 5;
string telNum = 6;
string name = 7;
string penName = 8;
string stageName = 9;
string joinAssoTime = 10;
string certificateNum = 11;
string certificateImg = 12;
string key = 13;
int32 realNameID = 14;
string iDNum = 15;
int32 sex = 16;
int64 ruler = 17;
string openId = 18;
string customerId = 19;
int32 age = 20;
string introduct = 21;
int64 createdAt = 22;
string conAddress = 23;
string photo = 24;
string video = 25;
int64 isRealName = 26;
int64 isFdd = 27;
int64 fddState = 28;
string wxAccount = 29;
bool isLock = 30;
string invitedCode = 31;
int32 isRead = 32;
int32 isImport = 33;
bool enable = 34;
int64 deletedAt = 35;
int64 updatedAt =36;
}