Commit 99929465 authored by 陈涛's avatar 陈涛

提交mongo集合

parent c7b788dd
......@@ -28,3 +28,11 @@ def get_schedular(request: Request) -> AsyncIOScheduler:
# 获取特定的mongodb集合
def get_fund_collect(mongodb_manger: AioMongodbManager = Depends(get_mongodb_manager)) -> AgnosticCollection:
return mongodb_manger.get_client(name='pyfund', db='pyfund', collect='fund')
def get_asset_collect(mongodb_manger: AioMongodbManager = Depends(get_mongodb_manager)) -> AgnosticCollection:
return mongodb_manger.get_client(name='pyfund', db='pyfund', collect='asset')
def get_bill_collect(mongodb_manger: AioMongodbManager = Depends(get_mongodb_manager)) -> AgnosticCollection:
return mongodb_manger.get_client(name='pyfund', db='pyfund', collect='bill')
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment