dicts.{dictId}
获取指定的数据字典
- 请求路由:
dicts.{dictId}- 交互模型:
Request Response- 访问限制: 无
请求
RSocket.rr({
"route" : "dicts.gender"
});
请求参数
| 名称 | 类型 | 必须 | 说明 |
|---|---|---|---|
dictId | String | 是 |
返回
指定标识的字典
{
"tenantId" : "meten",
"dictId" : "gender",
"name" : "性别",
"mode" : 1,
"description" : "1:男,2:女,3:未知",
"autoId" : false,
"ts" : "2023-04-18T00:13:39.649Z"
}
返回属性
| 名称 | 类型 | 说明 |
|---|---|---|
dictId | String | 字典标识 |
name | String | 字典名称 |
mode | Number | 字典类型, 1 - 键值对; 2 - 树形; |
description | String | 说明 |
autoId | Boolean | 是否自动生成id. true时,会自动生成数字id |
extraProps | Object | 扩展属性 |
tenantId | String | 租户ID |