文档
测试

获取问卷题目列表

POST
http://survey.com/mobile/api/MobileSatisfic/getSubjectList

请求头

参数名
类型
描述
必填
Authorization
cjBudkM5SDJQc1BRSHVDQ0J0VWN5b2syUnZtdFhiZjgzPWxIOTY0Y0EwblhQeGpsWGN2OEJ2aXVHdTBieTRIbkw9VFZXY0MwRnd5bkk9STBHNllHZQ%3D%3D
必填

请求参数

参数名
类型
描述
必填
survey_id
问卷id
必填

响应参数

参数名
类型
描述
必填
id
题目id
必填
type
类型 1单选 2多选 3填空 4量表 5文件上传
必填
mode
【单选】呈现方式 1单选 2下拉单选
必填
not_null
是否必答 1是 2否
必填
show_logic_type
【关联】关联多题显示条件 1且 2或
必填
related_more
【关联】是否关联多题 1是 2否
必填
jump_type
【跳转】跳转类型 1按选项跳 2无条件跳转
必填
options
list
选项列表
必填
id
选项id
必填
title
标题
必填
score
分值
必填
file_url
图片路径
必填
related
list
关联设置
必填
refer_subject_id
关联的题目id
必填
option_ids
关联的选项
必填
select_type
【多选】选择类型 1选择 2没有选择
必填
select_num
【多选】出现条件 1.选择一个 2全部选项
必填
jump
list
跳题设置
必填
jump_subject_id
跳转的题目id
必填
jump_type
跳转类型 1.跳到末尾结束答卷 2跳到指定题目
必填

说明 / 示例

{ "status": 0, "msg": "操作成功", "datas": [ { "id": "164", "survey_id": "156", "type": "1", "title": "你的年龄?", "mode": "1", "not_null": "1", "order": "1", "show_logic_type": null, "related_more": null, "jump_type": "2", "create_by_uuid": "628133f1525c618", "create_by_account": "xingzhi", "create_by_name": "管理员", "create_date": "2022-11-11 10:43:59", "edit_by_uuid": "628133f1525c618", "edit_by_account": "xingzhi", "edit_by_name": "管理员", "edit_date": "2022-11-15 09:57:32", "is_delete": "0", "delete_by_uuid": null, "delete_date": null, "company_uuid": "0", "company_name": null, "options": [ { "id": "163", "title": "1.10-30", "subject_id": "164", "score": null, "file_id": "1372", "file_url": "/upload/file/202207/24ddadc3d2fafc821efe760a8e2040f6.jpg" }, { "id": "164", "title": "2.30-40", "subject_id": "164", "score": null, "file_id": null, "file_url": null } ], "related": [], "jump": [ { "id": "162", "jump_type": "2", "survey_id": "156", "option_id": null, "subject_id": "164", "jump_subject_id": "166", "create_by_uuid": "628133f1525c618", "create_by_account": "xingzhi", "create_by_name": "管理员", "create_date": "2022-11-15 09:57:32", "edit_by_uuid": "628133f1525c618", "edit_by_account": "xingzhi", "edit_by_name": "管理员", "edit_date": "2022-11-15 09:57:33", "is_delete": "0", "delete_by_uuid": null, "delete_date": null, "company_uuid": null, "company_name": null } ] }, { "id": "165", "survey_id": "156", "type": "1", "title": "你的性别?", "mode": "1", "not_null": "1", "order": "2", "show_logic_type": null, "related_more": null, "jump_type": null, "create_by_uuid": "628133f1525c618", "create_by_account": "xingzhi", "create_by_name": "管理员", "create_date": "2022-11-11 10:44:17", "edit_by_uuid": "628133f1525c618", "edit_by_account": "xingzhi", "edit_by_name": "管理员", "edit_date": "2022-11-14 17:08:34", "is_delete": "0", "delete_by_uuid": null, "delete_date": null, "company_uuid": "0", "company_name": null, "options": [ { "id": "165", "title": "1.男", "subject_id": "165", "score": null, "file_id": null, "file_url": null }, { "id": "166", "title": "2.女", "subject_id": "165", "score": null, "file_id": null, "file_url": null } ], "related": [], "jump": [] }, { "id": "166", "survey_id": "156", "type": "1", "title": "你的职业?", "mode": "1", "not_null": "1", "order": "3", "show_logic_type": "1", "related_more": "1", "jump_type": null, "create_by_uuid": "628133f1525c618", "create_by_account": "xingzhi", "create_by_name": "管理员", "create_date": "2022-11-11 13:33:47", "edit_by_uuid": "628133f1525c618", "edit_by_account": "xingzhi", "edit_by_name": "管理员", "edit_date": "2022-11-15 15:39:18", "is_delete": "0", "delete_by_uuid": null, "delete_date": null, "company_uuid": "0", "company_name": null, "options": [ { "id": "167", "title": "1.学生", "subject_id": "166", "score": null, "file_id": null, "file_url": null }, { "id": "168", "title": "2.老师", "subject_id": "166", "score": null, "file_id": null, "file_url": null } ], "related": [ { "id": "158", "survey_id": "156", "refer_subject_id": "164", "refer_subject_type": "1", "subject_id": "166", "option_ids": [ "163" ], "select_type": null, "select_num": null, "create_by_uuid": "628133f1525c618", "create_by_account": "xingzhi", "create_by_name": "管理员", "create_date": "2022-11-15 15:39:24", "edit_by_uuid": "628133f1525c618", "edit_by_account": "xingzhi", "edit_by_name": "管理员", "edit_date": "2022-11-15 15:39:25", "is_delete": "0", "delete_by_uuid": null, "delete_date": null, "company_uuid": null, "company_name": null } ], "jump": [] } ] }