配网接口请求

更新时间:2026-01-16 07:18:14下载pdf

使用方式

thingSmartActivator.getDefaultDeviceListData()

数据展示

在公版 App 中,本数据展示于配网首页的手动配网入口列表中。

提供能力

获取一级品类/默认品类

/**
 * 默认手动列表数据集合
 * @returns
 */
function getDefaultDeviceListData():Promise<LevelResultBean>

/**
 * 获取一级品类数据
 * @returns
 */
function getDeviceLevelFirstData():Promise<LevelFirstBean[]>

获取二级品类

/**
 * 二级品类列表获取
 * @param levelCode 
 * @param type  
 * @returns
 */
function getDeviceLevelSecondData(levelCode: string, type: number):Promise<LevelSecondBean[]>

参数说明

Key 释义
levelCode 品类 Code(数据来源于一级品类接口):levelFirstList[0].level1Code
type 品类类别(数据来源于一级品类接口):levelFirstList[0].type

获取三级品类

/**
 * 三级品类详情
 * @param bizType
 * @param bizValue
 * @returns
 */
function getDeviceLevelThirdDetailData(bizType: number, bizValue: string):Promise<LevelThirdBean>

参数说明

Key 释义
bizType Category 传入 0,PID 传入1
bizValue 数据信息(数据来源于一级品类接口) levelSecondList[0].level3Items[0].category 或者 this.levelSecondList[0].level3Items[0].pid