From 3638e0b80a51678768e01d672fb03b778e19b8d0 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Wed, 24 Aug 2022 07:12:09 +0000 Subject: [PATCH] create_member of ss is changed --- Cargo.toml | 4 ++-- src/repositories/member/models.rs | 2 ++ src/services/member/service.rs | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ddea4dd..b39df25 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,7 +38,7 @@ tokio = { version = "1", features = ["macros", "rt-multi-thread"] } tokio-cron-scheduler = { version = "0" } uuid = { version = "0", features = ["serde", "v4", "v5"] } -beteran-protobuf-rust = { git = "https://gitlab.loafle.net/bet/beteran-protobuf-rust.git", tag = "v0.1.73-snapshot" } -beteran-common-rust = { git = "https://gitlab.loafle.net/bet/beteran-common-rust.git", tag = "v0.1.57-snapshot" } +beteran-protobuf-rust = { git = "https://gitlab.loafle.net/bet/beteran-protobuf-rust.git", tag = "v0.1.74-snapshot" } +beteran-common-rust = { git = "https://gitlab.loafle.net/bet/beteran-common-rust.git", tag = "v0.1.58-snapshot" } [build-dependencies] diff --git a/src/repositories/member/models.rs b/src/repositories/member/models.rs index 9fa40de..4041fb0 100644 --- a/src/repositories/member/models.rs +++ b/src/repositories/member/models.rs @@ -58,6 +58,8 @@ pub struct NewMember { /// pub password: String, /// + pub state: MemberState, + /// pub nickname: String, /// pub mobile_phone_number: Option, diff --git a/src/services/member/service.rs b/src/services/member/service.rs index e58c831..2b274ad 100644 --- a/src/services/member/service.rs +++ b/src/services/member/service.rs @@ -326,6 +326,7 @@ impl Service<'_> { username: request.username, password: password_hash, nickname: request.nickname, + state: repositories::member::schema::MemberState::from(request.state), mobile_phone_number: request.mobile_phone_number, };