文档
测试

填写详情统计

POST
http://localhost:20191/form/form_main_write_pool

请求参数

参数名
类型
描述
必填
limit
int
示例:10
必填
page
int
示例:1
必填
soso
object
数据字典
必填
order
string
示例:id
必填
id
string
填写表单ID
必填
start_date
string
开始时间
必填
end_date
string
结束时间
必填

响应参数

参数名
类型
描述
必填
code
int
示例:200
必填
msg
string
示例:
必填
data
array
数据列表
必填
id
string
题目ID
必填
form_main_db_id
string
填写表单ID
必填
title
string
标题
必填
order
int
示例:1
必填
type
string
单行文本text,多行文本textarea,input 单文件
必填
required
boolean
是否必填
必填
context
object
字典
必填
CreatedAt
string
示例:2021-05-24 22:08:14
必填
UpdatedAt
string
示例:2021-05-24 22:08:14
必填
DeletedAt
object
示例:null
必填
sta
int
示例:1
必填
write_pool
array
填写的数据 表格显示
必填
form_main_write_id
string
填写人表单的ID
必填
form_main_fildsdetails_id
string
题目ID
必填
user_id
string
填写人用户的ID
必填
value
string
填写的值
必填
pid
序号
必填
count
int
示例:3
必填

说明 / 示例

# 关键字段write_pool 根据不同的type题型有所不一样 ## "text","textarea","input" value里面是值 ```json "write_pool": [ { "form_main_write_id": "577765855929049088", "form_main_fildsdetails_id": "581483604056481792", "user_id": "1", "value": "我是一个文本框" }, { "form_main_write_id": "577780957499629568", "form_main_fildsdetails_id": "581483604056481792", "user_id": "2", "value": "我是一个文本框2" }, { "form_main_write_id": "581494135471480832", "form_main_fildsdetails_id": "581483604056481792", "user_id": "2", "value": "我是一个文本框2" } ] ``` ## inputs value里面是数组因为有可能有多个文件上传 ```json "write_pool": [ { "form_main_write_id": "577765855979380736", "form_main_fildsdetails_id": "581483604111007744", "user_id": "1", "value": [ "qwdqq.jpg", "dawdwa.png" ] }, { "form_main_write_id": "577780957562544128", "form_main_fildsdetails_id": "581483604111007744", "user_id": "2", "value": [ "343.jpg", "34543.png" ] }, { "form_main_write_id": "581494135546978304", "form_main_fildsdetails_id": "581483604111007744", "user_id": "2", "value": [ "343.jpg", "34543.png" ] } ] ``` ## radio label是选择的答案选项 title是值 count是总共有多少人选择了这个 scale是选择率 ```json "write_pool": [ { "label": 3, "title": "单选框22", "count": 2, "scale": 0 }, { "label": 1, "title": "单选框22", "count": 1, "scale": 0 } ] ``` ## images 多图片 value 存放图片 ```json "write_pool": [ { "form_main_write_id": "594171915426340864", "form_main_fildsdetails_id": "594104669853196288", "user_id": "996", "value": [ "9734.jpg", "4543.png" ], "pid": 1 }, { "form_main_write_id": "594106733245243392", "form_main_fildsdetails_id": "594104669853196288", "user_id": "996", "value": [ "343.jpg", "34543.png" ], "pid": 2 } ], ``` ### 评分 avera存放平均评分 ```json "write_pool": [ { "avera": 2 } ], ``` ###多选 与单选类似 ```json "write_pool": [ { "label": 1, "title": "多选", "count": 2, "scale": 0.5, "pid": 1 }, { "label": 2, "title": "多选2", "count": 2, "scale": 0.5, "pid": 2 } ], ```