Skip to content

Commit

Permalink
refactor: UserService 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
olivejua committed Oct 7, 2024
1 parent d601ded commit c5fc51c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
12 changes: 11 additions & 1 deletion core/src/main/java/com/taskbuddy/core/domain/User.java
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 core/src/main/java/com/taskbuddy/core/service/UserService.java
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();
}
}

0 comments on commit c5fc51c

Please sign in to comment.