第一次提交:阿龙电竞 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,30 @@
# -*- 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'
# 参数取值错误。
INVALIDPARAMETERVALUE = 'InvalidParameterValue'
# 资源不存在。
RESOURCENOTFOUND = 'ResourceNotFound'
# 应用id不存在。
RESOURCENOTFOUND_APPNOTFOUND = 'ResourceNotFound.AppNotFound'

View File

@@ -0,0 +1,238 @@
# -*- 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.ic.v20190307 import models
class IcClient(AbstractClient):
_apiVersion = '2019-03-07'
_endpoint = 'ic.tencentcloudapi.com'
_service = 'ic'
def DescribeApp(self, request):
r"""根据应用id查询物联卡应用详情
:param request: Request instance for DescribeApp.
:type request: :class:`tencentcloud.ic.v20190307.models.DescribeAppRequest`
:rtype: :class:`tencentcloud.ic.v20190307.models.DescribeAppResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeApp", params, headers=headers)
response = json.loads(body)
model = models.DescribeAppResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeCard(self, request):
r"""查询卡片详细信息
:param request: Request instance for DescribeCard.
:type request: :class:`tencentcloud.ic.v20190307.models.DescribeCardRequest`
:rtype: :class:`tencentcloud.ic.v20190307.models.DescribeCardResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeCard", params, headers=headers)
response = json.loads(body)
model = models.DescribeCardResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeCards(self, request):
r"""查询卡片列表信息
:param request: Request instance for DescribeCards.
:type request: :class:`tencentcloud.ic.v20190307.models.DescribeCardsRequest`
:rtype: :class:`tencentcloud.ic.v20190307.models.DescribeCardsResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeCards", params, headers=headers)
response = json.loads(body)
model = models.DescribeCardsResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeSms(self, request):
r"""查询短信列表
:param request: Request instance for DescribeSms.
:type request: :class:`tencentcloud.ic.v20190307.models.DescribeSmsRequest`
:rtype: :class:`tencentcloud.ic.v20190307.models.DescribeSmsResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeSms", params, headers=headers)
response = json.loads(body)
model = models.DescribeSmsResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def ModifyUserCardRemark(self, request):
r"""编辑卡片备注
:param request: Request instance for ModifyUserCardRemark.
:type request: :class:`tencentcloud.ic.v20190307.models.ModifyUserCardRemarkRequest`
:rtype: :class:`tencentcloud.ic.v20190307.models.ModifyUserCardRemarkResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("ModifyUserCardRemark", params, headers=headers)
response = json.loads(body)
model = models.ModifyUserCardRemarkResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def PayForExtendData(self, request):
r"""购买套外流量包
:param request: Request instance for PayForExtendData.
:type request: :class:`tencentcloud.ic.v20190307.models.PayForExtendDataRequest`
:rtype: :class:`tencentcloud.ic.v20190307.models.PayForExtendDataResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("PayForExtendData", params, headers=headers)
response = json.loads(body)
model = models.PayForExtendDataResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def RenewCards(self, request):
r"""批量为卡片续费此接口建议调用至少间隔10s,如果出现返回deal lock failed相关的错误请过10s再重试。
续费的必要条件:
1、单次续费的卡片不可以超过 100张。
2、接口只支持在控制台购买的卡片进行续费
3、销户和未激活的卡片不支持续费。
4、每张物联网卡续费总周期不能超过24个月
:param request: Request instance for RenewCards.
:type request: :class:`tencentcloud.ic.v20190307.models.RenewCardsRequest`
:rtype: :class:`tencentcloud.ic.v20190307.models.RenewCardsResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("RenewCards", params, headers=headers)
response = json.loads(body)
model = models.RenewCardsResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def SendMultiSms(self, request):
r"""群发短信
:param request: Request instance for SendMultiSms.
:type request: :class:`tencentcloud.ic.v20190307.models.SendMultiSmsRequest`
:rtype: :class:`tencentcloud.ic.v20190307.models.SendMultiSmsResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("SendMultiSms", params, headers=headers)
response = json.loads(body)
model = models.SendMultiSmsResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def SendSms(self, request):
r"""发送短信息接口
:param request: Request instance for SendSms.
:type request: :class:`tencentcloud.ic.v20190307.models.SendSmsRequest`
:rtype: :class:`tencentcloud.ic.v20190307.models.SendSmsResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("SendSms", params, headers=headers)
response = json.loads(body)
model = models.SendSmsResponse()
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,193 @@
# -*- 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.ic.v20190307 import models
from typing import Dict
class IcClient(AbstractClient):
_apiVersion = '2019-03-07'
_endpoint = 'ic.tencentcloudapi.com'
_service = 'ic'
async def DescribeApp(
self,
request: models.DescribeAppRequest,
opts: Dict = None,
) -> models.DescribeAppResponse:
"""
根据应用id查询物联卡应用详情
"""
kwargs = {}
kwargs["action"] = "DescribeApp"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeAppResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribeCard(
self,
request: models.DescribeCardRequest,
opts: Dict = None,
) -> models.DescribeCardResponse:
"""
查询卡片详细信息
"""
kwargs = {}
kwargs["action"] = "DescribeCard"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeCardResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribeCards(
self,
request: models.DescribeCardsRequest,
opts: Dict = None,
) -> models.DescribeCardsResponse:
"""
查询卡片列表信息
"""
kwargs = {}
kwargs["action"] = "DescribeCards"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeCardsResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribeSms(
self,
request: models.DescribeSmsRequest,
opts: Dict = None,
) -> models.DescribeSmsResponse:
"""
查询短信列表
"""
kwargs = {}
kwargs["action"] = "DescribeSms"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeSmsResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def ModifyUserCardRemark(
self,
request: models.ModifyUserCardRemarkRequest,
opts: Dict = None,
) -> models.ModifyUserCardRemarkResponse:
"""
编辑卡片备注
"""
kwargs = {}
kwargs["action"] = "ModifyUserCardRemark"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.ModifyUserCardRemarkResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def PayForExtendData(
self,
request: models.PayForExtendDataRequest,
opts: Dict = None,
) -> models.PayForExtendDataResponse:
"""
购买套外流量包
"""
kwargs = {}
kwargs["action"] = "PayForExtendData"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.PayForExtendDataResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def RenewCards(
self,
request: models.RenewCardsRequest,
opts: Dict = None,
) -> models.RenewCardsResponse:
"""
批量为卡片续费此接口建议调用至少间隔10s,如果出现返回deal lock failed相关的错误请过10s再重试。
续费的必要条件:
1、单次续费的卡片不可以超过 100张。
2、接口只支持在控制台购买的卡片进行续费
3、销户和未激活的卡片不支持续费。
4、每张物联网卡续费总周期不能超过24个月
"""
kwargs = {}
kwargs["action"] = "RenewCards"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.RenewCardsResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def SendMultiSms(
self,
request: models.SendMultiSmsRequest,
opts: Dict = None,
) -> models.SendMultiSmsResponse:
"""
群发短信
"""
kwargs = {}
kwargs["action"] = "SendMultiSms"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.SendMultiSmsResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def SendSms(
self,
request: models.SendSmsRequest,
opts: Dict = None,
) -> models.SendSmsResponse:
"""
发送短信息接口
"""
kwargs = {}
kwargs["action"] = "SendSms"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.SendSmsResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)

File diff suppressed because it is too large Load Diff