feat: 添加默认工单授权时间 (#8649)

Co-authored-by: feng626 <1304903146@qq.com>
This commit is contained in:
fit2bot
2022-07-22 15:23:16 +08:00
committed by GitHub
parent 9d17f27fb3
commit d07a230ba6
8 changed files with 86 additions and 70 deletions

View File

@@ -30,6 +30,11 @@ class OtherSettingSerializer(serializers.Serializer):
help_text=_("Perm single to ungroup node")
)
TICKET_AUTHORIZE_DEFAULT_TIME = serializers.IntegerField(
min_value=7, max_value=9999, required=False,
label=_("Ticket authorize default time"), help_text=_("Unit: day")
)
HELP_DOCUMENT_URL = serializers.URLField(
required=False, allow_blank=True, allow_null=True, label=_("Help Docs URL"),
help_text=_('default: http://docs.jumpserver.org')