Commit c68a6346 authored by 陈涛's avatar 陈涛

提交asset_service

parent 99929465
from motor.core import AgnosticCollection
from model.asset import NormalAsset
async def init_fund_asset(fund_id: str, asset_collect: AgnosticCollection):
fund_asset = NormalAsset(fund_id=fund_id)
asset_collect.insert_one(**fund_asset.dict())
return fund_asset
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