-
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 #71 from Kernel360/feature/admin-project#63
Feature/admin project#63
- Loading branch information
Showing
36 changed files
with
521 additions
and
114 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/main/java/com/seveneleven/devlens/domain/admin/common/CheckCompanyValidity.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
src/main/java/com/seveneleven/devlens/domain/admin/common/CheckProjectValidity.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
10 changes: 0 additions & 10 deletions
10
src/main/java/com/seveneleven/devlens/domain/admin/db/AdminProjectRepository.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
104 changes: 104 additions & 0 deletions
104
src/main/java/com/seveneleven/devlens/domain/admin/dto/GetCompany.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,104 @@ | ||
package com.seveneleven.devlens.domain.admin.dto; | ||
|
||
import com.seveneleven.devlens.domain.member.constant.BusinessType; | ||
import com.seveneleven.devlens.domain.member.constant.YN; | ||
import lombok.AccessLevel; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
public class GetCompany { | ||
@Getter | ||
public static class Request { | ||
private Long id; | ||
private String companyName; | ||
private String representativeName; | ||
private String representativeContact; | ||
private String representativeEmail; | ||
private String address; | ||
private BusinessType businessType; | ||
private String businessRegistrationNumber; | ||
private YN representativeImageExists; | ||
private YN isActive; | ||
|
||
public Request( | ||
Long id, | ||
String companyName, | ||
String representativeName, | ||
String representativeContact, | ||
String representativeEmail, | ||
String address, | ||
BusinessType businessType, | ||
String businessRegistrationNumber, | ||
YN representativeImageExists, | ||
YN activeStatus | ||
) { | ||
this.id = id; | ||
this.companyName = companyName; | ||
this.representativeName = representativeName; | ||
this.representativeContact = representativeContact; | ||
this.representativeEmail = representativeEmail; | ||
this.address = address; | ||
this.businessType = businessType; | ||
this.businessRegistrationNumber = businessRegistrationNumber; | ||
this.representativeImageExists = representativeImageExists; | ||
this.isActive = activeStatus; | ||
} | ||
} | ||
|
||
@Getter | ||
public static class Response { | ||
private Long id; | ||
private String companyName; | ||
private String representativeName; | ||
private String representativeContact; | ||
private String representativeEmail; | ||
private String address; | ||
private BusinessType businessType; | ||
private String businessRegistrationNumber; | ||
private YN isActive; | ||
private PaginatedResponse<GetProject.Response> projects; | ||
|
||
public Response( | ||
Long id, | ||
String companyName, | ||
String representativeName, | ||
String representativeContact, | ||
String representativeEmail, | ||
String address, | ||
BusinessType businessType, | ||
String businessRegistrationNumber, | ||
YN activeStatus, | ||
PaginatedResponse<GetProject.Response> projects | ||
) { | ||
this.id = id; | ||
this.companyName = companyName; | ||
this.representativeName = representativeName; | ||
this.representativeContact = representativeContact; | ||
this.representativeEmail = representativeEmail; | ||
this.address = address; | ||
this.businessType = businessType; | ||
this.businessRegistrationNumber = businessRegistrationNumber; | ||
this.isActive = activeStatus; | ||
this.projects = projects; | ||
} | ||
|
||
public Response addProjectList( | ||
Response response, | ||
PaginatedResponse<GetProject.Response> projects | ||
) { | ||
return new Response( | ||
response.getId(), | ||
response.getCompanyName(), | ||
response.getRepresentativeName(), | ||
response.getRepresentativeContact(), | ||
response.getRepresentativeEmail(), | ||
response.getAddress(), | ||
response.getBusinessType(), | ||
response.getBusinessRegistrationNumber(), | ||
response.getIsActive(), | ||
projects | ||
); | ||
} | ||
} | ||
} |
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
Oops, something went wrong.