-
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' of https://github.com/kkijuk/backend into feat…
…ure/introduce
- Loading branch information
Showing
44 changed files
with
726 additions
and
45 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 |
---|---|---|
|
@@ -156,7 +156,26 @@ jobs: | |
with: | ||
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }} | ||
content: | | ||
Server successfully updated to Commit[${{ steps.slug.outputs.sha7 }}] on branch ${{ github.ref_name }} | ||
Commit message: ${{ github.event.head_commit.message }} | ||
:o: Server successfully updated! | ||
Commit: [${{ github.sha }}] | ||
Branch: ${{ github.ref_name }} | ||
Commit Link: https://github.com/${{ github.repository }}/commit/${{ github.sha }} | ||
GitHub Action Link: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
GitHub Action Link: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
failure_notification: | ||
name: Failure Notification | ||
runs-on: ubuntu-latest | ||
if: failure() | ||
|
||
steps: | ||
- name: Discord Webhook Action on Failure | ||
uses: tsickert/[email protected] | ||
with: | ||
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }} | ||
content: | | ||
:x: A job failed in the CI/CD pipeline! | ||
Commit: [${{ github.sha }}] | ||
Branch: ${{ github.ref_name }} | ||
Commit Link: https://github.com/${{ github.repository }}/commit/${{ github.sha }} | ||
GitHub Action Link: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
Please check the logs for more details. |
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
30 changes: 30 additions & 0 deletions
30
src/main/java/umc/kkijuk/server/career/controller/response/FindCareerResponse.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,30 @@ | ||
package umc.kkijuk.server.career.controller.response; | ||
|
||
import lombok.*; | ||
import umc.kkijuk.server.career.domain.BaseCareer; | ||
|
||
import java.time.LocalDate; | ||
|
||
@Data | ||
@Getter | ||
@Setter | ||
@Builder | ||
@AllArgsConstructor | ||
public class FindCareerResponse { | ||
private Long careerId; | ||
private String careerType; | ||
private String careerTitle; | ||
private String careerAlias; | ||
private LocalDate startdate; | ||
private LocalDate enddate; | ||
|
||
public FindCareerResponse(BaseCareer career, String careerType){ | ||
this.careerId = career.getId(); | ||
this.careerType = careerType; | ||
this.careerTitle = career.getName(); | ||
this.careerAlias = career.getAlias(); | ||
this.startdate = career.getStartdate(); | ||
this.enddate = career.getEnddate(); | ||
} | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
src/main/java/umc/kkijuk/server/career/controller/response/TimelineResponse.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 umc.kkijuk.server.career.controller.response; | ||
|
||
import lombok.*; | ||
import umc.kkijuk.server.career.domain.BaseCareer; | ||
|
||
import java.time.LocalDate; | ||
|
||
@Data | ||
@Getter | ||
@Setter | ||
@Builder | ||
@AllArgsConstructor | ||
public class TimelineResponse { | ||
private Long careerId; | ||
private String category; | ||
private String title; | ||
private LocalDate startdate; | ||
private LocalDate enddate; | ||
public TimelineResponse(BaseCareer career, String type){ | ||
this.careerId = career.getId(); | ||
this.title = career.getName(); | ||
this.startdate = career.getStartdate(); | ||
this.enddate = career.getEnddate(); | ||
this.category = 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
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
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
41 changes: 41 additions & 0 deletions
41
src/main/java/umc/kkijuk/server/recruit/controller/RecruitSearchController.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,41 @@ | ||
package umc.kkijuk.server.recruit.controller; | ||
|
||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import lombok.RequiredArgsConstructor; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.*; | ||
import umc.kkijuk.server.login.argumentresolver.Login; | ||
import umc.kkijuk.server.login.controller.dto.LoginInfo; | ||
import umc.kkijuk.server.member.domain.Member; | ||
import umc.kkijuk.server.member.service.MemberService; | ||
import umc.kkijuk.server.recruit.controller.port.RecruitSearchService; | ||
import umc.kkijuk.server.recruit.controller.response.RecruitReviewListByKeywordResponse; | ||
|
||
@Tag(name = "Search Recruit", description = "공고 검색 API") | ||
@Slf4j | ||
@RestController | ||
@RequiredArgsConstructor | ||
@RequestMapping("/recruit") | ||
public class RecruitSearchController { | ||
|
||
private final RecruitSearchService recruitSearchService; | ||
private final MemberService memberService; | ||
|
||
@Operation( | ||
summary = "공고 이름 & 태그 / 공고 후기 기준으로 검색", | ||
description = "입력받은 텍스트에 대하여, 공고 제목, 공고 태그, 혹은 공고 후기에 포함하는 모든 공고를 검색합니다. 정렬기준은 최신순입니다.") | ||
@GetMapping | ||
public ResponseEntity<RecruitReviewListByKeywordResponse> findRecruitsByKeyword( | ||
@Login LoginInfo loginInfo, | ||
@RequestParam String keyword) { | ||
|
||
Member requestMember = memberService.getById(loginInfo.getMemberId()); | ||
RecruitReviewListByKeywordResponse result = recruitSearchService.findRecruitByKeyword(requestMember, keyword); | ||
|
||
return ResponseEntity | ||
.ok() | ||
.body(result); | ||
} | ||
} |
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/umc/kkijuk/server/recruit/controller/port/RecruitSearchService.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 umc.kkijuk.server.recruit.controller.port; | ||
|
||
import umc.kkijuk.server.member.domain.Member; | ||
import umc.kkijuk.server.recruit.controller.response.RecruitReviewListByKeywordResponse; | ||
|
||
public interface RecruitSearchService { | ||
|
||
public RecruitReviewListByKeywordResponse findRecruitByKeyword(Member requestMember, String keyword); | ||
} |
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.