Skip to content

feat: 3개 복지관 구현 및 2개 이슈 처리#19

Merged
dh0304 merged 12 commits into
devfrom
feat/data
Jul 24, 2025
Merged

feat: 3개 복지관 구현 및 2개 이슈 처리#19
dh0304 merged 12 commits into
devfrom
feat/data

Conversation

@dh0304

@dh0304 dh0304 commented Jul 24, 2025

Copy link
Copy Markdown
Contributor

관련 이슈

#7 #17

상세 내용

  • (모든 시간 데이터 ISO-8601 offset 방식으로 변경 #7) 파편화된 시간 관련 코드를 UTC offset으로 변경
  • (글 카테고리 분류 기능 구현 #17) MultiCategoryTemplateStep 정의
    SimpleTemplateStep과 대부분 동일하며 카테고리화 추상 메서드 추가함
    categorize에서 구분하지 않으면 SimpleTemplateStep에서 카테고리를 초기화하듯이 똑같이 초기화하면 DefaultCategory로 들어감
  • 거모종합사회복지관, 고강종합사회복지관, 고산종합사회복지관 구현
export abstract class MultiCategoryTemplateStep extends AbstractStep {
    private readonly url: string;
    private readonly selectorAll: string;
    private readonly defaultCategory: Category;

    constructor(url: string, selectorAll: string, defaultCategory: Category) {
        super();
        this.url = url;
        this.selectorAll = selectorAll;
        this.defaultCategory = defaultCategory;
    }

...

  /**
     * 추출된 데이터에서 카테고리를 분류하는 메서드
     * @param data select 메서드에서 반환된 데이터
     * @returns 분류된 카테고리 또는 null
     */
    abstract categorize(data: object): Category | null;

@dh0304 dh0304 self-assigned this Jul 24, 2025
@dh0304 dh0304 linked an issue Jul 24, 2025 that may be closed by this pull request
@dh0304 dh0304 merged commit 3cfe725 into dev Jul 24, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

데이터 수집

1 participant