tablemeta接口

接口说明

用于获取对应表的表结构信息(表头)

权限说明

使用 token 访问,并且只能操作自己创建的数据填报表单

基本信息

属性 请求路径
API /api/dash/survey/datasource/tablemeta
请求方法 POST

请求参数

字段名称 参数类型 参数说明
surveyId Number 数据填报表单 id
参数调用例子
{
    "surveyId": 95
}
成功返回
{
    code: 200,
    fields: [
            {
                "name": "2cba0707-c0ab-d3cf-df48-c1f39be48428",
                "comment": "数3344",
                "type": "Decimal"
            },
            {
                "name": "提交人",
                "type": "String",
                "comment": "提交人"
            },
            {
                "name": "提交时间",
                "type": "DateTime",
                "comment": "提交时间"
            },
            {
                "name": "id",
                "type": "Whole",
                "comment": "id",
                "primaryKey": true
            }
        ]
}