用户信息采集
用户信息采集
根据事件id获取表单
GET /information_collect_form/{eventId}
权限
- 需认证
响应
成功响应InformationCollectForm结构体
字段 | 描述 |
---|---|
formTitle string |
表单名称 |
allowSkip bool |
是否允许跳过,1表示允许 |
eventId int string |
事件id |
items FormItem |
表单项 |
字段 | 描述 |
---|---|
type string |
表单元素类型 |
title string |
表单元素名称 |
filed string |
表单元素类型 |
value string |
表单元素值 |
required bool |
是否必填 |
validate Validate |
大图 |
字段 | 描述 |
---|---|
required bool |
验证规则:是否必填 |
message string |
错误提示信息 |
min string |
验证规则:最小值 |
message string |
错误提示信息 |
max string |
验证规则:最大值 |
message string |
错误提示信息 |
根据动作获取事件
GET /information_collect_event/{action}
权限
- 需认证
参数
字段 | 描述 |
---|---|
targetType string |
目标类型,比如course,classroom,none |
targetId int string |
目标ID 0为当前类型全部 |
响应
成功响应InformationCollectEvent结构体
字段 | 描述 |
---|---|
id int string |
事件id |
title string |
信息采集的标题 |
formTitle string |
信息采集表单的标题 |
action string |
信息采集的位置行为buy_after=购买后,buy_before=购买前 |
status string |
信息采集开启状态,open:开启;close:关闭 |
allowSkip bool |
是否允许跳过 |
creator int string |
创建者 |
createdTime datetime |
创建时间 |
updatedTime datetime |
最后更新时间 |
isSubmited bool |
是否提交 |