perf: 优化修改 sdk 位置

pull/7049/head
ibuler 2021-10-21 16:50:11 +08:00 committed by xinwen
parent d5c9ec1c3d
commit 072865f3e5
26 changed files with 25 additions and 25 deletions

View File

@ -3,7 +3,7 @@ import random
from django.core.cache import cache from django.core.cache import cache
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _
from common.message.backends.sms import SMS from common.sdk.im.sms import SMS
from common.utils import get_logger from common.utils import get_logger
from common.exceptions import JMSException from common.exceptions import JMSException

View File

@ -14,11 +14,11 @@ from users.models import User
from common.utils import get_logger, FlashMessageUtil from common.utils import get_logger, FlashMessageUtil
from common.utils.random import random_string from common.utils.random import random_string
from common.utils.django import reverse, get_object_or_none from common.utils.django import reverse, get_object_or_none
from common.message.backends.dingtalk import URL from common.sdk.im.dingtalk import URL
from common.mixins.views import PermissionsMixin from common.mixins.views import PermissionsMixin
from authentication import errors from authentication import errors
from authentication.mixins import AuthMixin from authentication.mixins import AuthMixin
from common.message.backends.dingtalk import DingTalk from common.sdk.im.dingtalk import DingTalk
logger = get_logger(__file__) logger = get_logger(__file__)

View File

@ -15,7 +15,7 @@ from common.utils import get_logger, FlashMessageUtil
from common.utils.random import random_string from common.utils.random import random_string
from common.utils.django import reverse, get_object_or_none from common.utils.django import reverse, get_object_or_none
from common.mixins.views import PermissionsMixin from common.mixins.views import PermissionsMixin
from common.message.backends.feishu import FeiShu, URL from common.sdk.im.feishu import FeiShu, URL
from authentication import errors from authentication import errors
from authentication.mixins import AuthMixin from authentication.mixins import AuthMixin

View File

@ -14,8 +14,8 @@ from users.models import User
from common.utils import get_logger, FlashMessageUtil from common.utils import get_logger, FlashMessageUtil
from common.utils.random import random_string from common.utils.random import random_string
from common.utils.django import reverse, get_object_or_none from common.utils.django import reverse, get_object_or_none
from common.message.backends.wecom import URL from common.sdk.im.wecom import URL
from common.message.backends.wecom import WeCom from common.sdk.im.wecom import WeCom
from common.mixins.views import PermissionsMixin from common.mixins.views import PermissionsMixin
from authentication import errors from authentication import errors
from authentication.mixins import AuthMixin from authentication.mixins import AuthMixin

View File

@ -3,8 +3,8 @@ import hmac
import base64 import base64
from common.utils import get_logger from common.utils import get_logger
from common.message.backends.utils import digest, as_request from common.sdk.im.utils import digest, as_request
from common.message.backends.mixin import BaseRequest from common.sdk.im.mixin import BaseRequest
logger = get_logger(__file__) logger = get_logger(__file__)

View File

@ -4,8 +4,8 @@ from django.utils.translation import ugettext_lazy as _
from rest_framework.exceptions import APIException from rest_framework.exceptions import APIException
from common.utils.common import get_logger from common.utils.common import get_logger
from common.message.backends.utils import digest from common.sdk.im.utils import digest
from common.message.backends.mixin import RequestMixin, BaseRequest from common.sdk.im.mixin import RequestMixin, BaseRequest
logger = get_logger(__name__) logger = get_logger(__name__)

View File

@ -6,7 +6,7 @@ from django.core.cache import cache
from .utils import DictWrapper from .utils import DictWrapper
from common.utils.common import get_logger from common.utils.common import get_logger
from common.utils import lazyproperty from common.utils import lazyproperty
from common.message.backends.utils import set_default, as_request from common.sdk.im.utils import set_default, as_request
from . import exceptions as exce from . import exceptions as exce

View File

@ -3,7 +3,7 @@ import inspect
from inspect import Parameter from inspect import Parameter
from common.utils.common import get_logger from common.utils.common import get_logger
from common.message.backends import exceptions as exce from common.sdk.im import exceptions as exce
logger = get_logger(__name__) logger = get_logger(__name__)

View File

@ -4,8 +4,8 @@ from django.utils.translation import ugettext_lazy as _
from rest_framework.exceptions import APIException from rest_framework.exceptions import APIException
from common.utils.common import get_logger from common.utils.common import get_logger
from common.message.backends.utils import digest, DictWrapper, update_values, set_default from common.sdk.im.utils import digest, DictWrapper, update_values, set_default
from common.message.backends.mixin import RequestMixin, BaseRequest from common.sdk.im.mixin import RequestMixin, BaseRequest
logger = get_logger(__name__) logger = get_logger(__name__)

View File

@ -1,5 +1,5 @@
from django.conf import settings from django.conf import settings
from common.message.backends.dingtalk import DingTalk as Client from common.sdk.im.dingtalk import DingTalk as Client
from .base import BackendBase from .base import BackendBase

View File

@ -1,6 +1,6 @@
from django.conf import settings from django.conf import settings
from common.message.backends.feishu import FeiShu as Client from common.sdk.im.feishu import FeiShu as Client
from .base import BackendBase from .base import BackendBase

View File

@ -1,6 +1,6 @@
from django.conf import settings from django.conf import settings
from common.message.backends.sms.alibaba import AlibabaSMS as Client from common.sdk.im.sms.alibaba import AlibabaSMS as Client
from .base import BackendBase from .base import BackendBase

View File

@ -1,6 +1,6 @@
from django.conf import settings from django.conf import settings
from common.message.backends.wecom import WeCom as Client from common.sdk.im.wecom import WeCom as Client
from .base import BackendBase from .base import BackendBase

View File

@ -4,7 +4,7 @@ from rest_framework.exceptions import APIException
from rest_framework import status from rest_framework import status
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _
from common.message.backends.sms.alibaba import AlibabaSMS from common.sdk.im.sms.alibaba import AlibabaSMS
from settings.models import Setting from settings.models import Setting
from common.permissions import IsSuperUser from common.permissions import IsSuperUser
from common.exceptions import JMSException from common.exceptions import JMSException

View File

@ -6,7 +6,7 @@ from django.utils.translation import gettext_lazy as _
from django.conf import settings from django.conf import settings
from common.permissions import IsSuperUser from common.permissions import IsSuperUser
from common.message.backends.dingtalk import DingTalk from common.sdk.im.dingtalk import DingTalk
from .. import serializers from .. import serializers

View File

@ -6,7 +6,7 @@ from django.utils.translation import gettext_lazy as _
from settings.models import Setting from settings.models import Setting
from common.permissions import IsSuperUser from common.permissions import IsSuperUser
from common.message.backends.feishu import FeiShu from common.sdk.im.feishu import FeiShu
from .. import serializers from .. import serializers

View File

@ -2,7 +2,7 @@ from rest_framework.generics import ListAPIView
from rest_framework.response import Response from rest_framework.response import Response
from common.permissions import IsSuperUser from common.permissions import IsSuperUser
from common.message.backends.sms import BACKENDS from common.sdk.im.sms import BACKENDS
from settings.serializers.sms import SMSBackendSerializer from settings.serializers.sms import SMSBackendSerializer

View File

@ -6,7 +6,7 @@ from rest_framework.exceptions import APIException
from rest_framework import status from rest_framework import status
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _
from common.message.backends.sms.tencent import TencentSMS from common.sdk.im.sms.tencent import TencentSMS
from settings.models import Setting from settings.models import Setting
from common.permissions import IsSuperUser from common.permissions import IsSuperUser
from common.exceptions import JMSException from common.exceptions import JMSException

View File

@ -6,7 +6,7 @@ from django.utils.translation import gettext_lazy as _
from settings.models import Setting from settings.models import Setting
from common.permissions import IsSuperUser from common.permissions import IsSuperUser
from common.message.backends.wecom import WeCom from common.sdk.im.wecom import WeCom
from .. import serializers from .. import serializers

View File

@ -1,7 +1,7 @@
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from rest_framework import serializers from rest_framework import serializers
from common.message.backends.sms import BACKENDS from common.sdk.im.sms import BACKENDS
__all__ = ['SMSSettingSerializer', 'AlibabaSMSSettingSerializer', 'TencentSMSSettingSerializer'] __all__ = ['SMSSettingSerializer', 'AlibabaSMSSettingSerializer', 'TencentSMSSettingSerializer']