adio_card.py 465 Bytes
Newer Older
lcn's avatar
lcn committed
1 2 3 4 5 6 7 8 9 10 11
from pot_libs.sanic_api import summary
from unify_api.modules.adio.components.adio_card_cps import AcResp
from unify_api.modules.adio.service.adio_card import post_adio_card_service
from unify_api.modules.common.components.common_cps import AcReq


@summary("安全监测-卡片信息-level")
async def post_adio_card(req, body: AcReq) -> AcResp:
    location_list = body.location_list
    cid = body.cid
    return await post_adio_card_service(location_list, cid)