-
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.
Merge branch 'develop' into feature/#140
- Loading branch information
Showing
9 changed files
with
72 additions
and
57 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 |
---|---|---|
|
@@ -6,18 +6,11 @@ Content-Type: application/json | |
|
||
{ | ||
"name": "팀 스포너스", | ||
"email": "sponus@gmail.com", | ||
"email": "sponus_student@gmail.com", | ||
"password": "password1234", | ||
"location": "none", | ||
"organizationType": "STUDENT", | ||
"suborganizationType": "STUDENT_COUNCIL", | ||
"managerName": "이가은", | ||
"managerPosition": "Project Manager", | ||
"managerEmail": "[email protected]", | ||
"managerPhone": "01012345678", | ||
"managerAvailableDay": "월-금", | ||
"managerAvailableHour": "15:00-18:00", | ||
"managerContactPreference": "EMAIL" | ||
"suborganizationType": "STUDENT_COUNCIL" | ||
} | ||
|
||
### 로그인 | ||
|
@@ -161,6 +154,10 @@ Authorization: Bearer {{masterToken}} | |
GET http://localhost:8080/api/v1/organizations/1 | ||
Authorization: Bearer {{matsterToken}} | ||
|
||
### 조직 검색 | ||
GET http://localhost:8080/api/v1/organizations?search=스포너스 | ||
Authorization: Bearer {{matsterToken}} | ||
|
||
### 이메일 인증 | ||
POST http://localhost:8080/api/v1/organizations/email?email=이메일 | ||
|
||
|
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
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
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, | ||
|