Notification 브릭#
알림/노티피케이션 기능을 제공하는 vertical slice 브릭입니다.
기본 정보#
| 항목 | 값 |
| 브릭명 | feature-notification |
| 기본 feature_name | notification |
| Primary Entity | NotificationItem |
| Secondary Entity | NotificationSetting |
주요 기능#
- 알림 목록 조회
- 읽음/안읽음 상태 관리
- 알림 설정 (카테고리별 on/off)
- 푸시 알림 연동
생성 구조#
Frontend#
feature/application/notification/
├── lib/src/
│ ├── data/ # Repository 구현, 푸시 알림 연동
│ ├── domain/ # NotificationItem, NotificationSetting Entity
│ ├── presentation/ # BLoC, 알림 목록 Page, 설정 Widget
│ ├── route/ # GoRouter TypedRoute
│ └── di/ # Dependency Injection
└── test/
Backend#
backend/{project}_server/lib/src/feature/notification/
├── endpoint/ # 알림 조회/설정 엔드포인트
├── service/ # 알림 발송 서비스
├── model/
│ ├── entities/ # NotificationItem, NotificationSetting (.spy.yaml)
│ └── enum/ # NotificationType 등
├── exception/
├── validation/
└── test/
사용 예시#
bricksmith apply --feature notification
# Entity 커스터마이징
bricksmith apply --feature notification \
--primary-entity Alert \
--secondary-entity AlertPreference
| Variable | Default | Description |
feature_name | notification | Feature 모듈명 |
primary_entity | NotificationItem | 주요 Entity (알림) |
secondary_entity |
NotificationSetting |
보조 Entity (설정) |