feat: add models and enum
This commit is contained in:
25
itd/enums.py
Normal file
25
itd/enums.py
Normal file
@@ -0,0 +1,25 @@
|
||||
from enum import Enum
|
||||
|
||||
class NotificationType(Enum):
|
||||
WALL_POST = 'wall_post'
|
||||
REPLY = 'reply'
|
||||
REPOST = 'repost'
|
||||
COMMENT = 'comment'
|
||||
FOLLOW = 'follow'
|
||||
LIKE = 'like'
|
||||
|
||||
class NotificationTargetType(Enum):
|
||||
POST = 'post'
|
||||
|
||||
class ReportTargetType(Enum):
|
||||
POST = 'post'
|
||||
USER = 'user'
|
||||
COMMENT = 'comment'
|
||||
|
||||
class ReportTargetReason(Enum):
|
||||
SPAM = 'spam' # спам
|
||||
VIOLENCE = 'violence' # насилие
|
||||
HATE = 'hate' # ненависть
|
||||
ADULT = 'adult' # 18+
|
||||
FRAUD = 'fraud' # обман\мошенничество
|
||||
OTHER = 'other' # другое
|
||||
Reference in New Issue
Block a user