mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
476 B
25 lines
476 B
from common.utils import get_logger
|
|
|
|
logger = get_logger(__file__)
|
|
|
|
|
|
class BaseSMSClient:
|
|
"""
|
|
短信终端的基类
|
|
"""
|
|
|
|
SIGN_AND_TMPL_SETTING_FIELD_PREFIX: str
|
|
|
|
@classmethod
|
|
def new_from_settings(cls):
|
|
raise NotImplementedError
|
|
|
|
def send_sms(self, phone_numbers: list, sign_name: str, template_code: str, template_param: dict, **kwargs):
|
|
raise NotImplementedError
|
|
|
|
@staticmethod
|
|
def need_pre_check():
|
|
return True
|
|
|
|
|