perf: 优化修改 sdk 位置

This commit is contained in:
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

@@ -0,0 +1,23 @@
from django.utils.translation import gettext_lazy as _
from rest_framework.exceptions import APIException
class HTTPNot200(APIException):
default_code = 'http_not_200'
default_detail = 'HTTP status is not 200'
class ErrCodeNot0(APIException):
default_code = 'errcode_not_0'
default_detail = 'Error code is not 0'
class ResponseDataKeyError(APIException):
default_code = 'response_data_key_error'
default_detail = 'Response data key error'
class NetError(APIException):
default_code = 'net_error'
default_detail = _('Network error, please contact system administrator')