feat: User 패키지 구조 및 파일 세팅

This commit is contained in:
dongHyo
2022-05-05 03:10:27 +09:00
parent 7e2ef8c876
commit 0a54967bbf
5 changed files with 62 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
package com.ticketing.server.user.application;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class UserController {
}

View File

@@ -0,0 +1,35 @@
package com.ticketing.server.user.domain;
import com.ticketing.server.global.dto.repository.AbstractEntity;
import java.time.LocalDateTime;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.validation.constraints.NotNull;
import lombok.Getter;
@Entity
@Getter
public class User extends AbstractEntity {
@NotNull
private String name;
@NotNull
private String email;
@NotNull
private String password;
@NotNull
@Enumerated(value = EnumType.STRING)
private UserGrade grade;
@NotNull
private String phone;
private boolean isDeleted = false;
private LocalDateTime deletedAt;
}

View File

@@ -0,0 +1,5 @@
package com.ticketing.server.user.domain;
public enum UserGrade {
GUEST, STAFF
}

View File

@@ -0,0 +1,9 @@
package com.ticketing.server.user.service;
import com.ticketing.server.user.service.interfaces.UserService;
import org.springframework.stereotype.Service;
@Service
public class UserServiceImpl implements UserService {
}

View File

@@ -0,0 +1,5 @@
package com.ticketing.server.user.service.interfaces;
public interface UserService {
}