feat: 授权规则分类管理

This commit is contained in:
feng626
2021-08-31 14:13:05 +08:00
parent ae80797ce4
commit 4214b220e1
8 changed files with 50 additions and 10 deletions

9
apps/perms/const.py Normal file
View File

@@ -0,0 +1,9 @@
# -*- coding: utf-8 -*-
#
from django.db.models import TextChoices
from django.utils.translation import ugettext_lazy as _
class AuthorizationRules(TextChoices):
manual = 'manual', _('Manual authorization')
ticket = 'ticket', _('Ticket authorization')