-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #195 from sharemindteam/feature/194-customer-ban
feat: 특정 사용자 로그인 제재 기능 구현
- Loading branch information
Showing
11 changed files
with
131 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...n/java/com/example/sharemind/admin/dto/response/CustomerGetByNicknameOrEmailResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.example.sharemind.admin.dto.response; | ||
|
||
import com.example.sharemind.customer.domain.Customer; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class CustomerGetByNicknameOrEmailResponse { | ||
|
||
@Schema(description = "사용자 아이디") | ||
private final Long customerId; | ||
|
||
@Schema(description = "닉네임") | ||
private final String nickname; | ||
|
||
@Schema(description = "이메일") | ||
private final String email; | ||
|
||
@Schema(description = "로그인 제재 여부") | ||
private final Boolean isBanned; | ||
|
||
@Builder | ||
public CustomerGetByNicknameOrEmailResponse(Long customerId, String nickname, String email, | ||
Boolean isBanned) { | ||
this.customerId = customerId; | ||
this.nickname = nickname; | ||
this.email = email; | ||
this.isBanned = isBanned; | ||
} | ||
|
||
public static CustomerGetByNicknameOrEmailResponse of(Customer customer) { | ||
return CustomerGetByNicknameOrEmailResponse.builder() | ||
.customerId(customer.getCustomerId()) | ||
.nickname(customer.getNickname()) | ||
.email(customer.getEmail()) | ||
.isBanned(customer.getIsBanned()) | ||
.build(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters