第一次提交:阿龙电竞 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,49 @@
# -*- 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.cim.v20190318 import models
class CimClient(AbstractClient):
_apiVersion = '2019-03-18'
_endpoint = 'cim.tencentcloudapi.com'
_service = 'cim'
def DescribeSdkAppid(self, request):
r"""获取云通信IM中腾讯云账号对应的SDKAppID
:param request: Request instance for DescribeSdkAppid.
:type request: :class:`tencentcloud.cim.v20190318.models.DescribeSdkAppidRequest`
:rtype: :class:`tencentcloud.cim.v20190318.models.DescribeSdkAppidResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeSdkAppid", params, headers=headers)
response = json.loads(body)
model = models.DescribeSdkAppidResponse()
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,44 @@
# -*- 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.cim.v20190318 import models
from typing import Dict
class CimClient(AbstractClient):
_apiVersion = '2019-03-18'
_endpoint = 'cim.tencentcloudapi.com'
_service = 'cim'
async def DescribeSdkAppid(
self,
request: models.DescribeSdkAppidRequest,
opts: Dict = None,
) -> models.DescribeSdkAppidResponse:
"""
获取云通信IM中腾讯云账号对应的SDKAppID
"""
kwargs = {}
kwargs["action"] = "DescribeSdkAppid"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeSdkAppidResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)

View File

@@ -0,0 +1,24 @@
# -*- 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.
# 操作失败。
FAILEDOPERATION = 'FailedOperation'
# 参数错误。
INVALIDPARAMETER = 'InvalidParameter'
# 缺少参数错误。
MISSINGPARAMETER = 'MissingParameter'

View File

@@ -0,0 +1,67 @@
# -*- 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 warnings
from tencentcloud.common.abstract_model import AbstractModel
class DescribeSdkAppidRequest(AbstractModel):
r"""DescribeSdkAppid请求参数结构体
"""
class DescribeSdkAppidResponse(AbstractModel):
r"""DescribeSdkAppid返回参数结构体
"""
def __init__(self):
r"""
:param _SdkAppids: 表示 appid 对应的 SdkAppid 的数据
:type SdkAppids: list of int
:param _RequestId: 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
:type RequestId: str
"""
self._SdkAppids = None
self._RequestId = None
@property
def SdkAppids(self):
r"""表示 appid 对应的 SdkAppid 的数据
:rtype: list of int
"""
return self._SdkAppids
@SdkAppids.setter
def SdkAppids(self, SdkAppids):
self._SdkAppids = SdkAppids
@property
def RequestId(self):
r"""唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
:rtype: str
"""
return self._RequestId
@RequestId.setter
def RequestId(self, RequestId):
self._RequestId = RequestId
def _deserialize(self, params):
self._SdkAppids = params.get("SdkAppids")
self._RequestId = params.get("RequestId")