Skip to content

从通话黑白名单中移除电话号码 ​

方法名 ​

removeMdmNumberList

用法 ​

  • 用法如下:
    js
    module.removeMdmNumberList({
      params: {
        numbers: [],
        blockMode:0,
        isOutgoing:false,
        removeAll:false
      },
      complete: (res) => {
        console.log(res)
      }
    })
    js
    module.removeMdmNumberList({
      params: {
        numbers: [],
        blockMode:0,
        isOutgoing:false,
        removeAll:false
      },
      complete: (res : LevenResult) => {
        console.log(res)
      }
    } as LevenOptions)
  • 参数说明
    参数名参数类型是否必填默认值参数描述
    paramsObject是无接口请求参数
    params.numbersstring[]是无需要设置的电话号码,传入全数字号码
    params.blockModeInteger是无号码匹配的可选模式:
    0:全匹配,黑白名单均适用
    1:匹配开头,黑白名单均适用
    2:拦截所有号码,黑名单适用
    3:允许所有号码,白名单适用
    params.isOutgoingBoolean是无表示设置去电名单或来电名单。取值为“true”移除去电名单内容,取值为“false”移除来电名单内容
    params.removeAllBoolean是无移除所有名单
    successFunction否无执行成功的函数
    failFunction否无执行失败的函数
    completeFunction否无执行完成的函数,不管成功还是失败都会执行

回调 ​

  • 示例
    json
    {
        "data": {
          "result": true
        },
        "message": "",
        "code": 0
    }
  • 回调说明:
    参数名参数类型参数描述
    messageString消息提示
    dataObject数据对象
    data.resultBooleantrue:配置成功,false:配置失败
    codeInteger返回类型,0.成功,其他:失败