Update 20 files

- /Utils/Common/RegisterUtils.py
- /Utils/Common/__init__.py
- /Utils/DataBase/__pycache__/MongoHelperUtils.cpython-311.pyc
- /Utils/DataBase/__pycache__/SqlAlchemyUtils.cpython-311.pyc
- /Utils/DataBase/__pycache__/__init__.cpython-311.pyc
- /__pycache__/main.cpython-311.pyc
- /.idea/inspectionProfiles/Project_Default.xml
- /.idea/inspectionProfiles/profiles_settings.xml
- /.idea/.gitignore
- /.idea/CommercialCompany.iml
- /.idea/misc.xml
- /.idea/modules.xml
- /.idea/vcs.xml
- /Utils/__pycache__/__init__.cpython-311.pyc
- /App/__pycache__/__init__.cpython-311.pyc
- /App/Router/__pycache__/ModelRouter.cpython-311.pyc
- /App/Router/__pycache__/ReportRouter.cpython-311.pyc
- /App/Router/__pycache__/__init__.cpython-311.pyc
- /App/Schemas/__pycache__/ModelSchemas.cpython-311.pyc
- /App/Schemas/__pycache__/__init__.cpython-311.pyc
This commit is contained in:
彭森 2024-02-04 14:31:30 +08:00
parent 95adf92c01
commit bc074605cb
20 changed files with 0 additions and 121 deletions

8
.idea/.gitignore vendored
View File

@ -1,8 +0,0 @@
# 默认忽略的文件
/shelf/
/workspace.xml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

View File

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/venv" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@ -1,56 +0,0 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="DuplicatedCode" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
<inspection_tool class="NonAsciiCharacters" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoredPackages">
<value>
<list size="9">
<item index="0" class="java.lang.String" itemvalue="pandas" />
<item index="1" class="java.lang.String" itemvalue="reportlab" />
<item index="2" class="java.lang.String" itemvalue="gevent" />
<item index="3" class="java.lang.String" itemvalue="numpy" />
<item index="4" class="java.lang.String" itemvalue="Django" />
<item index="5" class="java.lang.String" itemvalue="tzdata" />
<item index="6" class="java.lang.String" itemvalue="asgiref" />
<item index="7" class="java.lang.String" itemvalue="python-multipart" />
<item index="8" class="java.lang.String" itemvalue="sqlparse" />
</list>
</value>
</option>
</inspection_tool>
<inspection_tool class="PyPep8Inspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
<option name="ignoredErrors">
<list>
<option value="E501" />
<option value="E127" />
<option value="W605" />
</list>
</option>
</inspection_tool>
<inspection_tool class="PyPep8NamingInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
<option name="ignoredErrors">
<list>
<option value="N806" />
</list>
</option>
</inspection_tool>
<inspection_tool class="PyProtectedMemberInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
<inspection_tool class="PyUnresolvedReferencesInspection" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoredIdentifiers">
<list>
<option value="str.*" />
<option value="pythoncom.*" />
</list>
</option>
</inspection_tool>
<inspection_tool class="SpellCheckingInspection" enabled="false" level="TYPO" enabled_by_default="false">
<option name="processCode" value="true" />
<option name="processLiterals" value="true" />
<option name="processComments" value="true" />
</inspection_tool>
<inspection_tool class="SqlDialectInspection" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="SqlNoDataSourceInspection" enabled="false" level="WARNING" enabled_by_default="false" />
</profile>
</component>

View File

@ -1,6 +0,0 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>

View File

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11 (CommercialCompany)" project-jdk-type="Python SDK" />
</project>

View File

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/CommercialCompany.iml" filepath="$PROJECT_DIR$/.idea/CommercialCompany.iml" />
</modules>
</component>
</project>

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View File

@ -1,23 +0,0 @@
import json
import requests
TOKEN = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2luZm8iOnsidWlkIjoiVUlEMDAwMSIsImVtYWlsIjoiZmVjcmliZEBmZWNyLmNvbS5jbiIsIm5hbWUiOiJyb290Iiwicm9sZSI6Ilx1N2JhMVx1NzQwNlx1NTQ1OCIsImRlcGFydG1lbnQiOiJcdTY1NzBcdTViNTdcdTUzMTZcdTkwZTgiLCJyb2xlX2lkIjoiUk9MRTAxIiwiZGVwYXJ0bWVudF9pZCI6IkQwMDEifSwiZXhwIjoxNjgzNDc2OTA4fQ.8girdw3n0WDktRuK0aSgGor10eb11nIFvRJqUtPZum4"
HEADERS = {"token": TOKEN}
def request_to_get(url):
res = requests.get(url=url, headers=HEADERS)
if res.status_code == 200:
return json.loads(res.text)
else:
return False
def request_to_post(url, data):
res = requests.post(url=url, headers=HEADERS, data=json.dumps(data))
if res.status_code == 200:
return json.loads(res.text)
else:
return False

Binary file not shown.