-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
feat - ๋น์ผ ์ ๊ธ ์ฌ๋ถ ์ ์ก ๋ฐ ํ์ธ api ์ถ๊ฐ
- Loading branch information
Showing
10 changed files
with
126 additions
and
36 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
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
19 changes: 19 additions & 0 deletions
19
src/main/java/sopt/org/hmh/domain/user/dto/request/UserRequest.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,19 @@ | ||
package sopt.org.hmh.domain.user.dto.request; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
import java.time.LocalDate; | ||
import lombok.AccessLevel; | ||
import lombok.NoArgsConstructor; | ||
import org.springframework.format.annotation.DateTimeFormat; | ||
|
||
@NoArgsConstructor(access = AccessLevel.PRIVATE) | ||
public class UserRequest { | ||
|
||
public record LockDateRequest( | ||
@DateTimeFormat(pattern = "yyyy-MM-dd") | ||
@NotNull(message = "์ ๊ธ ๋ ์ง๋ null์ผ ์ ์์ต๋๋ค.") | ||
LocalDate lockDate | ||
) { | ||
} | ||
|
||
} |
15 changes: 0 additions & 15 deletions
15
src/main/java/sopt/org/hmh/domain/user/dto/response/UserInfoResponse.java
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
src/main/java/sopt/org/hmh/domain/user/dto/response/UserResponse.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 sopt.org.hmh.domain.user.dto.response; | ||
|
||
import lombok.AccessLevel; | ||
import lombok.NoArgsConstructor; | ||
import sopt.org.hmh.domain.user.domain.User; | ||
|
||
@NoArgsConstructor(access = AccessLevel.PRIVATE) | ||
public class UserResponse { | ||
|
||
public record UserInfoResponse( | ||
String name, | ||
Integer point | ||
) { | ||
public static UserInfoResponse of(User user) { | ||
return new UserInfoResponse( | ||
user.getName(), | ||
user.getPoint() | ||
); | ||
} | ||
} | ||
|
||
public record IsLockTodayResponse( | ||
boolean isLockToday | ||
) { | ||
} | ||
} |
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