第一次提交:阿龙电竞 Django 后端最新版本
This commit is contained in:
@@ -0,0 +1,101 @@
|
||||
# -*- 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.af.v20200226 import models
|
||||
|
||||
|
||||
class AfClient(AbstractClient):
|
||||
_apiVersion = '2020-02-26'
|
||||
_endpoint = 'af.tencentcloudapi.com'
|
||||
_service = 'af'
|
||||
|
||||
|
||||
def DescribeAntiFraud(self, request):
|
||||
r"""该接口未在使用,后端地址已无法访问,经查近60天日志无正常业务访问记录,申请预下线。
|
||||
|
||||
天御反欺诈服务,主要应用于银行、证券、保险、消费金融等金融行业客户,通过腾讯的大数据风控能力,
|
||||
可以准确识别恶意用户信息,解决客户在支付、活动、理财,风控等业务环节遇到的欺诈威胁,降低企业
|
||||
的损失。
|
||||
|
||||
:param request: Request instance for DescribeAntiFraud.
|
||||
:type request: :class:`tencentcloud.af.v20200226.models.DescribeAntiFraudRequest`
|
||||
:rtype: :class:`tencentcloud.af.v20200226.models.DescribeAntiFraudResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeAntiFraud", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeAntiFraudResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def GetAntiFraud(self, request):
|
||||
r"""反欺诈评分接口
|
||||
|
||||
:param request: Request instance for GetAntiFraud.
|
||||
:type request: :class:`tencentcloud.af.v20200226.models.GetAntiFraudRequest`
|
||||
:rtype: :class:`tencentcloud.af.v20200226.models.GetAntiFraudResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("GetAntiFraud", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.GetAntiFraudResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def QueryAntiFraud(self, request):
|
||||
r"""天御反欺诈服务,主要应用于银行、证券、保险、消费金融等金融行业客户,通过腾讯的大数据风控能力,
|
||||
可以准确识别恶意用户信息,解决客户在支付、活动、理财,风控等业务环节遇到的欺诈威胁,降低企业
|
||||
的损失。
|
||||
|
||||
:param request: Request instance for QueryAntiFraud.
|
||||
:type request: :class:`tencentcloud.af.v20200226.models.QueryAntiFraudRequest`
|
||||
:rtype: :class:`tencentcloud.af.v20200226.models.QueryAntiFraudResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("QueryAntiFraud", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.QueryAntiFraudResponse()
|
||||
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,86 @@
|
||||
# -*- 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.af.v20200226 import models
|
||||
from typing import Dict
|
||||
|
||||
|
||||
class AfClient(AbstractClient):
|
||||
_apiVersion = '2020-02-26'
|
||||
_endpoint = 'af.tencentcloudapi.com'
|
||||
_service = 'af'
|
||||
|
||||
async def DescribeAntiFraud(
|
||||
self,
|
||||
request: models.DescribeAntiFraudRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeAntiFraudResponse:
|
||||
"""
|
||||
该接口未在使用,后端地址已无法访问,经查近60天日志无正常业务访问记录,申请预下线。
|
||||
|
||||
天御反欺诈服务,主要应用于银行、证券、保险、消费金融等金融行业客户,通过腾讯的大数据风控能力,
|
||||
可以准确识别恶意用户信息,解决客户在支付、活动、理财,风控等业务环节遇到的欺诈威胁,降低企业
|
||||
的损失。
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeAntiFraud"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeAntiFraudResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def GetAntiFraud(
|
||||
self,
|
||||
request: models.GetAntiFraudRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.GetAntiFraudResponse:
|
||||
"""
|
||||
反欺诈评分接口
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "GetAntiFraud"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.GetAntiFraudResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def QueryAntiFraud(
|
||||
self,
|
||||
request: models.QueryAntiFraudRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.QueryAntiFraudResponse:
|
||||
"""
|
||||
天御反欺诈服务,主要应用于银行、证券、保险、消费金融等金融行业客户,通过腾讯的大数据风控能力,
|
||||
可以准确识别恶意用户信息,解决客户在支付、活动、理财,风控等业务环节遇到的欺诈威胁,降低企业
|
||||
的损失。
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "QueryAntiFraud"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.QueryAntiFraudResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
@@ -0,0 +1,147 @@
|
||||
# -*- 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'
|
||||
|
||||
# BusinessId取值错误。
|
||||
INVALIDPARAMETERVALUE_INVALIDBUSINESSID = 'InvalidParameterValue.InvalidBusinessId'
|
||||
|
||||
# 日期取值错误。
|
||||
INVALIDPARAMETERVALUE_INVALIDDATE = 'InvalidParameterValue.InvalidDate'
|
||||
|
||||
# PageLimit取值错误。
|
||||
INVALIDPARAMETERVALUE_INVALIDLIMIT = 'InvalidParameterValue.InvalidLimit'
|
||||
|
||||
# PageNum取值错误。
|
||||
INVALIDPARAMETERVALUE_INVALIDNUM = 'InvalidParameterValue.InvalidNum'
|
||||
|
||||
# SrvId取值。
|
||||
INVALIDPARAMETERVALUE_INVALIDSRVID = 'InvalidParameterValue.InvalidSrvId'
|
||||
|
||||
# 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