Browse Source

news

master
SunFree 10 months ago
parent
commit
1545b61292
  1. BIN
      __pycache__/dependencies.cpython-310.pyc
  2. BIN
      __pycache__/main.cpython-310.pyc
  3. BIN
      internal/__pycache__/__init__.cpython-310.pyc
  4. BIN
      internal/__pycache__/database.cpython-310.pyc
  5. BIN
      internal/__pycache__/models.cpython-310.pyc
  6. 1
      internal/database.py
  7. BIN
      routers/__pycache__/__init__.cpython-310.pyc
  8. BIN
      routers/__pycache__/typemanage.cpython-310.pyc
  9. BIN
      routers/__pycache__/usermanage.cpython-310.pyc
  10. 2
      routers/typemanage.py

BIN
__pycache__/dependencies.cpython-310.pyc

BIN
__pycache__/main.cpython-310.pyc

BIN
internal/__pycache__/__init__.cpython-310.pyc

BIN
internal/__pycache__/database.cpython-310.pyc

BIN
internal/__pycache__/models.cpython-310.pyc

1
internal/database.py

@ -1,5 +1,4 @@
import pymysql
DB_CONFIG = {
"host": "111.229.38.129",
"user": "root",

BIN
routers/__pycache__/__init__.cpython-310.pyc

BIN
routers/__pycache__/typemanage.cpython-310.pyc

BIN
routers/__pycache__/usermanage.cpython-310.pyc

2
routers/typemanage.py

@ -6,7 +6,7 @@ router=APIRouter(
)
@router.get("/typelist",response_model=list[TypeList])
def read_type_all(_:User=Depends(get_current_active_user)):
async def read_type_all(_:User=Depends(get_current_active_user)):
select_query="SELECT blogid,typename,descr FROM types;"
type_all=execute_query(select_query,fetchall=True)
return type_all
Loading…
Cancel
Save