mirror of https://github.com/jumpserver/jumpserver
23 lines
439 B
Python
23 lines
439 B
Python
from django.conf import settings
|
|
|
|
from common.utils.common import get_logger
|
|
from ..feishu import URL as FeiShuURL, FeishuRequests, FeiShu
|
|
|
|
logger = get_logger(__name__)
|
|
|
|
|
|
class URL(FeiShuURL):
|
|
host = 'https://open.larksuite.com'
|
|
|
|
|
|
class LarkRequests(FeishuRequests):
|
|
url_instance = URL()
|
|
|
|
|
|
class Lark(FeiShu):
|
|
requests_cls = LarkRequests
|
|
|
|
@property
|
|
def attributes(self):
|
|
return settings.LARK_RENAME_ATTRIBUTES
|