Skip to content

参数管理

1. 获取参数列表(getParameterListByKey)

typescript
//! 注意,TS版本4^
import type { GetParameterListByKeyReq, GetParameterListByKeyRes } from '@homing/web'

try {
    const data: GetParameterListByKeyRes[] = await client.getParameterListByKey({
        parameterKeys: 'PARAM_KEY1,PARAM_KEY2',
        state: 1
    } as GetParameterListByKeyReq);
    console.log('调用成功', data);
} catch (error: any) {
    console.log(error, '调用失败' + error?.message);
}

参数说明

参数名类型必填说明备注/枚举值
parameterKeysstring参数键返回当前租户参数(如未配置则返回平台)多个编号以英文逗号间隔
statenumber状态0-禁用,1-启用

响应说明

字段名类型说明
parameterIdnumber参数ID
parameterNamestring参数名称
parameterKeystring参数键
parameterValuestring参数值
parameterTypestring参数类型
descriptionstring描述
categorystring分组
statenumber状态
readonlynumber内置是否内置
scopestring配置权限
tenantCodestring授权范围
createdBystring创建人
createdTimestring创建时间
updatedBystring更新人
updatedTimestring更新时间
sortValuenumber排序

基于 MIT 许可证发布