触屏开关(TouchSwitch)

# 触屏控制 tripperUse

● 接口说明
让配置页面设置好的触屏生效或不生效,生效时按设置好的方案生效
● Typescript 类型参考
type Status = Boolean

type ReqBody = {}

type ResBody = {
    resultCode: number, resultMessage: string, data: Status
}

zwexplorer.TouchSwitch.tripperUse(
    data: ReqBody, 
    callback?: (res: ResBody)=>void
): Promise<ResBody>
● 返回数据
参数 类型 必然存在 说明
res.resultCode Number 状态码,0 为正常,其它为异常 [状态码参考]
res.data Boolean res.resultCode===0 时,返回触屏生效状态,true 为生效中,false 为不生效
res.resultMessage String 接口消息
● 接口示例
zwexplorer.TouchSwitch.tripperUse({}, (res) => {});