# 大华API接口
dhapis = {
    "token_login": {
        "url": "/evo-apigw/evo-oauth/oauth/token",
        "method": "post"
    },
    "dept_tree": {
        "url": "/evo-apigw/evo-brm/1.2.0/department/tree",
        "method": "post"
    },
    "dept_create": {
        "url": "/evo-apigw/evo-brm/1.0.0/department/add",
        "method": "post"
    },
    "dept_update": {
        "url": "/evo-apigw/evo-brm/1.0.0/department/update",
        "method": "put"
    },
    "person_gen_id": {
        "url": "/evo-apigw/evo-brm/1.0.0/person/generate-id",
        "method": "get"
    },
    "person_add": {
        "url": "/evo-apigw/evo-brm/1.2.0/person/subsystem/add",
        "method": "post"
    },
    "person_update": {
        "url": "/evo-apigw/evo-brm/1.2.0/person/subsystem/update",
        "method": "put"
    },
    "person_img_upload": {
        "url": "/evo-apigw/evo-brm/1.2.0/person/upload/img",
        "method": "post"
    },
    "person_detail": {
        "url": "/evo-apigw/evo-brm/1.0.0/person/subsystem/{id}",
        "method": "get"
    },
    "device_list": {
        "url": "/evo-apigw/evo-brm/1.2.0/device/subsystem/page",
        "method": "get"
    },
    "device_detail": {
        "url": "/evo-apigw/evo-brm/1.0.0/device/{deviceCode}",
        "method": "get"
    },
    "card_detail": {
        "url": "/evo-apigw/evo-brm/1.0.0/card/{cardNumber}",
        "method": "get"
    },
    "channel_list": {
        "url": "/evo-apigw/evo-brm/1.2.0/device/channel/subsystem/page",
        "method": "post"
    },
    "card_add": {
        "url": "/evo-apigw/evo-brm/1.2.0/card/add",
        "method": "post"
    },
    "card_update": {
        "url": "/evo-apigw/evo-brm/1.2.0/card/update",
        "method": "put"
    },
    "card_gen_id": {
        "url": "/evo-apigw/evo-brm/1.0.0/card/generate-id",
        "method": "get"
    },
    "card_door_authority": {
        "url": "/evo-apigw/evo-accesscontrol/1.0.0/card/accessControl/doorAuthority",
        "method": "post"
    },
    "card_door_authority_delete": {
        "url": "/evo-apigw/evo-accesscontrol/1.0.0/card/accessControl/doorAuthority/removeAuthorizeAllCardNumberByChannelCode",
        "method": "post",
    },
    "card_door_authority_list": {
        "url": "/evo-apigw/evo-accesscontrol/1.0.0/card/accessControl/doorAuthority/ChannelWithAuthorizeStatus/bycondition/combined",
        "method": "post"
    },
    "mq_subscribe": {
        "url": "/evo-apigw/evo-event/1.0.0/subscribe/mqinfo",
        "method": "post"
    },
    "mq_unsubscribe": {
        "url": "/evo-apigw/evo-event/1.0.0/subscribe/mqinfo",
        "method": "delete"
    },
    "face_bind": {
        "url": "/evo-apigw/evo-face/deptGroup/sync/bindPerson",
        "method": "post"
    },
    "dev_tree": {
        "url": "/evo-apigw/evo-face/tree/getDevChnIdsAndName",
        "method": "get"
    },
    "dev_page": {
        "url": "/evo-apigw/evo-brm/1.2.0/device/subsystem/page",
        "method": "post"
    },
    "face_group_update": {
        "url": "/evo-apigw/evo-face/groupInfo/update",
        "method": "post"
    },
    "face_group_info": {
        "url": "/evo-apigw/evo-face/groupInfo/view/{id}",
        "method": "get"
    },
    "video_realtime": {
        "url": "/evo-apigw/admin/API/video/stream/realtime",
        "method": "post"
    },
    "video_rtsp": {
        "url": "/evo-apigw/admin/API/MTS/Video/StartVideo",
        "method": "post"
    },
    "alarm_detail": {
        "url": "/evo-apigw/evo-event/1.2.0/alarm-record/detail?alarmCode={alarmCode}&dbType={dbType}&alarmDate={alarmDate}",
        "method": "get"
    },
    "swipe_list": {
        "url": "/evo-apigw/evo-accesscontrol/1.0.0/card/accessControl/swingCardRecord/bycondition/combined",
        "method": "post"
    },
    "swipe_list_count": {
        "url": "/evo-apigw/evo-accesscontrol/1.0.0/card/accessControl/swingCardRecord/bycondition/combinedCount",
        "method": "post"
    },
    "dev_snap": {
        "url": "/evo-apigw/admin/API/EVO/invoke/DMS",
        "method": "post"
    },
    "open_door_stay": {
        "url": "/evo-apigw/evo-accesscontrol/1.2.0/card/accessControl/channelControl/stayOpen",
        "method": "post"
    },
    "close_door": {
        "url": "/evo-apigw/evo-accesscontrol/1.2.0/card/accessControl/channelControl/closeDoor",
        "method": "post"
    },
    "oauth_key": {
        "url": "/evo-apigw/evo-oauth/1.0.0/oauth/public-key",
        "method": "get"
    },
    "oauth_token": {
        "url": "/evo-apigw/evo-oauth/1.0.0/oauth/extend/token",
        "method": "post"
    },
    "face_search": {
        "url": "/evo-apigw/evo-face/faceSearch/third/faceSearchSync",
        "method": "post"
    },
    "face_deploy": {
        "url": "/evo-apigw/evo-face/channelGroup/add/batch",
        "method": "post"
    }
}

# 寻息API接口
xxapis = {
    "token_login": {
        "url": "/getAccessTokenV2",
        "method": "post"
    },
    "blg_list": {
        "url": "/api/devicesV3/blgs",
        "method": "post"
    },
    "ibeacon_list": {
        "url": "/api/devicesV3/ibeacons",
        "method": "post"
    },
    "blt_list": {
        "url": "/api/devicesV3/blts",
        "method": "post"
    },
    "rail_create": {
        "url": "/api/railsV2/add",
        "method": "post"
    },
    "rail_update": {
        "url": "/api/railsV2/edit",
        "method": "post"
    },
    "rail_ibeacon_list": {
        "url": "/WebLocate/locateByRail",
        "method": "post"
    },
    "blt_adds": {
        "url": "/api/v4/device/blts/add",
        "method": "post"
    },
    "blt_info": {
        "url": "/api/devicesV3/bltInfoByMac",
        "method": "post"
    },
    "subscribe": {
        "url": "/Subscribe",
        "method": "post"
    },
    "subscribe_list": {
        "url": "/SubscribeList",
        "method": "post"
    },
    "unsubscribe": {
        "url": "/Unsubscribe",
        "method": "post"
    }
}


# 音响API接口
spapis = {
    "user_login": {
        "url": "/api/users/login",
        "method": "post"
    },
    "device_list": {
        "url": "/api/devices",
        "method": "get"
    },
    "send_to_device": {
        "url": "/api/sendtodevice",
        "method": "post"
    }
}
