跳到主要内容

dicts.create

创建数据字典

  • 请求路由: dicts.create
  • 交互模型: Request Response
  • 访问限制: 无

请求​

RSocket.rr({
"route" : "dicts.create",
"data" : {
"dictId" : "gender",
"name" : "性别",
"mode" : 1,
"description" : "1:男,2:女,3:未知"
}
});

请求参数​

名称类型必须说明
dictIdString是字典标识
nameString是字典名称
modeNumber是字典类型, 1 - 键值对; 2 - 树形;
descriptionString否说明
autoIdBoolean否是否自动生成id.
true时,会自动生成数字id
extraPropsObject否扩展属性

返回​

已创建的字典

{
"tenantId" : "meten",
"dictId" : "gender",
"name" : "性别",
"mode" : 1,
"description" : "1:男,2:女,0:未知",
"autoId" : false,
"ts" : "2023-04-07T07:15:52.972Z"
}

返回属性​

名称类型说明
dictIdString字典标识
nameString字典名称
modeNumber字典类型, 1 - 键值对; 2 - 树形;
descriptionString说明
autoIdBoolean是否自动生成id.
true时,会自动生成数字id
extraPropsObject扩展属性
tenantIdString租户ID

下载结果模型定义