niming_backend/utils/platform_consts.py

13 lines
404 B
Python
Raw Normal View History

2024-11-18 02:47:25 +08:00
# Permission List
pList = ["article.read", "article.pend", "article.del", "setting.edit"] # no permission:usermgr except root
pList_root = pList + ["usermgr"]
# Platform Setting Model
platform_setting_model = {
"Check_Before_Post": [bool],
"JWT_Valid_Time": [int],
"Niming_Max_Word": [int],
"Attachment_Count": [int],
"Attachment_Size": [int],
"Allowed_MIME": [list, str],
}