Feat: [#41] notification 앱 생성 및 알림 조회 구현

This commit is contained in:
sm4640
2025-05-02 22:07:09 +09:00
parent dd67f7a18b
commit 9f046073c5
9 changed files with 122 additions and 0 deletions

19
notifications/services.py Normal file
View File

@@ -0,0 +1,19 @@
from users.models import *
from .models import *
from common.models.choiceModels import *
# 알림 관련 서비스 로직
class NotifiationService:
@staticmethod
def set_content():
pass
@staticmethod
def create_notification(user: User, note_type: NotificationType):
return Notification.objects.create(
user = user,
note_type=note_type
)