member, member_bank_account are modified

This commit is contained in:
병준 박 2022-08-15 04:08:57 +00:00
parent a5de0dc389
commit fb7fb09f9d
6 changed files with 68 additions and 21 deletions

View File

@ -8,6 +8,12 @@ import "protobuf/pagination.proto";
import "models/member.proto"; import "models/member.proto";
message CreateMemberRequest { message CreateMemberRequest {
message BankAccount {
string bank_id = 1;
string name = 2;
string account_number = 3;
string exchange_password = 4;
}
string site_id = 1; string site_id = 1;
string member_class_id = 2; string member_class_id = 2;
string member_level_id = 3; string member_level_id = 3;
@ -16,7 +22,7 @@ message CreateMemberRequest {
string password = 6; string password = 6;
string nickname = 7; string nickname = 7;
optional string mobile_phone_number = 8; optional string mobile_phone_number = 8;
bet.beteran.member.MemberState state = 9; optional BankAccount bank_account = 9;
} }
message CreateMemberResponse { message CreateMemberResponse {
@ -78,11 +84,18 @@ message GetMemberByUsernameResponse {
} }
message UpdateMemberRequest { message UpdateMemberRequest {
message BankAccount {
string bank_id = 1;
string name = 2;
string account_number = 3;
string exchange_password = 4;
}
string id = 1; string id = 1;
optional string site_id = 2; optional string site_id = 2;
optional string member_level_id = 3; optional string member_level_id = 3;
optional string password = 4; optional string password = 4;
optional string mobile_phone_number = 5; optional string mobile_phone_number = 5;
optional BankAccount bank_account = 6;
} }
message UpdateMemberResponse { message UpdateMemberResponse {

View File

@ -12,7 +12,8 @@ message CreateMemberBankAccountRequest {
string bank_id = 2; string bank_id = 2;
string name = 3; string name = 3;
string account_number = 4; string account_number = 4;
optional string memo = 5; string exchange_password = 5;
optional string memo = 6;
} }
message CreateMemberBankAccountResponse { message CreateMemberBankAccountResponse {
@ -61,7 +62,8 @@ message UpdateMemberBankAccountRequest {
string bank_id = 2; string bank_id = 2;
string name = 3; string name = 3;
string account_number = 4; string account_number = 4;
optional string memo = 5; string exchange_password = 5;
optional string memo = 6;
} }

View File

@ -4,6 +4,7 @@ package bet.beteran.member;
import "models/site.proto"; import "models/site.proto";
import "models/member_bank_account.proto";
import "models/member_class.proto"; import "models/member_class.proto";
import "models/member_level.proto"; import "models/member_level.proto";
@ -42,16 +43,17 @@ message MemberModel {
bet.beteran.site.Site site = 2; bet.beteran.site.Site site = 2;
bet.beteran.member_class.MemberClass member_class = 3; bet.beteran.member_class.MemberClass member_class = 3;
bet.beteran.member_level.MemberLevel member_level = 4; bet.beteran.member_level.MemberLevel member_level = 4;
optional Member referrer_member = 5; optional bet.beteran.member_bank_account.MemberBankAccountModel bank_account = 5;
uint64 referred_count = 6; optional Member referrer_member = 6;
string username = 7; uint64 referred_count = 7;
string nickname = 8; string username = 8;
optional string mobile_phone_number = 9; string nickname = 9;
MemberState state = 10; optional string mobile_phone_number = 10;
optional uint64 state_changed_at = 11; MemberState state = 11;
optional string last_signined_ip = 12; optional uint64 state_changed_at = 12;
optional uint64 last_signined_at = 13; optional string last_signined_ip = 13;
uint64 created_at = 14; optional uint64 last_signined_at = 14;
uint64 updated_at = 15; uint64 created_at = 15;
optional uint64 deleted_at = 16; uint64 updated_at = 16;
optional uint64 deleted_at = 17;
} }

View File

@ -2,13 +2,28 @@ syntax = "proto3";
package bet.beteran.member_bank_account; package bet.beteran.member_bank_account;
import "models/bank.proto";
message MemberBankAccount { message MemberBankAccount {
string id = 1; string id = 1;
string member_id = 2; string member_id = 2;
string bank_id = 3; string bank_id = 3;
string name = 4; string name = 4;
string account_number = 5; string account_number = 5;
optional string memo = 6; string exchange_password = 6;
uint64 created_at = 7; optional string memo = 7;
uint64 updated_at = 8; 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;
} }

View File

@ -11,6 +11,12 @@ import "models/member.proto";
// subject = bet.beteran.ss.member.CreateMember // subject = bet.beteran.ss.member.CreateMember
message CreateMemberRequest { message CreateMemberRequest {
message Request { message Request {
message BankAccount {
string bank_id = 1;
string name = 2;
string account_number = 3;
string exchange_password = 4;
}
string site_id = 1; string site_id = 1;
string member_class_id = 2; string member_class_id = 2;
string member_level_id = 3; string member_level_id = 3;
@ -19,7 +25,7 @@ message CreateMemberRequest {
string password = 6; string password = 6;
string nickname = 7; string nickname = 7;
optional string mobile_phone_number = 8; optional string mobile_phone_number = 8;
bet.beteran.member.MemberState state = 9; optional BankAccount bank_account = 9;
} }
bet.beteran.core.network.Client client = 1; bet.beteran.core.network.Client client = 1;
Request request = 2; Request request = 2;
@ -101,11 +107,18 @@ message GetMemberByUsernameResponse {
// subject = bet.beteran.ss.member.UpdateMember // subject = bet.beteran.ss.member.UpdateMember
message UpdateMemberRequest { message UpdateMemberRequest {
message Request { message Request {
message BankAccount {
string bank_id = 1;
string name = 2;
string account_number = 3;
string exchange_password = 4;
}
string id = 1; string id = 1;
optional string site_id = 2; optional string site_id = 2;
optional string member_level_id = 3; optional string member_level_id = 3;
optional string password = 4; optional string password = 4;
optional string mobile_phone_number = 5; optional string mobile_phone_number = 5;
optional BankAccount bank_account = 6;
} }
bet.beteran.core.network.Client client = 1; bet.beteran.core.network.Client client = 1;
Request request = 2; Request request = 2;

View File

@ -14,7 +14,8 @@ message CreateMemberBankAccountRequest {
string bank_id = 2; string bank_id = 2;
string name = 3; string name = 3;
string account_number = 4; string account_number = 4;
optional string memo = 5; string exchange_password = 5;
optional string memo = 6;
} }
bet.beteran.core.network.Client client = 1; bet.beteran.core.network.Client client = 1;
Request request = 2; Request request = 2;
@ -78,7 +79,8 @@ message UpdateMemberBankAccountRequest {
string bank_id = 2; string bank_id = 2;
string name = 3; string name = 3;
string account_number = 4; string account_number = 4;
optional string memo = 5; string exchange_password = 5;
optional string memo = 6;
} }
bet.beteran.core.network.Client client = 1; bet.beteran.core.network.Client client = 1;