# Function: getCustomConfTableByName
▸ getCustomConfTableByName‹RecordData›(params
: GetCustomConfTableByNameParams‹RecordData›): Promise‹CustomConfTable‹RecordData› | undefined›
根据给定的名称 获取自定义配置表
example
import { utilsSystem } from '@timi/mogs-sdk';
//...
const customConfTable = await utilsSystem.getCustomConfTableByName({
name: 'someTableName'
});
1
2
3
4
5
6
2
3
4
5
6
throws
{@link MogsError}
# Type parameters:
▪ RecordData: Readonly‹Record‹string, unknown››
自定义配置表中,每行的数据格式;若不提供,则默认使用只读的字典类型。
# 参数:
属性 | 类型 |
---|---|
params | GetCustomConfTableByNameParams‹RecordData› |
GetCustomConfTableByNameParams
属性 | 类型 | 描述 |
---|---|---|
name | string | 要获取的自定义配置表表名 |
complete? | Method | 操作完成时(成功或失败),均会调用该回调函数 |
fail? | Method | 操作失败时,调用该回调函数 |
success? | Method | 操作成功时,调用该回调函数 |
# 返回值:
Promise‹CustomConfTable‹RecordData› | undefined›
查找到的自定义配置表;若未找到,则返回 undefined
。