-
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.
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
package com.taskbuddy.core.domain; | ||
|
||
public record User(Long id) { | ||
import lombok.Getter; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
@Getter | ||
public class User { | ||
private Long id; | ||
private boolean loggedIn; | ||
private boolean reminderEnabled; | ||
private LocalDateTime createdAt; | ||
private LocalDateTime updatedAt; | ||
} |
13 changes: 13 additions & 0 deletions
13
core/src/main/java/com/taskbuddy/core/service/UserService.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,13 @@ | ||
package com.taskbuddy.core.service; | ||
|
||
import com.taskbuddy.core.domain.User; | ||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
public class UserService { | ||
|
||
//임시 구현 | ||
public boolean isUserLoggedIn(User user) { | ||
return user.isLoggedIn(); | ||
} | ||
} |