第一次提交:阿龙电竞 Django 后端最新版本

This commit is contained in:
XingQue
2026-06-14 02:23:24 +08:00
commit 4f7bf00224
9654 changed files with 5417000 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
# -*- 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.
# 内部错误。
INTERNALERROR = 'InternalError'
# 后台处理出错。
INTERNALERROR_BACKENDERROR = 'InternalError.BackendError'
# 获取配置失败。
INTERNALERROR_DOMAINCONFIG = 'InternalError.DomainConfig'
# 上传链接生成失败。
INTERNALERROR_FAILEDTOGENERATEURL = 'InternalError.FailedToGenerateUrl'
# 配额系统处理失败。
INTERNALERROR_QUOTASYSTEM = 'InternalError.QuotaSystem'
# 后端服务路由地址错误。
INTERNALERROR_ROUTEERROR = 'InternalError.RouteError'
# 域名不存在或不属于该账号。
INVALIDPARAMETER_DOMAINNOTFOUND = 'InvalidParameter.DomainNotFound'
# 参数错误: 无效 "结束时间", 不在允许的查询范围内: [开始时间, 开始+ 7天]
INVALIDPARAMETER_PARAMETERERROR = 'InvalidParameter.ParameterError'
# 资源存在错误。
INVALIDPARAMETER_TARGET = 'InvalidParameter.Target'
# 任务无法生成。
INVALIDPARAMETER_TASKNOTGENERATED = 'InvalidParameter.TaskNotGenerated'
# 文件上传链接存在问题。
INVALIDPARAMETER_UPLOADURL = 'InvalidParameter.UploadUrl'
# 本次提交的资源数超过上限。
LIMITEXCEEDED_BATCHQUOTA = 'LimitExceeded.BatchQuota'
# 当天提交的资源数超过上限。
LIMITEXCEEDED_DAILYQUOTA = 'LimitExceeded.DailyQuota'
# 操作被拒绝。
OPERATIONDENIED = 'OperationDenied'
# Cam 未授权。
UNAUTHORIZEDOPERATION_CAMUNAUTHORIZED = 'UnauthorizedOperation.CamUnauthorized'
# 鉴权错误。
UNAUTHORIZEDOPERATION_DOMAINEMPTY = 'UnauthorizedOperation.DomainEmpty'
# 子账户没有操作权限,请添加权限后继续操作。
UNAUTHORIZEDOPERATION_NOPERMISSION = 'UnauthorizedOperation.NoPermission'

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,145 @@
# -*- 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.teo.v20220106 import models
class TeoClient(AbstractClient):
_apiVersion = '2022-01-06'
_endpoint = 'teo.tencentcloudapi.com'
_service = 'teo'
def CreatePrefetchTask(self, request):
r"""老版本接口最近一次调用时23年11月了
创建预热任务
:param request: Request instance for CreatePrefetchTask.
:type request: :class:`tencentcloud.teo.v20220106.models.CreatePrefetchTaskRequest`
:rtype: :class:`tencentcloud.teo.v20220106.models.CreatePrefetchTaskResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("CreatePrefetchTask", params, headers=headers)
response = json.loads(body)
model = models.CreatePrefetchTaskResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def CreatePurgeTask(self, request):
r"""老版本接口老版本pod的最近一次调用在23年11月
创建清除缓存任务
:param request: Request instance for CreatePurgeTask.
:type request: :class:`tencentcloud.teo.v20220106.models.CreatePurgeTaskRequest`
:rtype: :class:`tencentcloud.teo.v20220106.models.CreatePurgeTaskResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("CreatePurgeTask", params, headers=headers)
response = json.loads(body)
model = models.CreatePurgeTaskResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribePrefetchTasks(self, request):
r"""查询预热任务状态
:param request: Request instance for DescribePrefetchTasks.
:type request: :class:`tencentcloud.teo.v20220106.models.DescribePrefetchTasksRequest`
:rtype: :class:`tencentcloud.teo.v20220106.models.DescribePrefetchTasksResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribePrefetchTasks", params, headers=headers)
response = json.loads(body)
model = models.DescribePrefetchTasksResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribePurgeTasks(self, request):
r"""查询清除缓存历史记录
:param request: Request instance for DescribePurgeTasks.
:type request: :class:`tencentcloud.teo.v20220106.models.DescribePurgeTasksRequest`
:rtype: :class:`tencentcloud.teo.v20220106.models.DescribePurgeTasksResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribePurgeTasks", params, headers=headers)
response = json.loads(body)
model = models.DescribePurgeTasksResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeZones(self, request):
r"""用户查询用户站点信息列表,支持分页
:param request: Request instance for DescribeZones.
:type request: :class:`tencentcloud.teo.v20220106.models.DescribeZonesRequest`
:rtype: :class:`tencentcloud.teo.v20220106.models.DescribeZonesResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeZones", params, headers=headers)
response = json.loads(body)
model = models.DescribeZonesResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))

View File

@@ -0,0 +1,120 @@
# -*- 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.teo.v20220106 import models
from typing import Dict
class TeoClient(AbstractClient):
_apiVersion = '2022-01-06'
_endpoint = 'teo.tencentcloudapi.com'
_service = 'teo'
async def CreatePrefetchTask(
self,
request: models.CreatePrefetchTaskRequest,
opts: Dict = None,
) -> models.CreatePrefetchTaskResponse:
"""
老版本接口最近一次调用时23年11月了
创建预热任务
"""
kwargs = {}
kwargs["action"] = "CreatePrefetchTask"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.CreatePrefetchTaskResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def CreatePurgeTask(
self,
request: models.CreatePurgeTaskRequest,
opts: Dict = None,
) -> models.CreatePurgeTaskResponse:
"""
老版本接口老版本pod的最近一次调用在23年11月
创建清除缓存任务
"""
kwargs = {}
kwargs["action"] = "CreatePurgeTask"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.CreatePurgeTaskResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribePrefetchTasks(
self,
request: models.DescribePrefetchTasksRequest,
opts: Dict = None,
) -> models.DescribePrefetchTasksResponse:
"""
查询预热任务状态
"""
kwargs = {}
kwargs["action"] = "DescribePrefetchTasks"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribePrefetchTasksResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribePurgeTasks(
self,
request: models.DescribePurgeTasksRequest,
opts: Dict = None,
) -> models.DescribePurgeTasksResponse:
"""
查询清除缓存历史记录
"""
kwargs = {}
kwargs["action"] = "DescribePurgeTasks"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribePurgeTasksResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribeZones(
self,
request: models.DescribeZonesRequest,
opts: Dict = None,
) -> models.DescribeZonesResponse:
"""
用户查询用户站点信息列表,支持分页
"""
kwargs = {}
kwargs["action"] = "DescribeZones"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeZonesResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)