mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-16 05:14:33 +00:00
* perf: 优化mfa 和登录 * perf: stash * stash * pref: 基本完成 * perf: remove init function * perf: 优化命名 * perf: 优化backends * perf: 基本完成优化 * perf: 修复首页登录时没有 toastr 的问题 Co-authored-by: ibuler <ibuler@qq.com> Co-authored-by: Jiangjie.Bai <32935519+BaiJiangJie@users.noreply.github.com>
21 lines
411 B
Python
21 lines
411 B
Python
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
|
|
|
|
|