获取表单字段

请求地址: 

https://open.dlszywz.cn/open/form/getFormField


请求方式:

  • GET

参数:


参数名必选类型说明
tokenstring授权令牌【通过header参数传值】
form_idstring表单ID



返回示例

{
"code":200,
"data":{
    "list":[
            {
            "id":96760,
            "name":"宾客姓名",
            "default_val":"",
            "type":1,
            "is_must":1,
            "is_only_read":0,
            "notice_val":"",
            "order_sort":6
            },
            {"id":96761,
            "name":"联系电话",
            "default_val":"",
            "type":1,
            "is_must":1,
            "is_only_read":0,
            "notice_val":"",
            "order_sort":5
            },
            {"id":96766,
            "name":"入住日期",
            "default_val":"",
            "type":8,
            "is_must":1,
            "is_only_read":0,
            "notice_val":"",
            "order_sort":4
            },
            {
            "id":96767,
            "name":"退房日期",
            "default_val":"",
            "type":8,
            "is_must":1,
            "is_only_read":0,
            "notice_val":"",
            "order_sort":3
            },
            {"id":96769,
            "name":"预订房型",
            "default_val":"标准单人房#豪华大床房#标准双人房",
            "type":4,
            "is_must":0,
            "is_only_read":0,
            "notice_val":"",
            "order_sort":2
            },
            {"id":331947,
            "name":"个人相片",
            "default_val":"",
            "type":7,"
            is_must":0,
            "is_only_read":0,
            "notice_val":"点击选择图片",
            "order_sort":0
            }
        ]
    },
    "msg":"success code: 200",
    "param":{}
}


返回参数说明

参数名类型说明
idint字段ID
namevarchar字段名称
default_valvarchar默认值(选项类以#分隔)
typeint字段类型(1、单行文本 2、多行文本 4、下拉列表 5、复选 6、单选 7、文件上传 8、日期 9、省 11、省+市 12、省+市+区 13、标题项)
is_mustint是否必填
notice_valvarchar提示语
order_sortint排序越大越靠前


备注

  • 更多返回错误代码请看首页的错误代码描述