-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
6 changed files
with
56 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,8 @@ INSERT INTO organization (organization_name, | |
manager_available_day, | ||
manager_available_hour, | ||
manager_contact_preference, | ||
organization_status) | ||
organization_status, | ||
organization_image_url) | ||
VALUES ('팀 스포너스', | ||
'[email protected]', | ||
'$2a$10$tzrzG/BSFrrye7Kbm4qPYuP6jaQcj5TX5ER1.X/THqkudiSjtEmWW', | ||
|
@@ -25,7 +26,8 @@ VALUES ('팀 스포너스', | |
'월-금', | ||
'09:00-18:00', | ||
'EMAIL', | ||
'ACTIVE'); | ||
'ACTIVE', | ||
'https://sponus.s3.ap-northeast-2.amazonaws.com/images/56d5e787-8ac2-4162-be41-e55db05d8d8b.png'); | ||
|
||
INSERT INTO announcement (announcement_title, | ||
announcement_type, | ||
|
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
28 changes: 28 additions & 0 deletions
28
src/main/java/com/sponus/sponusbe/domain/organization/dto/OrganizationSummaryResponse.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,28 @@ | ||
package com.sponus.sponusbe.domain.organization.dto; | ||
|
||
import java.util.List; | ||
|
||
import com.sponus.sponusbe.domain.organization.entity.Organization; | ||
import com.sponus.sponusbe.domain.tag.dto.TagGetResponse; | ||
|
||
import lombok.Builder; | ||
|
||
@Builder | ||
public record OrganizationSummaryResponse( | ||
Long id, | ||
String name, | ||
String image, | ||
List<TagGetResponse> tags | ||
) { | ||
public static OrganizationSummaryResponse from(Organization organization) { | ||
List<TagGetResponse> tags = TagGetResponse.getTagResponse(organization); | ||
|
||
return OrganizationSummaryResponse.builder() | ||
.id(organization.getId()) | ||
.name(organization.getName()) | ||
.image(organization.getImageUrl()) | ||
.tags(tags) | ||
.build(); | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,8 @@ INSERT INTO organization (organization_name, | |
manager_available_day, | ||
manager_available_hour, | ||
manager_contact_preference, | ||
organization_status) | ||
organization_status, | ||
organization_image_url) | ||
VALUES ('팀 스포너스', | ||
'[email protected]', | ||
'$2a$10$tzrzG/BSFrrye7Kbm4qPYuP6jaQcj5TX5ER1.X/THqkudiSjtEmWW', | ||
|
@@ -25,7 +26,8 @@ VALUES ('팀 스포너스', | |
'월-금', | ||
'09:00-18:00', | ||
'EMAIL', | ||
'ACTIVE'); | ||
'ACTIVE', | ||
'https://sponus.s3.ap-northeast-2.amazonaws.com/images/56d5e787-8ac2-4162-be41-e55db05d8d8b.png'); | ||
|
||
INSERT INTO announcement (announcement_title, | ||
announcement_type, | ||
|