第一次提交:阿龙电竞 Django 后端最新版本
This commit is contained in:
@@ -0,0 +1,97 @@
|
||||
# -*- coding: utf8 -*-
|
||||
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import json
|
||||
|
||||
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
|
||||
from tencentcloud.common.abstract_client import AbstractClient
|
||||
from tencentcloud.afc.v20200226 import models
|
||||
|
||||
|
||||
class AfcClient(AbstractClient):
|
||||
_apiVersion = '2020-02-26'
|
||||
_endpoint = 'afc.tencentcloudapi.com'
|
||||
_service = 'afc'
|
||||
|
||||
|
||||
def GetAntiFraudVip(self, request):
|
||||
r"""反欺诈VIP评分接口
|
||||
|
||||
:param request: Request instance for GetAntiFraudVip.
|
||||
:type request: :class:`tencentcloud.afc.v20200226.models.GetAntiFraudVipRequest`
|
||||
:rtype: :class:`tencentcloud.afc.v20200226.models.GetAntiFraudVipResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("GetAntiFraudVip", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.GetAntiFraudVipResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def QueryAntiFraudVip(self, request):
|
||||
r"""天御反欺诈服务,主要应用于银行、证券、保险、P2P等金融行业客户,通过腾讯的大数据风控能力,
|
||||
可以准确识别恶意用户信息,解决客户在支付、活动、理财,风控等业务环节遇到的欺诈威胁,降低企业
|
||||
的损失。
|
||||
|
||||
:param request: Request instance for QueryAntiFraudVip.
|
||||
:type request: :class:`tencentcloud.afc.v20200226.models.QueryAntiFraudVipRequest`
|
||||
:rtype: :class:`tencentcloud.afc.v20200226.models.QueryAntiFraudVipResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("QueryAntiFraudVip", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.QueryAntiFraudVipResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def TransportGeneralInterface(self, request):
|
||||
r"""天御信鸽取数平台接口
|
||||
|
||||
:param request: Request instance for TransportGeneralInterface.
|
||||
:type request: :class:`tencentcloud.afc.v20200226.models.TransportGeneralInterfaceRequest`
|
||||
:rtype: :class:`tencentcloud.afc.v20200226.models.TransportGeneralInterfaceResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("TransportGeneralInterface", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.TransportGeneralInterfaceResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
@@ -0,0 +1,82 @@
|
||||
# -*- coding: utf8 -*-
|
||||
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
|
||||
|
||||
from tencentcloud.common.abstract_client_async import AbstractClient
|
||||
from tencentcloud.afc.v20200226 import models
|
||||
from typing import Dict
|
||||
|
||||
|
||||
class AfcClient(AbstractClient):
|
||||
_apiVersion = '2020-02-26'
|
||||
_endpoint = 'afc.tencentcloudapi.com'
|
||||
_service = 'afc'
|
||||
|
||||
async def GetAntiFraudVip(
|
||||
self,
|
||||
request: models.GetAntiFraudVipRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.GetAntiFraudVipResponse:
|
||||
"""
|
||||
反欺诈VIP评分接口
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "GetAntiFraudVip"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.GetAntiFraudVipResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def QueryAntiFraudVip(
|
||||
self,
|
||||
request: models.QueryAntiFraudVipRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.QueryAntiFraudVipResponse:
|
||||
"""
|
||||
天御反欺诈服务,主要应用于银行、证券、保险、P2P等金融行业客户,通过腾讯的大数据风控能力,
|
||||
可以准确识别恶意用户信息,解决客户在支付、活动、理财,风控等业务环节遇到的欺诈威胁,降低企业
|
||||
的损失。
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "QueryAntiFraudVip"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.QueryAntiFraudVipResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def TransportGeneralInterface(
|
||||
self,
|
||||
request: models.TransportGeneralInterfaceRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.TransportGeneralInterfaceResponse:
|
||||
"""
|
||||
天御信鸽取数平台接口
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "TransportGeneralInterface"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.TransportGeneralInterfaceResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
@@ -0,0 +1,138 @@
|
||||
# -*- coding: utf8 -*-
|
||||
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
|
||||
# CAM签名/鉴权错误。
|
||||
AUTHFAILURE = 'AuthFailure'
|
||||
|
||||
# 验证码签名错误。
|
||||
AUTHFAILURE_CAPSIGERROR = 'AuthFailure.CapSigError'
|
||||
|
||||
# 请求过期。
|
||||
AUTHFAILURE_EXPIRED = 'AuthFailure.Expired'
|
||||
|
||||
# DryRun 操作,代表请求将会是成功的,只是多传了 DryRun 参数。
|
||||
DRYRUNOPERATION = 'DryRunOperation'
|
||||
|
||||
# 操作失败。
|
||||
FAILEDOPERATION = 'FailedOperation'
|
||||
|
||||
# 内部错误。
|
||||
INTERNALERROR = 'InternalError'
|
||||
|
||||
# 业务系统逻辑错误。
|
||||
INTERNALERROR_BACKENDLOGICERROR = 'InternalError.BackendLogicError'
|
||||
|
||||
# Sign后端错误。
|
||||
INTERNALERROR_SIGNBACKENDERROR = 'InternalError.SignBackendError'
|
||||
|
||||
# 参数错误。
|
||||
INVALIDPARAMETER = 'InvalidParameter'
|
||||
|
||||
# 参数错误。
|
||||
INVALIDPARAMETER_PARAMERROR = 'InvalidParameter.ParamError'
|
||||
|
||||
# URL错误。
|
||||
INVALIDPARAMETER_URLERROR = 'InvalidParameter.UrlError'
|
||||
|
||||
# 版本错误。
|
||||
INVALIDPARAMETER_VERSIONERROR = 'InvalidParameter.VersionError'
|
||||
|
||||
# 参数取值错误。
|
||||
INVALIDPARAMETERVALUE = 'InvalidParameterValue'
|
||||
|
||||
# BadBody。
|
||||
INVALIDPARAMETERVALUE_BADBODY = 'InvalidParameterValue.BadBody'
|
||||
|
||||
# 请求包过大。
|
||||
INVALIDPARAMETERVALUE_BODYTOOLARGE = 'InvalidParameterValue.BodyTooLarge'
|
||||
|
||||
# 验证码不匹配。
|
||||
INVALIDPARAMETERVALUE_CAPMISMATCH = 'InvalidParameterValue.CapMisMatch'
|
||||
|
||||
# HTTP方法错误。
|
||||
INVALIDPARAMETERVALUE_HTTPMETHODERROR = 'InvalidParameterValue.HttpMethodError'
|
||||
|
||||
# 日期取值错误。
|
||||
INVALIDPARAMETERVALUE_INVALIDDATE = 'InvalidParameterValue.InvalidDate'
|
||||
|
||||
# PageLimit取值错误。
|
||||
INVALIDPARAMETERVALUE_INVALIDLIMIT = 'InvalidParameterValue.InvalidLimit'
|
||||
|
||||
# SrvName取值错误。
|
||||
INVALIDPARAMETERVALUE_INVALIDSRVNAME = 'InvalidParameterValue.InvalidSrvName'
|
||||
|
||||
# Stride取值错误。
|
||||
INVALIDPARAMETERVALUE_INVALIDSTRIDE = 'InvalidParameterValue.InvalidStride'
|
||||
|
||||
# 超过配额限制。
|
||||
LIMITEXCEEDED = 'LimitExceeded'
|
||||
|
||||
# 超过配额。
|
||||
LIMITEXCEEDED_FREQCNT = 'LimitExceeded.FreqCnt'
|
||||
|
||||
# 超过配额。
|
||||
LIMITEXCEEDED_IPFREQCNT = 'LimitExceeded.IpFreqCnt'
|
||||
|
||||
# 关键词频控限制。
|
||||
LIMITEXCEEDED_KEYFREQCNT = 'LimitExceeded.KeyFreqCnt'
|
||||
|
||||
# 重放攻击。
|
||||
LIMITEXCEEDED_REPLAYATTACK = 'LimitExceeded.ReplayAttack'
|
||||
|
||||
# 缺少参数错误。
|
||||
MISSINGPARAMETER = 'MissingParameter'
|
||||
|
||||
# 操作被拒绝。
|
||||
OPERATIONDENIED = 'OperationDenied'
|
||||
|
||||
# 请求的次数超过了频率限制。
|
||||
REQUESTLIMITEXCEEDED = 'RequestLimitExceeded'
|
||||
|
||||
# 资源被占用。
|
||||
RESOURCEINUSE = 'ResourceInUse'
|
||||
|
||||
# 资源不足。
|
||||
RESOURCEINSUFFICIENT = 'ResourceInsufficient'
|
||||
|
||||
# 资源不存在。
|
||||
RESOURCENOTFOUND = 'ResourceNotFound'
|
||||
|
||||
# 接口不存在。
|
||||
RESOURCENOTFOUND_INTERFACENOTFOUND = 'ResourceNotFound.InterfaceNotFound'
|
||||
|
||||
# 资源不可用。
|
||||
RESOURCEUNAVAILABLE = 'ResourceUnavailable'
|
||||
|
||||
# 未开通服务权限。
|
||||
RESOURCEUNAVAILABLE_PERMISSIONDENIED = 'ResourceUnavailable.PermissionDenied'
|
||||
|
||||
# 资源售罄。
|
||||
RESOURCESSOLDOUT = 'ResourcesSoldOut'
|
||||
|
||||
# 未授权操作。
|
||||
UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
|
||||
|
||||
# 鉴权失败。
|
||||
UNAUTHORIZEDOPERATION_AUTHFAILED = 'UnauthorizedOperation.AuthFailed'
|
||||
|
||||
# 未知参数错误。
|
||||
UNKNOWNPARAMETER = 'UnknownParameter'
|
||||
|
||||
# 密钥不存在。
|
||||
UNKNOWNPARAMETER_SECRETIDNOTEXISTS = 'UnknownParameter.SecretIdNotExists'
|
||||
|
||||
# 操作不支持。
|
||||
UNSUPPORTEDOPERATION = 'UnsupportedOperation'
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user