Skip to content
This repository was archived by the owner on Jan 4, 2026. It is now read-only.
This repository was archived by the owner on Jan 4, 2026. It is now read-only.

Ticket relationship(Bookmark, Buy) API 앱 분리 #8

Description

@jseop-lim

현행

  • mypage/views 폴더 아래 user_views.py, ticket_views.py 두 파일에 각 기능따라 작성
  • mypage/serializers 폴더 아래 user_serializers.py, ticket_serializers.py 두 파일에 각 용도따라 작성

문제

  • mypage라는 앱 하나가 두 가지 역할을 겸하고 있다.
  • 4요소(M/V/Url/Serializer) 중 2개는 이미 파일 분리했고, url도 사실상 분리 필요.

해결

  1. 현행으로 mypage CRUD 관련하여 단일 앱 유지
    -> 단일 책임 원칙 위배

  2. bookmark, buy 관련 새로운 앱 생성
    -> mypage에는 모델 없고, 새로운 앱의 models.py에 종속적
    -> API gateway도 새로 앱으로 만들 경우, 총 4개의 앱이나 운영하게 됨.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions