feat(notifications): 알림 유형 개선 - 카테고리 그룹화 + 구매팀 세분화
- equipment/maintenance 삭제, partner_work/day_labor 신규 추가 - 알림 수신자 관리 UI: 카테고리별 그룹 렌더링 (생산/안전/구매/시스템) - tkpurchase 컨트롤러 알림 타입 변경 - notification-bell 라벨 및 notifications.html 아이콘 업데이트 - 전 서비스 cache busting 갱신 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2,18 +2,41 @@
|
||||
const { getPool } = require('./userModel');
|
||||
|
||||
const NOTIFICATION_TYPES = {
|
||||
repair: '설비 수리',
|
||||
safety: '안전 신고',
|
||||
repair: '설비수리',
|
||||
safety: '안전신고',
|
||||
nonconformity: '부적합 신고',
|
||||
equipment: '설비 관련',
|
||||
maintenance: '정기점검',
|
||||
system: '시스템'
|
||||
system: '시스템',
|
||||
partner_work: '협력업체 작업',
|
||||
day_labor: '일용공 신청'
|
||||
};
|
||||
|
||||
const NOTIFICATION_CATEGORIES = {
|
||||
production: {
|
||||
label: '생산',
|
||||
icon: 'fa-industry',
|
||||
types: ['repair', 'nonconformity']
|
||||
},
|
||||
safety: {
|
||||
label: '안전',
|
||||
icon: 'fa-shield-alt',
|
||||
types: ['safety']
|
||||
},
|
||||
purchase: {
|
||||
label: '구매',
|
||||
icon: 'fa-shopping-cart',
|
||||
types: ['partner_work', 'day_labor']
|
||||
},
|
||||
system: {
|
||||
label: '시스템',
|
||||
icon: 'fa-server',
|
||||
types: ['system']
|
||||
}
|
||||
};
|
||||
|
||||
const notificationRecipientModel = {
|
||||
// 알림 유형 목록 가져오기
|
||||
getTypes() {
|
||||
return NOTIFICATION_TYPES;
|
||||
return { types: NOTIFICATION_TYPES, categories: NOTIFICATION_CATEGORIES };
|
||||
},
|
||||
|
||||
// 유형별 수신자 목록 조회
|
||||
|
||||
Reference in New Issue
Block a user