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)
