jumpserver/apps/common/sdk/im/lark/__init__.py

20 lines
400 B
Python
Raw Normal View History

from django.conf import settings
2024-03-22 10:05:43 +00:00
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()
2024-03-22 10:05:43 +00:00
class Lark(FeiShu):
requests_cls = LarkRequests
attributes = settings.LARK_RENAME_ATTRIBUTES