-
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
precious
authored and
precious
committed
Mar 30, 2022
1 parent
ebb8e9b
commit 6b77db1
Showing
78 changed files
with
552 additions
and
138 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
19 changes: 0 additions & 19 deletions
19
src/main/java/africa/semicolon/employeemanagement/data/dto/EmployeeResponse.java
This file was deleted.
Oops, something went wrong.
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
2 changes: 1 addition & 1 deletion
2
...emanagement/data/dto/EmployeeRequest.java → ...ent/data/dto/request/EmployeeRequest.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
2 changes: 1 addition & 1 deletion
2
...agement/data/dto/MobileNumberRequest.java → ...data/dto/request/MobileNumberRequest.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
12 changes: 12 additions & 0 deletions
12
src/main/java/africa/semicolon/employeemanagement/data/dto/request/QualificationRequest.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 africa.semicolon.employeemanagement.data.dto.request; | ||
|
||
import lombok.*; | ||
|
||
@Builder | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Setter | ||
@Getter | ||
public class QualificationRequest { | ||
private String qualificationName; | ||
} |
13 changes: 13 additions & 0 deletions
13
src/main/java/africa/semicolon/employeemanagement/data/dto/request/RoleRequest.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 africa.semicolon.employeemanagement.data.dto.request; | ||
|
||
import lombok.*; | ||
|
||
@Builder | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Setter | ||
@Getter | ||
public class RoleRequest { | ||
private Long employeeId; | ||
private String position; | ||
} |
5 changes: 4 additions & 1 deletion
5
...nagement/data/dto/DepartmentResponse.java → ...data/dto/response/DepartmentResponse.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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
package africa.semicolon.employeemanagement.data.dto; | ||
package africa.semicolon.employeemanagement.data.dto.response; | ||
|
||
import africa.semicolon.employeemanagement.data.model.Level; | ||
import africa.semicolon.employeemanagement.data.model.Role; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
public class DepartmentResponse { | ||
private Long id; | ||
private String fieldName; | ||
private String description; | ||
private Level employeeJobLevel; | ||
private Role jobRole; | ||
private LocalDateTime creationDate; | ||
} |
27 changes: 27 additions & 0 deletions
27
src/main/java/africa/semicolon/employeemanagement/data/dto/response/EmployeeResponse.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,27 @@ | ||
package africa.semicolon.employeemanagement.data.dto.response; | ||
|
||
import africa.semicolon.employeemanagement.data.model.Level; | ||
import africa.semicolon.employeemanagement.data.model.Role; | ||
import lombok.*; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
|
||
@Setter | ||
@Getter | ||
@Builder | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class EmployeeResponse { | ||
private Long id; | ||
private String firstName; | ||
private String lastName; | ||
private String email; | ||
private int age; | ||
private String departmentName; | ||
private Integer employeeSalary; | ||
private Level employeeJobLevel; | ||
private Role jobRole; | ||
private Boolean isSuspended; | ||
private LocalDateTime creationDate; | ||
} |
2 changes: 1 addition & 1 deletion
2
...gement/data/dto/MobileNumberResponse.java → ...ta/dto/response/MobileNumberResponse.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
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
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
9 changes: 9 additions & 0 deletions
9
src/main/java/africa/semicolon/employeemanagement/data/model/SchoolQualification.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 africa.semicolon.employeemanagement.data.model; | ||
|
||
public enum SchoolQualification { | ||
BACHELORS_DEGREE, | ||
POSTGRADUATE_DIPLOMA, | ||
MASTERS_DEGREE, | ||
DOCTORATE_DEGREE; | ||
|
||
} |
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
11 changes: 6 additions & 5 deletions
11
...java/africa/semicolon/employeemanagement/service/departmentService/DepartmentService.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 |
---|---|---|
@@ -1,18 +1,19 @@ | ||
package africa.semicolon.employeemanagement.service.departmentService; | ||
|
||
import africa.semicolon.employeemanagement.data.dto.DepartmentRequest; | ||
import africa.semicolon.employeemanagement.data.dto.DepartmentResponse; | ||
import africa.semicolon.employeemanagement.data.dto.request.DepartmentRequest; | ||
import africa.semicolon.employeemanagement.data.dto.response.DepartmentResponse; | ||
import africa.semicolon.employeemanagement.data.model.Department; | ||
|
||
import java.util.List; | ||
|
||
public interface DepartmentService { | ||
DepartmentResponse createDepartment(DepartmentRequest request); | ||
Department updateDepartment(String departmentId); | ||
String deleteDepartmentByDepartmentId(String departmentId); | ||
Department updateDepartmentByDepartmentId(Long departmentId); | ||
String deleteDepartmentByDepartmentId(Long departmentId); | ||
String deleteDepartmentByDepartmentName(String departmentName); | ||
void deleteAllDepartments(); | ||
List<Department> findAllDepartment(); | ||
Department findDepartmentById(String departmentId); | ||
Department findDepartmentById(Long departmentId); | ||
Department findDepartmentByName(String departmentName); | ||
|
||
} |
Oops, something went wrong.