-
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.
Browse files
Browse the repository at this point in the history
* test: getTotalNoticeSize 메서드 단위 테스트 * feat: 학과별 정보 수정 * feat: 학과별 공지 스크랩 로직 수정 * fix(DeptInfo#createViewUrl): 정상적으로 view Url을 만들지 못하던 문제 해결 * refactor(CategoryNoticeUpdater): updateKuisNoticeAsync에서 reverse로직 추가 * refactor: 시간 측정 로직 변경 * feat: 기존 학과별 공지 삭제 DDL문 작성 * test: 테스트에서 변경 가능한 리스트를 반환하도록 수정
- Loading branch information
1 parent
74083ed
commit 01eb5b4
Showing
80 changed files
with
2,885 additions
and
968 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
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 |
---|---|---|
|
@@ -10,5 +10,5 @@ public class ScrapingResultDto { | |
|
||
private Document document; | ||
|
||
private String url; | ||
private String viewUrl; | ||
} |
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
22 changes: 9 additions & 13 deletions
22
...in/java/com/kustacks/kuring/worker/scrap/deptinfo/art_design/CommunicationDesignDept.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,36 +1,32 @@ | ||
package com.kustacks.kuring.worker.scrap.deptinfo.art_design; | ||
|
||
import com.kustacks.kuring.notice.domain.DepartmentName; | ||
import com.kustacks.kuring.worker.scrap.client.notice.property.LatestPageNoticeProperties; | ||
import com.kustacks.kuring.worker.dto.ScrapingResultDto; | ||
import com.kustacks.kuring.worker.scrap.client.notice.NoticeApiClient; | ||
import com.kustacks.kuring.worker.scrap.client.notice.property.LatestPageNoticeProperties; | ||
import com.kustacks.kuring.worker.scrap.deptinfo.DeptInfo; | ||
import com.kustacks.kuring.worker.scrap.deptinfo.NoticeScrapInfo; | ||
import com.kustacks.kuring.worker.scrap.deptinfo.RegisterDepartmentMap; | ||
import com.kustacks.kuring.worker.scrap.deptinfo.StaffScrapInfo; | ||
import com.kustacks.kuring.worker.dto.ScrapingResultDto; | ||
import com.kustacks.kuring.worker.scrap.parser.notice.NoticeHtmlParserTemplate; | ||
|
||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
@RegisterDepartmentMap(key = DepartmentName.COMM_DESIGN) | ||
import static com.kustacks.kuring.notice.domain.DepartmentName.COMM_DESIGN; | ||
|
||
@RegisterDepartmentMap(key = COMM_DESIGN) | ||
public class CommunicationDesignDept extends ArtDesignCollege { | ||
|
||
public CommunicationDesignDept(NoticeApiClient<ScrapingResultDto, DeptInfo> latestPageNoticeApiClient, | ||
NoticeHtmlParserTemplate latestPageNoticeHtmlParserTwo, LatestPageNoticeProperties latestPageNoticeProperties) { | ||
NoticeHtmlParserTemplate latestPageNoticeHtmlParser, LatestPageNoticeProperties latestPageNoticeProperties) { | ||
super(); | ||
this.noticeApiClient = latestPageNoticeApiClient; | ||
this.htmlParser = latestPageNoticeHtmlParserTwo; | ||
this.htmlParser = latestPageNoticeHtmlParser; | ||
this.latestPageNoticeProperties = latestPageNoticeProperties; | ||
|
||
List<String> professorForumIds = Collections.emptyList(); | ||
List<String> forumIds = Collections.emptyList(); | ||
List<String> boardSeqs = Collections.emptyList(); | ||
List<String> menuSeqs = Collections.emptyList(); | ||
|
||
this.staffScrapInfo = new StaffScrapInfo(professorForumIds); | ||
this.noticeScrapInfo = new NoticeScrapInfo(forumIds, "COMMDESIGN", boardSeqs, menuSeqs); | ||
this.code = "122402"; | ||
this.departmentName = DepartmentName.COMM_DESIGN; | ||
this.noticeScrapInfo = new NoticeScrapInfo(COMM_DESIGN.getHostPrefix(), 0); | ||
this.departmentName = COMM_DESIGN; | ||
} | ||
} |
Oops, something went wrong.