文档
测试

自定义字段新增/修改

POST
http://127.0.0.1:8900/api/controller/metaField/merge

请参数

参数名
类型
描述
必填
fieldId
int
示例:自定义字段id 选填
必填
entityId
int
示例:实体id 必填
必填
jfieldName
string
示例:实体字段名称 必填
必填
fieldName
string
示例:表字段名称 必填
必填
jfieldType
string
示例:实体字段类型 必填
必填
fieldType
string
示例:表字段类型 必填
必填
fieldDesc
string
示例:字段描述(中文名) 必填
必填
fieldExample
string
示例:字段示例 必填
必填
fieldComment
string
示例:字段备注 必填
必填
fieldLength
int
示例:表字段长度 必填
必填
fieldScale
int
示例:表字段精度
必填
primaryKey
int
示例:是否主键 1是 2否 必填
必填
autoIncrement
int
示例:是否自动递增 1是 2否 必填
必填
notNull
int
示例:是否不能为空 1是 2否 必填
必填
defaultValue
string
示例:默认值
必填
foreignKey
int
示例:是否外键 1是 2否 必填
必填
editType
int
示例:字段编辑方式:1:文本框、2:下拉框,3:选择日期,4:单选,5:多选,6:文本域 必填
必填
dicType
string
示例:字典类型
必填
insert
int
示例:是否手动插入字段 1是 2否 必填
必填
update
int
示例:是否手动更新字段 1是 2否 必填
必填
list
int
示例:是否列表展示字段 1是 2否 必填
必填
columnWidth
int
示例:列宽
必填
listSort
int
示例:是否支持排序 1是 2否 必填
必填
show
int
示例:是否详情展示字段 1是 2否 必填
必填
query
int
示例:是否查询字段 1是 2否 必填
必填
queryType
int
示例:查询方式
必填
orderNo
int
示例:排序号
必填
deleted
int
示例:是否删除 1是 2否 必填
必填
version
int
示例:乐观锁版本号
必填
regular
String
正则表达式
必填
hint
String
正则不通过提示
必填
multipleChoice
int
下拉框,是否多选(1.是,2.否)
必填
dropDownAry
ary
下拉选项数组 选填
必填

响应参数

参数名
类型
描述
必填
res
string
示例:1
必填
msg
string
示例:更新成功!
必填
data
object
数据字典
必填
fieldId
int
示例:自定义字段id
必填

说明 / 示例

entityId:10 jfieldName:testB fieldName:test_B jfieldType:String fieldType:varchar fieldDesc:测试testB fieldExample:1 fieldComment:测试testC fieldLength:50 fieldScale: primaryKey:2 autoIncrement:2 notNull:1 defaultValue: foreignKey:2 foreignEntityId: foreignFieldId: editType:1 dicType:2 insert:2 update:2 list:2 columnWidth: listSort:2 show:2 query:2 queryType: orderNo:1 specialField: deleted:0 version:0 value: regular: hint: multipleChoice:1 fieldId:78