syntax = "proto3";
package artistinfo;
option go_package = "./;artistinfo";
// protoc --proto_path=. --go_out=./pb/artistinfo --go-triple_out=./pb/artistinfo ./pb/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) {}
    rpc ArtistSupplyList (ArtistSupplyListRequest) returns (ArtistSupplyListRespond){}
    rpc UserLock (UserLockRequest) returns(UserLockRespond){}
    
}
message UploadPicRequest {

}

message UploadPicRespond {

}

message UploadIdCardRequest {

}

message UploadIdCardRespond {

}

message CheckMsgRequest{
  string TelNum = 1 ;
  string VerCode = 2;
}
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 {

}



message ArtistSupplyListRequest {
  string ArtistId = 1;
  string Name        =2;
  string ArtistName  =3;
  string InvitedName =4;
  uint64 IsImport    =5;
  uint64 State       =6;
  uint64 Page        =7;
  uint64 PageSize    =8;
}

message ArtistSupplyListRespond {
  uint64    Count  =1;
  repeated ArtistArtworkSupplyListResponseData    Data   =2;
}

message ArtistArtworkSupplyListResponseData  {
  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;
}


message UserLockRequest {
  int64  Id      =1;
  bool IsLock  =2;
}

message UserLockRespond {

}