member, member_bank_account are modified
This commit is contained in:
parent
a5de0dc389
commit
fb7fb09f9d
|
@ -8,6 +8,12 @@ import "protobuf/pagination.proto";
|
|||
import "models/member.proto";
|
||||
|
||||
message CreateMemberRequest {
|
||||
message BankAccount {
|
||||
string bank_id = 1;
|
||||
string name = 2;
|
||||
string account_number = 3;
|
||||
string exchange_password = 4;
|
||||
}
|
||||
string site_id = 1;
|
||||
string member_class_id = 2;
|
||||
string member_level_id = 3;
|
||||
|
@ -16,7 +22,7 @@ message CreateMemberRequest {
|
|||
string password = 6;
|
||||
string nickname = 7;
|
||||
optional string mobile_phone_number = 8;
|
||||
bet.beteran.member.MemberState state = 9;
|
||||
optional BankAccount bank_account = 9;
|
||||
}
|
||||
|
||||
message CreateMemberResponse {
|
||||
|
@ -78,11 +84,18 @@ message GetMemberByUsernameResponse {
|
|||
}
|
||||
|
||||
message UpdateMemberRequest {
|
||||
message BankAccount {
|
||||
string bank_id = 1;
|
||||
string name = 2;
|
||||
string account_number = 3;
|
||||
string exchange_password = 4;
|
||||
}
|
||||
string id = 1;
|
||||
optional string site_id = 2;
|
||||
optional string member_level_id = 3;
|
||||
optional string password = 4;
|
||||
optional string mobile_phone_number = 5;
|
||||
optional BankAccount bank_account = 6;
|
||||
}
|
||||
|
||||
message UpdateMemberResponse {
|
||||
|
|
|
@ -12,7 +12,8 @@ message CreateMemberBankAccountRequest {
|
|||
string bank_id = 2;
|
||||
string name = 3;
|
||||
string account_number = 4;
|
||||
optional string memo = 5;
|
||||
string exchange_password = 5;
|
||||
optional string memo = 6;
|
||||
}
|
||||
|
||||
message CreateMemberBankAccountResponse {
|
||||
|
@ -61,7 +62,8 @@ message UpdateMemberBankAccountRequest {
|
|||
string bank_id = 2;
|
||||
string name = 3;
|
||||
string account_number = 4;
|
||||
optional string memo = 5;
|
||||
string exchange_password = 5;
|
||||
optional string memo = 6;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ package bet.beteran.member;
|
|||
|
||||
import "models/site.proto";
|
||||
|
||||
import "models/member_bank_account.proto";
|
||||
import "models/member_class.proto";
|
||||
import "models/member_level.proto";
|
||||
|
||||
|
@ -42,16 +43,17 @@ message MemberModel {
|
|||
bet.beteran.site.Site site = 2;
|
||||
bet.beteran.member_class.MemberClass member_class = 3;
|
||||
bet.beteran.member_level.MemberLevel member_level = 4;
|
||||
optional Member referrer_member = 5;
|
||||
uint64 referred_count = 6;
|
||||
string username = 7;
|
||||
string nickname = 8;
|
||||
optional string mobile_phone_number = 9;
|
||||
MemberState state = 10;
|
||||
optional uint64 state_changed_at = 11;
|
||||
optional string last_signined_ip = 12;
|
||||
optional uint64 last_signined_at = 13;
|
||||
uint64 created_at = 14;
|
||||
uint64 updated_at = 15;
|
||||
optional uint64 deleted_at = 16;
|
||||
optional bet.beteran.member_bank_account.MemberBankAccountModel bank_account = 5;
|
||||
optional Member referrer_member = 6;
|
||||
uint64 referred_count = 7;
|
||||
string username = 8;
|
||||
string nickname = 9;
|
||||
optional string mobile_phone_number = 10;
|
||||
MemberState state = 11;
|
||||
optional uint64 state_changed_at = 12;
|
||||
optional string last_signined_ip = 13;
|
||||
optional uint64 last_signined_at = 14;
|
||||
uint64 created_at = 15;
|
||||
uint64 updated_at = 16;
|
||||
optional uint64 deleted_at = 17;
|
||||
}
|
||||
|
|
|
@ -2,13 +2,28 @@ syntax = "proto3";
|
|||
|
||||
package bet.beteran.member_bank_account;
|
||||
|
||||
import "models/bank.proto";
|
||||
|
||||
message MemberBankAccount {
|
||||
string id = 1;
|
||||
string member_id = 2;
|
||||
string bank_id = 3;
|
||||
string name = 4;
|
||||
string account_number = 5;
|
||||
optional string memo = 6;
|
||||
uint64 created_at = 7;
|
||||
uint64 updated_at = 8;
|
||||
string exchange_password = 6;
|
||||
optional string memo = 7;
|
||||
uint64 created_at = 8;
|
||||
uint64 updated_at = 9;
|
||||
}
|
||||
|
||||
message MemberBankAccountModel {
|
||||
string id = 1;
|
||||
string member_id = 2;
|
||||
bet.beteran.bank.Bank bank = 3;
|
||||
string name = 4;
|
||||
string account_number = 5;
|
||||
string exchange_password = 6;
|
||||
optional string memo = 7;
|
||||
uint64 created_at = 8;
|
||||
uint64 updated_at = 9;
|
||||
}
|
||||
|
|
|
@ -11,6 +11,12 @@ import "models/member.proto";
|
|||
// subject = bet.beteran.ss.member.CreateMember
|
||||
message CreateMemberRequest {
|
||||
message Request {
|
||||
message BankAccount {
|
||||
string bank_id = 1;
|
||||
string name = 2;
|
||||
string account_number = 3;
|
||||
string exchange_password = 4;
|
||||
}
|
||||
string site_id = 1;
|
||||
string member_class_id = 2;
|
||||
string member_level_id = 3;
|
||||
|
@ -19,7 +25,7 @@ message CreateMemberRequest {
|
|||
string password = 6;
|
||||
string nickname = 7;
|
||||
optional string mobile_phone_number = 8;
|
||||
bet.beteran.member.MemberState state = 9;
|
||||
optional BankAccount bank_account = 9;
|
||||
}
|
||||
bet.beteran.core.network.Client client = 1;
|
||||
Request request = 2;
|
||||
|
@ -101,11 +107,18 @@ message GetMemberByUsernameResponse {
|
|||
// subject = bet.beteran.ss.member.UpdateMember
|
||||
message UpdateMemberRequest {
|
||||
message Request {
|
||||
message BankAccount {
|
||||
string bank_id = 1;
|
||||
string name = 2;
|
||||
string account_number = 3;
|
||||
string exchange_password = 4;
|
||||
}
|
||||
string id = 1;
|
||||
optional string site_id = 2;
|
||||
optional string member_level_id = 3;
|
||||
optional string password = 4;
|
||||
optional string mobile_phone_number = 5;
|
||||
optional BankAccount bank_account = 6;
|
||||
}
|
||||
bet.beteran.core.network.Client client = 1;
|
||||
Request request = 2;
|
||||
|
|
|
@ -14,7 +14,8 @@ message CreateMemberBankAccountRequest {
|
|||
string bank_id = 2;
|
||||
string name = 3;
|
||||
string account_number = 4;
|
||||
optional string memo = 5;
|
||||
string exchange_password = 5;
|
||||
optional string memo = 6;
|
||||
}
|
||||
bet.beteran.core.network.Client client = 1;
|
||||
Request request = 2;
|
||||
|
@ -78,7 +79,8 @@ message UpdateMemberBankAccountRequest {
|
|||
string bank_id = 2;
|
||||
string name = 3;
|
||||
string account_number = 4;
|
||||
optional string memo = 5;
|
||||
string exchange_password = 5;
|
||||
optional string memo = 6;
|
||||
|
||||
}
|
||||
bet.beteran.core.network.Client client = 1;
|
||||
|
|
Loading…
Reference in New Issue
Block a user