From 63e4ec44f2e162ad1a7bdd9104f990032482e122 Mon Sep 17 00:00:00 2001 From: JJONSOO Date: Mon, 31 Jul 2023 12:27:24 +0900 Subject: [PATCH] =?UTF-8?q?feat=20#15=20:=20Assignee=20Entity=20=EA=B5=AC?= =?UTF-8?q?=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assignee/AssigneeController.java | 13 +++++++++++++ .../domain/assignee/AssigneeRepository.java | 15 +++++++++++++++ .../domain/assignee/entity/Assignee.java | 18 ++++++++++++++++++ .../service/assignee/AssigneeService.java | 13 +++++++++++++ 4 files changed, 59 insertions(+) create mode 100644 be/src/main/java/com/issuetrackermax/controller/assignee/AssigneeController.java create mode 100644 be/src/main/java/com/issuetrackermax/domain/assignee/AssigneeRepository.java create mode 100644 be/src/main/java/com/issuetrackermax/domain/assignee/entity/Assignee.java create mode 100644 be/src/main/java/com/issuetrackermax/service/assignee/AssigneeService.java diff --git a/be/src/main/java/com/issuetrackermax/controller/assignee/AssigneeController.java b/be/src/main/java/com/issuetrackermax/controller/assignee/AssigneeController.java new file mode 100644 index 000000000..a5af42d16 --- /dev/null +++ b/be/src/main/java/com/issuetrackermax/controller/assignee/AssigneeController.java @@ -0,0 +1,13 @@ +package com.issuetrackermax.controller.assignee; + +import org.springframework.web.bind.annotation.RestController; + +import com.issuetrackermax.service.assignee.AssigneeService; + +import lombok.RequiredArgsConstructor; + +@RequiredArgsConstructor +@RestController +public class AssigneeController { + private final AssigneeService assigneeService; +} diff --git a/be/src/main/java/com/issuetrackermax/domain/assignee/AssigneeRepository.java b/be/src/main/java/com/issuetrackermax/domain/assignee/AssigneeRepository.java new file mode 100644 index 000000000..04c8628c9 --- /dev/null +++ b/be/src/main/java/com/issuetrackermax/domain/assignee/AssigneeRepository.java @@ -0,0 +1,15 @@ +package com.issuetrackermax.domain.assignee; + +import org.springframework.jdbc.core.JdbcTemplate; +import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate; +import org.springframework.stereotype.Repository; + +@Repository +public class AssigneeRepository { + private final NamedParameterJdbcTemplate jdbcTemplate; + + public AssigneeRepository(JdbcTemplate jdbcTemplate) { + this.jdbcTemplate = new NamedParameterJdbcTemplate(jdbcTemplate); + } + +} diff --git a/be/src/main/java/com/issuetrackermax/domain/assignee/entity/Assignee.java b/be/src/main/java/com/issuetrackermax/domain/assignee/entity/Assignee.java new file mode 100644 index 000000000..006584958 --- /dev/null +++ b/be/src/main/java/com/issuetrackermax/domain/assignee/entity/Assignee.java @@ -0,0 +1,18 @@ +package com.issuetrackermax.domain.assignee.entity; + +import lombok.Builder; +import lombok.Getter; + +@Getter +public class Assignee { + private Long id; + private Long issueId; + private Long memberid; + + @Builder + public Assignee(Long id, Long issueId, Long memberid) { + this.id = id; + this.issueId = issueId; + this.memberid = memberid; + } +} diff --git a/be/src/main/java/com/issuetrackermax/service/assignee/AssigneeService.java b/be/src/main/java/com/issuetrackermax/service/assignee/AssigneeService.java new file mode 100644 index 000000000..658874a21 --- /dev/null +++ b/be/src/main/java/com/issuetrackermax/service/assignee/AssigneeService.java @@ -0,0 +1,13 @@ +package com.issuetrackermax.service.assignee; + +import org.springframework.stereotype.Service; + +import com.issuetrackermax.domain.assignee.AssigneeRepository; + +import lombok.RequiredArgsConstructor; + +@RequiredArgsConstructor +@Service +public class AssigneeService { + private final AssigneeRepository assigneeRepository; +}