字段与数据类型对照表
字段名称 | 字段类型 | 数据类型 | 数据样例 | 备注 |
单行文本 | text | string | “张三” | |
多行文本 | textarea | string | “webapi” | |
数字 | number | Number | 7 | |
日期时间 | datetime | string | “2019-01-01 11:10:11” | |
单选按钮组 | radiogroup | string | “一年级” | |
复选框组 | checkboxgroup | Array | [“选项1”,“选项2”] | |
下拉框 | combo | string | “女” | |
下拉复选框 | combocheck | Array | [“选项1”,“选项2”] | |
地址 | address | json | {province: "湖南省", city: "长沙市", district: "芙蓉区", detail: "袁家岭"} | |
定位 | location | json | {province: "湖南省", city: "长沙市", district: "芙蓉区", detail: "袁家岭", lnglatXY: [113.002864, 28.199614]} | lnglatXY表示[经度, 纬度] |
图片 | image | Array | [ { "name": "img.png", "size": 3762, "mime": "image/png", "url": "https://www.xxxxx.com/FvXfzy2nqPP12YP5cTeH6bUX4Vp2" }, { "name": "img1.png", "size": 3762, "mime": "image/png", "url": "https://www.xxxxx.com/FvXfzy2nqPP12YP5cTeH6bUX4Vp2" } ] | 数据中包含的url为图片链接 |
附件 | upload | Array | [ { "name": "接口.pdf", "size": 37602, "mime": "application/pdf", "url": "https://www.xxxxx.com/FvXfzy2nqPP12YP5cTeH6bUVp2" }, { "name": "轻道云.pdf", "size": 37602, "mime": "application/pdf", "url": "https://www.xxxxx.com/FvXfzy2nqPP12YP5cTeH6X4Vp2" } ] | 数据中包含的url为附件链接 |
子表单 | subform | Array | ||
关联数据 | linkdata | json | {“id”:“5b237548b22ab14884086cc0”,“key”:“接口”} | id表示所关联数据的ID;key表示主键字段的值 |
手写签名 | signature | json | {“name”:“signature_1238921857.png”,“size”:1024,“mime”:“image/png”,“url”:“https://www.xxxxx.com/FvXfzy2nqPP12YP5cTeH6X4p2”} | 数据中包含的url为手写签名的图片链接 |
成员单选 | user | json | { "name": "小云", "_id": "55cb7d57f7a190e382857189" } | 成员信息中_id表示轻道云中的用户id;name表示用户昵称 |
成员多选 | usergroup | Array | [ { "name": "小云", "_id": "55cb7d57f7a190e382857189" }, { "name": "小宝", "_id": "575ffc5e885898ce0d2af791" } ] | |
部门单选 | dept | json | { "name": "销售部", "_id": "59daab24c91306a9239b7ca0" } | |
部门多选 | deptgroup | Array | [ { "name": "销售部", "_id": "59daab24c91306a9239b7ca0" }, { "name": "人事部", "_id": "5014a86b688ff0ec55a946d9" } ] |