-
Notifications
You must be signed in to change notification settings - Fork 1
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 #157 from swm-nodriversomabus/BUS-203-Authority-check
feat(BE): 사용자/매칭 생성 및 삭제 권한 제어 BUS-203-Authority-check #156
- Loading branch information
Showing
9 changed files
with
123 additions
and
21 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
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
2 changes: 2 additions & 0 deletions
2
src/main/java/com/example/api/user/application/port/in/FindUserUsecase.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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
package com.example.api.user.application.port.in; | ||
|
||
import com.example.api.user.dto.FindUserDto; | ||
import com.example.api.user.dto.UserAuthorityCheckDto; | ||
|
||
import java.util.List; | ||
|
||
public interface FindUserUsecase { | ||
List<FindUserDto> getAll(); | ||
FindUserDto getUser(); | ||
UserAuthorityCheckDto getAuthorityUser(); | ||
} |
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 |
---|---|---|
|
@@ -8,7 +8,6 @@ | |
import java.time.LocalDateTime; | ||
|
||
@Getter | ||
@Setter | ||
@Builder | ||
@ToString | ||
@NoArgsConstructor | ||
|
26 changes: 26 additions & 0 deletions
26
src/main/java/com/example/api/user/dto/UserAuthorityCheckDto.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,26 @@ | ||
package com.example.api.user.dto; | ||
|
||
import com.example.api.user.type.UserRoleEnum; | ||
import jakarta.validation.constraints.NotNull; | ||
import lombok.*; | ||
|
||
import java.util.UUID; | ||
|
||
@Getter | ||
@Builder | ||
@ToString | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class UserAuthorityCheckDto { | ||
@NotNull | ||
private UUID userId; | ||
|
||
@NotNull | ||
private UserRoleEnum role; | ||
|
||
@NotNull | ||
private Boolean blacklist; | ||
|
||
@NotNull | ||
private Boolean isActive; | ||
} |
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