mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-04 17:01:09 +00:00
feat: 拆分 feishu lark
This commit is contained in:
@@ -6,6 +6,7 @@ from .common import *
|
||||
from .confirm import *
|
||||
from .connection_token import *
|
||||
from .feishu import *
|
||||
from .lark import *
|
||||
from .login_confirm import *
|
||||
from .mfa import *
|
||||
from .password import *
|
||||
|
@@ -12,7 +12,6 @@ from common.permissions import IsValidUser, OnlySuperUser
|
||||
from common.utils import get_logger
|
||||
from users.models import User
|
||||
|
||||
|
||||
logger = get_logger(__file__)
|
||||
|
||||
|
||||
@@ -24,6 +23,7 @@ class QRUnBindBase(APIView):
|
||||
'wecom': {'user_field': 'wecom_id', 'not_bind_err': errors.WeComNotBound},
|
||||
'dingtalk': {'user_field': 'dingtalk_id', 'not_bind_err': errors.DingTalkNotBound},
|
||||
'feishu': {'user_field': 'feishu_id', 'not_bind_err': errors.FeiShuNotBound},
|
||||
'lark': {'user_field': 'lark_id', 'not_bind_err': errors.LarkNotBound},
|
||||
'slack': {'user_field': 'slack_id', 'not_bind_err': errors.SlackNotBound},
|
||||
}
|
||||
user = self.user
|
||||
|
8
apps/authentication/api/lark.py
Normal file
8
apps/authentication/api/lark.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from common.utils import get_logger
|
||||
from .feishu import FeiShuEventSubscriptionCallback
|
||||
|
||||
logger = get_logger(__name__)
|
||||
|
||||
|
||||
class LarkEventSubscriptionCallback(FeiShuEventSubscriptionCallback):
|
||||
pass
|
Reference in New Issue
Block a user