19 lines
410 B
Python
19 lines
410 B
Python
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
|
|
) |