-
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.
Merge pull request #75 from KCC-Team/feat/61-test_api_logic
[#61] 테스트 목록 API 구현 중간 적용 및 설정 적용
- Loading branch information
Showing
15 changed files
with
493 additions
and
38 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
23 changes: 23 additions & 0 deletions
23
src/main/java/com/kcc/pms/domain/test/domain/dto/TestListResponseDto.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,23 @@ | ||
package com.kcc.pms.domain.test.domain.dto; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.time.LocalDate; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class TestListResponseDto { | ||
private String test_no; | ||
private String test_id; | ||
private String test_type; | ||
private String test_name; | ||
private String work_type; | ||
private LocalDate test_start_date; | ||
private LocalDate test_end_date; | ||
private Integer test_case_count; | ||
private Integer defect_count; | ||
private String test_status; | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/com/kcc/pms/domain/test/mapper/TestMapper.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,12 @@ | ||
package com.kcc.pms.domain.test.mapper; | ||
|
||
import com.kcc.pms.domain.test.domain.dto.TestListResponseDto; | ||
import org.apache.ibatis.annotations.Mapper; | ||
|
||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
@Mapper | ||
public interface TestMapper { | ||
Optional<List<TestListResponseDto>> findAllByOptions(Integer systemId, String work_type, String test_type, int page); | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/kcc/pms/domain/test/service/TestService.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,9 @@ | ||
package com.kcc.pms.domain.test.service; | ||
|
||
import com.kcc.pms.domain.test.domain.dto.TestListResponseDto; | ||
|
||
import java.util.List; | ||
|
||
public interface TestService { | ||
List<TestListResponseDto> getTestList(Integer systemId, String work_type, String test_type, int page); | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/com/kcc/pms/domain/test/service/TestServiceImpl.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,21 @@ | ||
package com.kcc.pms.domain.test.service; | ||
|
||
import com.kcc.pms.domain.test.domain.dto.TestListResponseDto; | ||
import com.kcc.pms.domain.test.mapper.TestMapper; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.stereotype.Service; | ||
import org.springframework.transaction.annotation.Transactional; | ||
|
||
import java.util.List; | ||
|
||
@Service | ||
@RequiredArgsConstructor | ||
@Transactional(readOnly = true) | ||
public class TestServiceImpl implements TestService { | ||
private final TestMapper testMapper; | ||
|
||
@Override | ||
public List<TestListResponseDto> getTestList(Integer systemId, String work_type, String test_type, int page) { | ||
return List.of(); | ||
} | ||
} |
Oops, something went wrong.