Base URL

[http://192.168.10.35:80/api/v1](http://192.168.10.35:80/api/v1)

路由

🔒 = 需要鉴权

🔴 = 需要压测

🔴🔴 = 非常需要压测

表单分类

模板管理

表单管理

答卷数据

应用数据

我的应用表单查询

数据权限

表单分类接口

新增表单分类

Method : POST

URL : {{baseUrl}}/form/category/

Auth required : True

Body :

  1. {
  2. "name": "人事行政",
  3. "sort": 0
  4. }

请求参数

参数名称 参数说明 请求类型 是否必须 默认值 限制 数据类型
name 表单名称 body true 字符长度[1, 64] string
sort 排序 body false 0 [0,9999] Integer

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": "606562b664f92318ef629514"
  6. }

返回参数

参数名称 参数说明 数据类型
data 表单分类Id string

批量新增表单分类

Method : POST

URL : {{baseUrl}}/form/category/bluk

Auth required : True

Body :

  1. [
  2. "人事行政",
  3. "日常生活"
  4. ]

请求参数

参数名称 参数说明 请求类型 是否必须 默认值 限制 数据类型
name数组 表单名称 body true 每个字符长度[1, 64] array

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": ["606562b664f92318ef629514", "606562b664f92318ef629515"]
  6. }

返回参数

参数名称 参数说明 数据类型
data 表单分类Id列表 array

修改表单分类

Method : PUT

URL : {{baseUrl}}/form/category/:categoryId

URL Parameters : categoryId=[string] categoryId 是表单分类的Id

Auth required : True

Body :

  1. {
  2. "name": "人事行政",
  3. "sort": 0
  4. }

请求参数

参数名称 参数说明 请求类型 是否必须 默认值 限制 数据类型
name 表单名称 body true 字符长度[1, 64] string
sort 排序 body false 0 [0,9999] Integer

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": "606562b664f92318ef629514"
  6. }

返回参数

参数名称 参数说明 数据类型
data 表单分类Id string

删除表单分类

Method : DELETE

URL : {{baseUrl}}/form/category/:categoryId

URL Parameters : categoryId=[string] categoryId 是表单分类的Id

Auth required : True

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": null
  6. }

批量删除表单分类

Method : DELETE

URL : {{baseUrl}}/form/category/batch_del

Auth required : True

  1. [
  2. "607fd97e63fe1b70c2c483ba",
  3. "609659fec1d6b822b06c707b"
  4. ]

请求参数

参数名称 参数说明 请求类型 是否必须 默认值 限制 数据类型
删除的表单分类数组 body true array

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": null
  6. }

表单分类授权查询

Method : GET

URL : {{baseUrl}}/form/category/authorize/:categoryId

URL Parameters : categoryId=[string] categoryId 是表单分类的Id

Auth required : True

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": {
  6. "deptIds": [1, 2, 3],
  7. "roleIds": [1, 2, 3],
  8. "userIds": [1, 2, 3]
  9. }
  10. }

返回参数

参数名称 参数说明 数据类型
data 授权信息列表 object
  deptIds 部门授权信息列表 array[string]
  roleIds 角色授权信息列表 array[string]
  userIds 用户授权信息列表 array[string]

表单分类授权

Method : POST

URL : {{baseUrl}}/form/category/authorize/:categoryId

URL Parameters : categoryId=[string] categoryId 是表单分类的Id

Auth required : True

Body :

  1. {
  2. "deptIds": [1, 2, 3],
  3. "roleIds": [1, 2, 3],
  4. "userIds": [1, 2, 3]
  5. }

请求参数

参数名称 参数说明 请求类型 是否必须 默认值 限制 数据类型
deptIds 部门Id列表 body true [] 部门Id array[Long]
roleIds 角色Id列表 body true [] 角色Id array[Long]
userIds 用户Id列表 body true [] 用户Id array[Long]

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": null
  6. }

所有有权限的表单分类列表

Method : GET

URL : {{baseUrl}}/form/category/all

Auth required : True

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": [
  6. {
  7. "id": "6065a0609f082b204de81a09",
  8. "name": "模板名称",
  9. "sort": 0,
  10. "createdTime": "2013-11-18 15:01:27"
  11. }
  12. ]
  13. }

返回参数

参数名称 参数说明 数据类型
data 授权信息列表 object
  id 表单分类Id string
  name 表单分类名称 string
  sort 表单分类排序 integer
  createdTime 创建时间 datetime

分页查询表单分类列表

Method : POST

URL : {{baseUrl}}/form/category/page

Auth required : True

Body :

  1. {
  2. // 分页参数
  3. "name": "人事"
  4. }

请求参数

参数名称 参数说明 请求类型 是否必须 默认值 限制 数据类型
name 模糊搜索表单类别 body true string

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": {
  6. "total": 1,
  7. "size": 30,
  8. "pages": 1,
  9. "current": 1,
  10. "records": [
  11. {
  12. "id": "6065a0609f082b204de81a09",
  13. "name": "模板名称",
  14. "sort": 0,
  15. "createdTime": "2013-11-18 15:01:27"
  16. }
  17. ]
  18. }
  19. }

返回参数

参数名称 参数说明 数据类型
data 授权信息列表 object
  id 表单分类Id string
  name 表单分类名称 string
  sort 表单分类排序 integer
  general 是否为通用分类{Y: 是, N: 不是},通用分类不可删除 string
  createdTime 创建时间 datetime

模板管理接口

创建模板

Method : POST

URL : {{baseUrl}}/template

Auth required : True

Body :

  1. {
  2. "title": "考试模板",
  3. "description": "考试描述",
  4. "type": "EXAM",
  5. "componentList": [
  6. // 详情见表单组件列表格式
  7. {}
  8. ],
  9. "categoryId": "所属目录Id",
  10. "logo": "https://oss-dev.quectel.com/group1/M00/00/52/wKgKamA8SSiAD-A2AABqvheSCAU538.png"
  11. "characterType": ""
  12. }

请求参数

参数名称 参数说明 请求类型 是否必须 默认值 限制 数据类型
title 表单名称 body true 字符长度[1, 64] string
description 表单描述 body false ‘’ 字符长度[1, 1000] string
type 表单类型 body true {EXAM: 考试, QUESTIONNAIRE: 问卷, VOTE: 投票,CHARACTER: DICS性格测试} enum
componentList 表单组件,参照表单组件列表 body true [] array[component]
categoryId 所属目录Id body true string
logo 封面 body false 默认封面 string
characterType 性格测试类型 body false [DISC] 等 string

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": "606562b664f92318ef629514"
  6. }

返回参数

参数名称 参数说明 数据类型
data 表单模板Id string

更新模板

Method : PUT

URL : {{baseUrl}}/template/:templateId

URL Parameters : templateId=[string] templateId 是表单模板的Id

Auth required : True

Body :

  1. {
  2. "title": "考试模板",
  3. "description": "考试描述",
  4. "type": "EXAM",
  5. "componentList": [
  6. // 详情见表单组件列表格式
  7. {}
  8. ],
  9. "categoryId": "所属目录Id",
  10. "logo": "https://oss-dev.quectel.com/group1/M00/00/52/wKgKamA8SSiAD-A2AABqvheSCAU538.png"
  11. "characterType": ""
  12. }

请求参数

参数名称 参数说明 请求类型 是否必须 默认值 限制 数据类型
title 表单名称 body true 字符长度[1, 64] string
description 表单描述 body false ‘’ 字符长度[1, 1000] string
type 表单类型 body true {EXAM: 考试, QUESTIONNAIRE: 问卷, VOTE: 投票,PERSONALITY_TEST_DISC: DICS性格测试} enum
componentList 表单组件,参照表单组件列表 body true [] array[component]
categoryId 所属目录Id body true string
logo 封面 body false 默认封面 string
characterType 性格测试类型 body false [DISC] 等 string

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": "606562b664f92318ef629514"
  6. }

返回参数

参数名称 参数说明 数据类型
data 表单模板Id string

删除模板

Method : DELETE

URL : {{baseUrl}}/template/:templateId

URL Parameters : templateId=[string] templateId 是表单模板的Id

Auth required : True

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": null
  6. }

批量删除模板

Method : DELETE

URL : {{baseUrl}}/template

Auth required : True

body

  1. [
  2. "609b8902423b2001c7a776bb"
  3. ]

请求参数

参数名称 参数说明 请求类型 是否必须 默认值 限制 数据类型
模板Id数组 模板Id数组 body true array[string]

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": null
  6. }

预览增加

Method : PUT

URL : {{baseUrl}}/template/previewed/:templateId

URL Parameters : templateId=[string] templateId 是表单模板的Id

Auth required : True

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": null
  6. }

使用增加

Method : PUT

URL : {{baseUrl}}/template/used/:templateId

URL Parameters : templateId=[string] templateId 是表单模板的Id

Auth required : True

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": null
  6. }

查询模板详情

Method : GET

URL : {{baseUrl}}/template/detail/:templateId

URL Parameters : templateId=[string] templateId 是表单模板的Id

Auth required : True

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": {
  6. "id": "6065a50058c79b445d04ae4e",
  7. "title": "XX考试",
  8. "categoryId": "606562b664f92318ef629515",
  9. "type": "EXAM",
  10. // 详情见考试组件列表结构
  11. "componentList": [
  12. {}
  13. ],
  14. "pageViews": 900,
  15. "useCount": 1000,
  16. "complexCount": 1900
  17. }
  18. }

返回参数

参数名称 参数说明 数据类型
data 表单模板Id object
  id 表单模板Id string
  title 表单模板标题 string
  categoryId 表单分类Id string
  type 表单类型{EXAM: 考试, QUESTIONNAIRE: 问卷, VOTE: 投票,PERSONALITY_TEST_DISC: DICS性格测试} enum
  componentList 组件列表,详情见表单组件结构 array
  pageViews 预览量 number
  useCount 使用量 number
  complexCount 综合使用量 = 预览量 + 使用量 number

分页查询有权限的模板

Method : POST

URL : {{baseUrl}}/template/page

Auth required : True

Body :

  1. {
  2. // 分页参数
  3. "title": "哈哈",
  4. "type": "EXAM",
  5. "categoryId": "606562b664f92318ef629515",
  6. "characterType": ""
  7. }

请求参数

参数名称 参数说明 请求类型 是否必须 默认值 限制 数据类型
title 表单名称模糊搜索 body false 字符长度[1, 64] string
type 表单类型筛选 body false {EXAM: 考试, QUESTIONNAIRE: 问卷, VOTE: 投票,PERSONALITY_TEST_DISC: DICS性格测试} string
categoryId 表单分类筛选 body false 表单分类的Id string
characterType 性格测试类型 body false {DISC: DISC测试} string

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": {
  6. "total": 1,
  7. "size": 30,
  8. "pages": 1,
  9. "current": 1,
  10. "records": [
  11. {
  12. "title": "考试模板",
  13. "description": "考试描述",
  14. "type": "EXAM",
  15. "componentList": [
  16. // 详情见表单组件列表格式,预览用,返回前几题
  17. {}
  18. ],
  19. "categoryId": "所属目录Id",
  20. "logo": "https://oss-dev.quectel.com/group1/M00/00/52/wKgKamA8SSiAD-A2AABqvheSCAU538.png"
  21. }
  22. ]
  23. }
  24. }

返回参数

参数名称 参数说明 数据类型
data 表单模板Id object
  id 表单模板Id string
  title 表单模板标题 string
  categoryId 表单分类Id string
  categoryName 表单分类名称 string
  type 表单类型{EXAM: 考试, QUESTIONNAIRE: 问卷, VOTE: 投票, PERSONALITY_TEST_DISC: DICS性格测试} enum
  componentList 组件列表,详情见组件结构 array
  pageViews 预览量 number
  useCount 使用量 number
  complexCount 综合使用量 = 预览量 + 使用量 number

表单管理接口

创建表单

Method : POST

URL : {{baseUrl}}/form

Auth required : True

Body :

  1. {
  2. "title": "问卷标题",
  3. "description": "描述信息",
  4. "type": "EXAM",
  5. "characterType": "",
  6. "categoryId": "606562b664f92318ef629515",
  7. "logo": "https://oss-dev.quectel.com/group1/M00/00/52/wKgKamA8SSiAD-A2AABqvheSCAU538.png",
  8. "app": "training",
  9. "startTime": "2029-07-01 05:02:08",
  10. "endTime": "2017-06-23 21:28:20",
  11. "status": "UN_PUBLISH",
  12. "bizId": "234",
  13. "bizType": "TRAINING",
  14. "fromTemplateId": "606562b664f92318ef629517",
  15. "publishConfig": {
  16. "fillInLimit": "Y",
  17. "fillInLimitCount": 10,
  18. "open": "Y",
  19. "showType": "NORMAL",
  20. "answerType": "INSTANR",
  21. "showProgressBar": "Y"
  22. },
  23. "componentList": [
  24. // 组件格式请参照组件格式说明
  25. {}
  26. ],
  27. "reviewerIdList": [
  28. "1",
  29. "2"
  30. ]
  31. }

请求参数

参数名称 参数说明 请求类型 是否必须 默认值 限制 数据类型
title 表单标题 body true 字符长度[1, 64] string
description 表单描述 body false 字符长度[1, 1000] string
type 表单类型筛选 body true {EXAM: 考试, QUESTIONNAIRE: 问卷, VOTE: 投票, CHARACTER: 性格测试} string
characterType 性格测试类型 body true {DISC: DISC性格测试} string
categoryId 所属目录Id body true 表单目录Id string
logo 封面 body false 默认封面 封面url string
app 所属应用 body false 应用标识 string
startTime 表单开始填报时间 body false 开始时间 datetime
endTime 表单结束填报时间 body false 结束时间 datetime
status 表单状态{UN_PUBLISH: 未发布状态, PUBLISH: 发布状态, STOP: 停止状态} body false UN_PUBLISH enum
bizId 业务Id body false string
bizType 业务类型 body false string
fromTemplateId 来源表单模板Id body false 来源表单Id string
publishConfig 发布配置 body true object
  fillInLimit 填写是否有次数限制 body true Y:有限制,N:无限制 integer
  fillInLimitCount 填写次数限制 body true integer
  open 是否开放填写 body true Y:开发,N:不开放 string
  showType 展示类型 body false NORMAL {NORMAL: 正常, ONE_PAGE_ONE_QUESTION: 一页一题} enum
  answerType 回答类型 body false INSTANR {INSTANR: 即时回答, FINAL: 最终统计} enum
  showProgressBar 展示答题进度 body false Y Y:展示,N:不展示 string
componentList 组件列表 body true array[component]
reviewerIdList 批阅人列表 body false 用户Id列表,不传默认自己 array[userId]

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": "606562b664f92318ef629514"
  6. }

返回参数

参数名称 参数说明 数据类型
data 表单Id string

更新表单

Method : PUT

URL : {{baseUrl}}/form/:formId

URL Parameters : formId=[string] formId 是表单的Id

Auth required : True

Body :

  1. {
  2. "title": "问卷标题",
  3. "description": "描述信息",
  4. "type": "EXAM",
  5. "characterType": "",
  6. "categoryId": "606562b664f92318ef629515",
  7. "logo": "https://oss-dev.quectel.com/group1/M00/00/52/wKgKamA8SSiAD-A2AABqvheSCAU538.png",
  8. "app": "training",
  9. "startTime": "2029-07-01 05:02:08",
  10. "endTime": "2017-06-23 21:28:20",
  11. "status": "UN_PUBLISH",
  12. "bizId": "234",
  13. "bizType": "TRAINING",
  14. "fromTemplateId": "606562b664f92318ef629517",
  15. "publishConfig": {
  16. "fillInLimit": "Y",
  17. "fillInLimitCount": 10,
  18. "open": "Y",
  19. "showType": "NORMAL",
  20. "answerType": "INSTANR",
  21. "showProgressBar": "Y"
  22. },
  23. "componentList": [
  24. {}
  25. ],
  26. "reviewerIdList": [
  27. "1",
  28. "2"
  29. ]
  30. }

请求参数

参数名称 参数说明 请求类型 是否必须 默认值 限制 数据类型
title 表单标题 body false 字符长度[1, 64] string
description 表单描述 body false 字符长度[1, 1000] string
type 表单类型筛选 body false {EXAM: 考试, QUESTIONNAIRE: 问卷, VOTE: 投票, PERSONALITY_TEST_DISC: DICS性格测试} string
characterType 性格测试类型 body true {DISC: DISC性格测试} string
categoryId 所属目录Id body false 表单目录Id string
logo 封面 body false 默认封面 封面url string
app 所属应用 body false 应用标识 string
startTime 表单开始填报时间 body false 开始时间 datetime
endTime 表单结束填报时间 body false 结束时间 datetime
status 表单状态{UN_PUBLISH: 未发布状态, PUBLISH: 发布状态, STOP: 停止状态} body false UN_PUBLISH enum
bizId 业务Id body false string
bizType 业务类型 body false string
fromTemplateId 来源表单模板Id body false 来源表单Id string
publishConfig 发布配置 body false object
  fillInLimit 填写是否有次数限制 body true Y:有限制,N:无限制 integer
  fillInLimitCount 填写次数限制 body true integer
  open 是否开放填写 body true Y:开发,N:不开放 string
  showType 展示类型 body false NORMAL {NORMAL: 正常, ONE_PAGE_ONE_QUESTION: 一页一题} enum
  answerType 回答类型 body false INSTANR {INSTANR: 即时回答, FINAL: 最终统计} enum
  showProgressBar 展示答题进度 body false Y Y:展示,N:不展示 string
componentList 组件列表,参照表单组件列表 body false array[component]
reviewerIdList 批阅人列表 body false 用户Id列表

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": "606562b664f92318ef629514"
  6. }

返回参数

参数名称 参数说明 数据类型
data 表单Id string

删除表单

Method : DELETE

URL : {{baseUrl}}/form/:formId

URL Parameters : formId=[string] formId 是表单的Id

Auth required : True

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": null
  6. }

批量删除表单

Method : DELETE

URL : {{baseUrl}}/form

Auth required : True

body

  1. [
  2. "609b885a423b2001c7a776ba"
  3. ]

请求参数

参数名称 参数说明 请求类型 是否必须 默认值 限制 数据类型
问卷id列表 问卷id列表 body true array[string]

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": null
  6. }

发布表单

Method : PUT

URL : {{baseUrl}}/form/publish/:formId

URL Parameters : formId=[string] formId 是表单的Id

Auth required : True

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": null
  6. }

停止表单

Method : PUT

URL : {{baseUrl}}/form/stop/:formId

URL Parameters : formId=[string] formId 是表单的Id

Auth required : True

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": null
  6. }

查询表单详情

Method : GET

URL : {{baseUrl}}/form/detail/:formId

URL Parameters : formId=[string] formId 是表单的Id

Auth required : True

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": {
  6. "id": "60659e14bf31a86fb6cd5974",
  7. "title": "表单",
  8. "type": "EXAM",
  9. "componentList": [
  10. // 组件列表
  11. {}
  12. ],
  13. "app": "training",
  14. "appName": "培训系统",
  15. "categoryId": "60659e14bf31a86fb6cd59765",
  16. "categoryName": "行政",
  17. "publishConfig": {
  18. "fillInLimit": "Y",
  19. "fillInLimitCount": 10,
  20. "open": "Y",
  21. "showType": "NORMAL",
  22. "answerType": "INSTANR",
  23. "showProgressBar": "Y"
  24. },
  25. "startTime": "2023-05-06 01:13:00",
  26. "endTime": "2014-08-26 11:03:42",
  27. "publishTime": "2018-05-11 03:38:22",
  28. "status": "PUBLISH",
  29. "bizId": "1",
  30. "bizType": "training",
  31. "submitCount": 100,
  32. "reviewerIdList": [9842],
  33. "reviewerNameList": ["方强(christian.fang)"],
  34. "createBy": "1",
  35. "creatorName": "方强(christian.fang)",
  36. "createdTime": "创建时间",
  37. "updateTime": "更新时间",
  38. "logo": "logo图片"
  39. }
  40. }

返回参数

参数名称 参数说明 数据类型
data 表单基本信息 string
id 表单Id string
title 表单标题 string
type 表单类型{EXAM: 考试, QUESTIONNAIRE: 问卷, VOTE: 投票,PERSONALITY_TEST_DISC: DICS性格测试} string
componentList 组件列表 array[component]
app 所属应用 string
appName 所属应用名称 string
categoryId 所属目录 string
categoryName 目录名称 string
publishConfig 发布配置 object
  fillInLimit 填写是否有次数限制 string
  fillInLimitCount 填写次数限制 integer
  open 是否开放应用外填报 {Y:开放,N:不开放} string
  showType 展示类型{NORMAL: 正常, ONE_PAGE_ONE_QUESTION: 一页一题} string
  answerType {INSTANR: 即时回答, FINAL: 最终统计} enum
  showProgressBar 展示答题进度 { Y:展示,N:不展示 } string
startTime 开始时间 datetime
endTime 结束时间 datetime
publishTime 发布时间 datetime
status 发布状态表单状态 {UN_PUBLISH: 未发布状态, PUBLISH: 发布状态, STOP: 停止状态} datetime
bizId 业务Id string
bizType 业务类型 string
submitCount 提交数量 integer
reviewerIdList 批阅人Id列表 array[string]
reviewerNameList 批阅人名称列表 array[string]
createBy 创建人Id userVo
creatorName 创建人名称 long
createdTime 创建时间 datetime
updateTime 修改时间 datetime
logo logo string

分页查询表单

Method : POST

URL : {{baseUrl}}/form/page

Auth required : True

Body :

  1. {
  2. // 分页参数
  3. "title": "表单标题",
  4. "type": "EXAM",
  5. "categoryId": "606562b664f92318ef629517",
  6. "status": "PUBLISH",
  7. "app": "training"
  8. }

请求参数

参数名称 参数说明 请求类型 是否必须 默认值 限制 数据类型
title 表单标题模糊搜索 body false 字符长度[1, 64] string
type 表单类型筛选 body false {EXAM: 考试, QUESTIONNAIRE: 问卷, VOTE: 投票,PERSONALITY_TEST_DISC: DICS性格测试} string
categoryId 所属目录Id body false 表单目录Id string
status 表单状态{UN_PUBLISH: 未发布状态, PUBLISH: 发布状态, STOP: 停止状态} body false UN_PUBLISH enum
app app标识 body false 字符长度[1, 64] string

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": {
  6. "total": 1,
  7. "size": 30,
  8. "pages": 1,
  9. "current": 1,
  10. "records": [
  11. {
  12. "id": "60659e14bf31a86fb6cd5974",
  13. "title": "表单",
  14. "type": "EXAM",
  15. "app": "training",
  16. "appName": "培训系统",
  17. "categoryId": "60659e14bf31a86fb6cd59765",
  18. "categoryName": "行政",
  19. "publishConfig": {
  20. "fillInLimit": "Y",
  21. "fillInLimitCount": 10,
  22. "open": "Y",
  23. "showType": "NORMAL",
  24. "answerType": "INSTANR",
  25. "showProgressBar": "Y"
  26. },
  27. "startTime": "2023-05-06 01:13:00",
  28. "endTime": "2014-08-26 11:03:42",
  29. "publishTime": "2018-05-11 03:38:22",
  30. "status": "PUBLISH",
  31. "bizId": "1",
  32. "bizType": "training",
  33. "submitCount": 100,
  34. "reviewerIdList": [9842]
  35. }
  36. ]
  37. }
  38. }

返回参数

参数名称 参数说明 数据类型
data 表单基本信息 string
id 表单Id string
title 表单标题 string
type 表单类型{EXAM: 考试, QUESTIONNAIRE: 问卷, VOTE: 投票,PERSONALITY_TEST_DISC: DICS性格测试} string
app 所属应用 string
appName 所属应用名称 string
categoryId 所属目录 string
categoryName 目录名称 string
publishConfig 发布配置 object
  fillInLimit 填写是否有次数限制 string
  fillInLimitCount 填写次数限制 integer
  open 是否开放应用外填报 {Y:开放,N:不开放} string
  showType 展示类型{NORMAL: 正常, ONE_PAGE_ONE_QUESTION: 一页一题} string
  answerType {INSTANR: 即时回答, FINAL: 最终统计} enum
  showProgressBar 展示答题进度 { Y:展示,N:不展示 } string
startTime 开始时间 datetime
endTime 结束时间 datetime
publishTime 发布时间 datetime
status 发布状态表单状态 {UN_PUBLISH: 未发布状态, PUBLISH: 发布状态, STOP: 停止状态} datetime
bizId 业务Id string
bizType 业务类型 string
submitCount 提交数量 integer
reviewerIdList 批阅人Id列表 array

根据表单Id查询统计结果

Method : GET

URL : {{baseUrl}}/form/statistics/:formId

URL Parameters : formId=[string] formId 是表单的Id

Auth required : True

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": {
  6. "formId": "60a380dffbeb660e3c1b4d88",
  7. "title": "天黑黑考试-全部题型",
  8. "type": "EXAM",
  9. "componentStatisticList": [
  10. // ... 详情见组件统计格式详情
  11. ]
  12. }
  13. }

返回参数

参数名称 参数说明 数据类型
formId 表单Id string
title 标题 string
type 表单类型 string
componentStatisticList 组件统计结果 array[]

查找表单答卷的所有计算结果

Method : GET

URL : {{baseUrl}}/form/statistics/calculate_result/:formId

URL Parameters : formId=[string] formId 是表单的Id

Auth required : True

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": [
  6. {
  7. "formAnswerId": "60acc297b9095b5c4edba10f",
  8. "userId": "11536",
  9. "userName": "汪**(Emma Wang)",
  10. "result": {
  11. "characterMap": {
  12. "S": "0",
  13. "C": "0",
  14. "D": "3",
  15. "I": "0"
  16. }
  17. }
  18. },
  19. {
  20. "formAnswerId": "60acb89ca1b2354f47c6ded1",
  21. "userId": "9842",
  22. "userName": "方*(Christian Fang)",
  23. "result": {
  24. "characterMap": {
  25. "S": "0",
  26. "C": "0",
  27. "D": "3",
  28. "I": "0"
  29. }
  30. }
  31. }
  32. ]
  33. }

返回参数

参数名称 参数说明 数据类型
formId 表单Id string
userId 用户Id string
userName 用户名 string
result 组件统计结果,详情见组件统计结果文档 array[calculateResult]

查询统计详情

Method : GET

URL : {{baseUrl}}/form/statistics/detail

Body

  1. {
  2. // 分页参数
  3. "filterEmpty": "Y",
  4. "formId": "606562b664f92318ef629517",
  5. "questionId": "q1",
  6. "optionId": "q1_o1"
  7. }

请求参数

参数名称 参数说明 请求类型 是否必须 默认值 限制 数据类型
filterEmpty 过滤空 body false string
formId 表单Id body true string
questionId 题目Id body true string
optionId 答项Id body true string

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": {
  6. "formAnswerId": "60a34f519e4fd11ba6cbde0a",
  7. "userId": "1",
  8. "empName": "方强(christian.fang)",
  9. "submitTime": "2018-08-07 19:53:11",
  10. "answerContent": "哈哈",
  11. "score": 0.00,
  12. "reviewed": "Y"
  13. }
  14. }

返回参数

参数名称 参数说明 数据类型
formAnswerId 答卷Id string
userId 用户Id string
empName 用户名称 string
submitTime 提交时间 date
answerContent 答案内容 string
score 得分,保留两位小数 number
reviewed 是否已批阅{Y:已批阅,N:未批阅} string

下载导入模板

Method : GET

URL : {{baseUrl}}/form/downloadTemplate/:type

URL Parameters : type=[string] type 是表单的类型{EXAM: 考试, QUESTIONNAIRE: 问卷, VOTE: 投票, CHARACTER: 性格测试}

Auth required : True

返回参数
返回文件流信息

导入模板数据

Method : POST

URL : {{baseUrl}}/form/downloadTemplate/:type

URL Parameters : type=[string] type 是表单的类型{EXAM: 考试, QUESTIONNAIRE: 问卷, VOTE: 投票, CHARACTER: 性格测试}

请求参数

参数名称 参数说明 请求类型 是否必须 默认值 限制 数据类型
excel excel文件 file true 必须是模板文件导入 file

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": [
  6. // ... 详情见组件格式信息
  7. ]
  8. }

返回参数

参数名称 参数说明 数据类型
data 组件格式数组 array[component]

获取表单作答时间

Method : GET

URL : {{baseUrl}}/form/detail/time/:formId

URL Parameters : formId=[string] type 表单Id

请求参数

参数名称 参数说明 请求类型 是否必须 默认值 限制 数据类型
formId 表单Id string true string

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": {
  6. "submitTimeLimit": "Y",
  7. "submitTimeLimitMin": 1
  8. }
  9. }

答卷数据接口

提交答卷

Method : POST

URL : {{baseUrl}}/answer_paper/

Auth required : True

Body :

  1. {
  2. "formId": "606562b664f92318ef629514",
  3. "fromClient": "chrome",
  4. "startTime": 0,
  5. "endTime": 0,
  6. "answerList": [
  7. // 答案信息,详情见答案格式
  8. {}
  9. ]
  10. }

请求参数

参数名称 参数说明 请求类型 是否必须 默认值 限制 数据类型
formId 表单Id body true 字符长度[1, 64] string
fromClient 来源:这个字段的传参还没确定,先随意传一个字符串 body true 字符长度[1, 64] string
answerList 答案列表,具体格式参照组件的答案列表 body true [] 字符长度[1, 64] array
startTime 作答开始时间 body true Long
endTime 作答结束时间 body true Long

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": "606562b664f92318ef629517"
  6. }

返回参数

参数名称 参数说明 数据类型
data 答卷的Id string

根据表单Id查询我的答卷分页

Method : POST

URL : {{baseUrl}}/answer_paper/me

Auth required : True

Body :

  1. {
  2. "type": "EXAM",
  3. "categoryId": "606562b664f92318ef629517",
  4. "title": "XX考试",
  5. "formId": "606562b664f92318ef629517"
  6. }

请求参数

参数名称 参数说明 请求类型 是否必须 默认值 限制 数据类型
type 表单类型参数 body true 表单类型{EXAM: 考试, QUESTIONNAIRE: 问卷, VOTE: 投票, PERSONALITY_TEST_DISC: DICS性格测试} string
categoryId 表单目录Id body true string
title 表单标题搜索 body true 字符长度[1, 64] string
formId 表单Id,查询指定表单的答卷 body true 字符长度[1, 64] string

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": {
  6. "total": 1,
  7. "size": 30,
  8. "pages": 1,
  9. "current": 1,
  10. "records": [
  11. {
  12. "id": "Id",
  13. "userId": "10",
  14. "userName": "方强(christian.fang)",
  15. "ip": "192.168.2.201",
  16. "startTime": "2018-03-09 23:18:04",
  17. "endTime": "2021-01-18 07:03:06",
  18. "formId": "60659e14bf31a86fb6cd5974",
  19. "formTitle": "x表单",
  20. "fromClient": "chrome",
  21. "score": 100,
  22. "subjectiveScore": 50,
  23. "objectiveScore": 50,
  24. "reviewed": "Y",
  25. "reviewerId": "10",
  26. "reviewerName": "方强(christian.fang)"
  27. }
  28. ]
  29. }
  30. }

返回参数

参数名称 参数说明 数据类型
data 答卷基本信息数组 array
id 答卷Id string
userId 用户Id string
userName 用户名称 string
ip 用户ip string
startTime 考试开始时间 datetime
endTime 考试结束时间 datetime
form 表单信息 formVo
formId 表单Id string
formName 表单名称 string
fromClient 客户端来源 string
score 得分 number
subjectiveScore 客观题分数 number
subjectiveScore 主观题分数 number
reviewed 是否被批阅{Y: 批阅, N:未批阅} string
reviewerId 批阅人Id string
reviewerName 批阅人名子 string

根据表单Id查询答卷分页

Method : POST

URL : {{baseUrl}}/answer_paper/all

Auth required : True

Body :

  1. {
  2. "type": "EXAM",
  3. "categoryId": "606562b664f92318ef629517",
  4. "title": "XX考试",
  5. "formId": "606562b664f92318ef629517"
  6. }

请求参数

参数名称 参数说明 请求类型 是否必须 默认值 限制 数据类型
type 表单类型参数 body true 表单类型{EXAM: 考试, QUESTIONNAIRE: 问卷, VOTE: 投票, PERSONALITY_TEST_DISC: DICS性格测试} string
categoryId 表单目录Id body true string
title 表单标题搜索 body true 字符长度[1, 64] string
formId 表单Id,查询指定表单的答卷 body true 字符长度[1, 64] string

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": {
  6. "total": 1,
  7. "size": 30,
  8. "pages": 1,
  9. "current": 1,
  10. "records": [
  11. {
  12. "id": "Id",
  13. "userId": "10",
  14. "userName": "方强(christian.fang)",
  15. "ip": "192.168.2.201",
  16. "startTime": "2018-03-09 23:18:04",
  17. "endTime": "2021-01-18 07:03:06",
  18. "formId": "60659e14bf31a86fb6cd5974",
  19. "formTitle": "x表单",
  20. "fromClient": "chrome",
  21. "score": 100,
  22. "subjectiveScore": 50,
  23. "objectiveScore": 50,
  24. "reviewed": "Y",
  25. "reviewerId": "10",
  26. "reviewerName": "方强(christian.fang)"
  27. }
  28. ]
  29. }
  30. }

返回参数

参数名称 参数说明 数据类型
data 答卷基本信息数组 array
id 答卷Id string
userId 用户Id string
userName 用户名称 string
ip 用户ip string
startTime 考试开始时间 datetime
endTime 考试结束时间 datetime
form 表单信息 formVo
formId 表单Id string
formName 表单名称 string
fromClient 客户端来源 string
score 得分 number
subjectiveScore 客观题分数 number
subjectiveScore 主观题分数 number
reviewed 是否被批阅{Y: 批阅, N:未批阅} string
reviewerId 批阅人Id string
reviewerName 批阅人名子 string

Method : POST

答卷详情

Method : GET

URL : {{baseUrl}}/answer_paper/detail/:answerPaperId

URL Parameters : answerPaperId=[string] answerPaperId 是答卷的Id

Auth required : True

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": {
  6. "form": {
  7. "title": "aa",
  8. "description": "aa",
  9. "categoryId": "609659fec1d6b822b06c707b",
  10. "type": "EXAM",
  11. "app": null,
  12. "componentList": [
  13. {
  14. "id": "q1",
  15. "allowNull": "Y",
  16. "type": "EXAM_MULTI_FILL_IN_BLANK_QUESTION",
  17. "title": "",
  18. "showSeq": "Y",
  19. "totalScore": 0.00,
  20. "difficulty": null,
  21. "questionResolution": "",
  22. "calculation": "CUSTOM",
  23. "answerMatch": "EQ",
  24. "optionList": [
  25. {
  26. "id": "q1_o1",
  27. "questionId": "q1",
  28. "title": "<p>aa</p>",
  29. "allowNull": "Y",
  30. "checkMethod": "",
  31. "score": 0.00,
  32. "correctAnswer": [
  33. "aa"
  34. ],
  35. "charCountLimit": "Y",
  36. "charMinCount": 1,
  37. "charMaxCount": 500,
  38. "allowAttachment": "N",
  39. "attachmentAllowNull": "Y",
  40. "attchmentSuffix": [],
  41. "attachmentMaxCount": 10
  42. },
  43. {
  44. "id": "q1_o2",
  45. "questionId": "q1",
  46. "title": "<p>aa</p>",
  47. "allowNull": "Y",
  48. "checkMethod": "",
  49. "score": 0.00,
  50. "correctAnswer": [
  51. "aa"
  52. ],
  53. "charCountLimit": "Y",
  54. "charMinCount": 1,
  55. "charMaxCount": 500,
  56. "allowAttachment": "N",
  57. "attachmentAllowNull": "Y",
  58. "attchmentSuffix": [],
  59. "attachmentMaxCount": 10
  60. }
  61. ]
  62. }
  63. ],
  64. "publishConfig": {
  65. "fillInLimit": "N",
  66. "fillInLimitCount": 1,
  67. "open": "Y",
  68. "showType": "NORMAL",
  69. "answerType": "",
  70. "showProgressBar": ""
  71. },
  72. "startTime": null,
  73. "endTime": null,
  74. "fromTemplateId": null,
  75. "publishTime": "2021-05-19 17:33:34",
  76. "status": "PUBLISH",
  77. "logo": "",
  78. "bizId": null,
  79. "bizType": null,
  80. "submitCount": 2,
  81. "mustReviewed": "1",
  82. "reviewerIdList": [
  83. "9842"
  84. ],
  85. "characterType": "DISC",
  86. "id": "60a4d9fae26b4c2b55c01999",
  87. "deleted": "N",
  88. "createBy": "9842",
  89. "createdTime": "2021-05-19 17:27:22",
  90. "modifyBy": "9625",
  91. "updateTime": "2021-05-19 17:27:22",
  92. "revision": "3",
  93. "tenantId": null
  94. },
  95. "userId": "9625",
  96. "userName": "张**(Ekko Zhang)",
  97. "ip": "0:0:0:0:0:0:0:1",
  98. "startTime": "2021-05-19 15:30:31",
  99. "endTime": "2021-05-19 15:31:25",
  100. "answerList": [
  101. {
  102. "answer": [
  103. {
  104. "attachList": null,
  105. "optionId": null,
  106. "content": "aa",
  107. "score": null
  108. },
  109. {
  110. "attachList": null,
  111. "optionId": null,
  112. "content": "aa",
  113. "score": null
  114. }
  115. ],
  116. "questionId": "q1",
  117. "questionType": "EXAM_MULTI_FILL_IN_BLANK_QUESTION",
  118. "answerScore": 0,
  119. "answerText": "aa;aa",
  120. "commonAnswerModels": null,
  121. "answerBizInfo": null,
  122. "isAllCorrect": null,
  123. "reviewText": null
  124. }
  125. ],
  126. "fromClient": "",
  127. "reviewed": "N",
  128. "reviewerId": null,
  129. "reviewerName": null,
  130. "duration": "54147",
  131. "remainTime": null,
  132. "correctCount": null,
  133. "falseCount": null,
  134. "calculateResult": {
  135. "subjectiveScore": null,
  136. "objectiveScore": 0.00,
  137. "score": 0.00
  138. }
  139. }
  140. }
参数名称 参数说明 数据类型
data 答卷基本信息数组 array
form 表单信息 Form
 title 标题 string
 description 描述 string
 categoryId 模板分类 string
 type 表单类型 string
 app 所属应用 string
 componentList 题目列表 List
 publishConfig 发布配置 PublishConfig
  fillInLimit 填写是否有次数限制 String
  fillInLimitCount 填写次数设置 Integer
  open 开放应用外填报 Y:开发,N:不开放 String
  showType 题目的展示方式 {NORMAL: 正常, ONE_PAGE_ONE_QUESTION: 一页一题} String
  answerType 回答类型 INSTANR: 即时回答, FINAL: 最终统计 String
  showProgressBar 展示答题进度 Y:展示,N:不展示 String
 startTime 开始时间 Date
 endTime 结束时间 Date
 fromTemplateId 表单模板Id String
 publishTime 发布时间 Date
 status 状态{UN_PUBLISH: 未发布状态, PUBLISH: 发布状态, STOP: 停止状态} String
 logo logo String
 bizId 业务Id String
 bizType 业务类型 String
 submitCount 提交数量 String
 mustReviewed 是否需要批阅 0否 1是 String
 reviewerIdList 批阅人列表 List
 characterType 性格测试类型 List
userId 用户Id string
userName 用户名 string
ip ip string
startTime 开始时间 Date
endTime 结束时间 Date
formId 表单Id string
endTime 结束时间 Date
answerList 答卷组卷详情 List
fromClient 来源 String
reviewed 是否批阅 String
reviewerId 批阅人Id String
reviewerName 批阅人 String
duration 答题时长 Long
remainTime 剩余作答次数 Integer
correctCount 正确题目数量 Integer
falseCount 错误题目数量 Integer
calculateResult 作答结果 AnswerPaperCalculateResult

删除答卷

Method : DELETE

URL : {{baseUrl}}/answer_paper/:answerPaperId

URL Parameters : answerPaperId=[string] answerPaperId 是答卷的Id

Auth required : True

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": null
  6. }

批改试卷详情

Method : GET

URL : {{baseUrl}}/review/info/{answerPaperId}

URL Parameters : answerPaperId=[string] answerPaperId 是表单作答的Id

Auth required : True

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": {
  6. "form": {
  7. "title": "aa",
  8. "description": "aa",
  9. "categoryId": "609659fec1d6b822b06c707b",
  10. "type": "EXAM",
  11. "app": null,
  12. "componentList": [
  13. {
  14. "id": "q1",
  15. "allowNull": "Y",
  16. "type": "EXAM_MULTI_FILL_IN_BLANK_QUESTION",
  17. "title": "",
  18. "showSeq": "Y",
  19. "totalScore": 0.00,
  20. "difficulty": null,
  21. "questionResolution": "",
  22. "calculation": "CUSTOM",
  23. "answerMatch": "EQ",
  24. "optionList": [
  25. {
  26. "id": "q1_o1",
  27. "questionId": "q1",
  28. "title": "<p>aa</p>",
  29. "allowNull": "Y",
  30. "checkMethod": "",
  31. "score": 0.00,
  32. "correctAnswer": [
  33. "aa"
  34. ],
  35. "charCountLimit": "Y",
  36. "charMinCount": 1,
  37. "charMaxCount": 500,
  38. "allowAttachment": "N",
  39. "attachmentAllowNull": "Y",
  40. "attchmentSuffix": [],
  41. "attachmentMaxCount": 10
  42. },
  43. {
  44. "id": "q1_o2",
  45. "questionId": "q1",
  46. "title": "<p>aa</p>",
  47. "allowNull": "Y",
  48. "checkMethod": "",
  49. "score": 0.00,
  50. "correctAnswer": [
  51. "aa"
  52. ],
  53. "charCountLimit": "Y",
  54. "charMinCount": 1,
  55. "charMaxCount": 500,
  56. "allowAttachment": "N",
  57. "attachmentAllowNull": "Y",
  58. "attchmentSuffix": [],
  59. "attachmentMaxCount": 10
  60. }
  61. ]
  62. }
  63. ],
  64. "publishConfig": {
  65. "fillInLimit": "N",
  66. "fillInLimitCount": 1,
  67. "open": "Y",
  68. "showType": "NORMAL",
  69. "answerType": "",
  70. "showProgressBar": ""
  71. },
  72. "startTime": null,
  73. "endTime": null,
  74. "fromTemplateId": null,
  75. "publishTime": "2021-05-19 17:33:34",
  76. "status": "PUBLISH",
  77. "logo": "",
  78. "bizId": null,
  79. "bizType": null,
  80. "submitCount": 2,
  81. "mustReviewed": "1",
  82. "reviewerIdList": [
  83. "9842"
  84. ],
  85. "characterType": "DISC",
  86. "id": "60a4d9fae26b4c2b55c01999",
  87. "deleted": "N",
  88. "createBy": "9842",
  89. "createdTime": "2021-05-19 17:27:22",
  90. "modifyBy": "9625",
  91. "updateTime": "2021-05-19 17:27:22",
  92. "revision": "3",
  93. "tenantId": null
  94. },
  95. "userId": "9625",
  96. "userName": "张**(Ekko Zhang)",
  97. "ip": "0:0:0:0:0:0:0:1",
  98. "startTime": "2021-05-19 15:30:31",
  99. "endTime": "2021-05-19 15:31:25",
  100. "answerList": [
  101. {
  102. "answer": [
  103. {
  104. "attachList": null,
  105. "optionId": null,
  106. "content": "aa",
  107. "score": null
  108. },
  109. {
  110. "attachList": null,
  111. "optionId": null,
  112. "content": "aa",
  113. "score": null
  114. }
  115. ],
  116. "questionId": "q1",
  117. "questionType": "EXAM_MULTI_FILL_IN_BLANK_QUESTION",
  118. "answerScore": 0,
  119. "answerText": "aa;aa",
  120. "commonAnswerModels": null,
  121. "answerBizInfo": null,
  122. "isAllCorrect": null,
  123. "reviewText": null
  124. }
  125. ],
  126. "fromClient": "",
  127. "reviewed": "N",
  128. "reviewerId": null,
  129. "reviewerName": null,
  130. "duration": "54147",
  131. "remainTime": null,
  132. "correctCount": null,
  133. "falseCount": null,
  134. "calculateResult": {
  135. "subjectiveScore": null,
  136. "objectiveScore": 0.00,
  137. "score": 0.00
  138. }
  139. }
  140. }
参数名称 参数说明 数据类型
data 答卷基本信息数组 array
form 表单信息 Form
 title 标题 string
 description 描述 string
 categoryId 模板分类 string
 type 表单类型 string
 app 所属应用 string
 componentList 题目列表 List
 publishConfig 发布配置 PublishConfig
  fillInLimit 填写是否有次数限制 String
  fillInLimitCount 填写次数设置 Integer
  open 开放应用外填报 Y:开发,N:不开放 String
  showType 题目的展示方式 {NORMAL: 正常, ONE_PAGE_ONE_QUESTION: 一页一题} String
  answerType 回答类型 INSTANR: 即时回答, FINAL: 最终统计 String
  showProgressBar 展示答题进度 Y:展示,N:不展示 String
 startTime 开始时间 Date
 endTime 结束时间 Date
 fromTemplateId 表单模板Id String
 publishTime 发布时间 Date
 status 状态{UN_PUBLISH: 未发布状态, PUBLISH: 发布状态, STOP: 停止状态} String
 logo logo String
 bizId 业务Id String
 bizType 业务类型 String
 submitCount 提交数量 String
 mustReviewed 是否需要批阅 0否 1是 String
 reviewerIdList 批阅人列表 List
 characterType 性格测试类型 List
userId 用户Id string
userName 用户名 string
ip ip string
startTime 开始时间 Date
endTime 结束时间 Date
formId 表单Id string
endTime 结束时间 Date
answerList 答卷组卷详情 List
fromClient 来源 String
reviewed 是否批阅 String
reviewerId 批阅人Id String
reviewerName 批阅人 String
duration 答题时长 Long
remainTime 剩余作答次数 Integer
correctCount 正确题目数量 Integer
falseCount 错误题目数量 Integer
calculateResult 作答结果 AnswerPaperCalculateResult

批阅答卷

URL : `{{baseUrl}}/review/{answerPaperId}

URL Parameters : answerPaperId=[string] answerPaperId 是表单作答的Id

Auth required : True

返回示例

  1. {
  2. "code": 0,
  3. "data": "",
  4. "msg": "",
  5. "success": true
  6. }

导出答卷

Method : GET

URL : {{baseUrl}}/answer_paper/export/:formId

URL Parameters : formId=[string] formId 是表单的Id

Auth required : True

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": null
  6. }

答卷预览量增加

Method : PUT

URL : {{baseUrl}}/answer_paper/increase_viewed_count/:formId

URL Parameters : formId=[string] formId 是表单的Id

Auth required : False

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": null
  6. }

答卷数量统计信息查询

Method : GET

URL : {{baseUrl}}/get /answer_paper/answer_count_statistics/:formId

URL Parameters : formId=[string] formId 是表单的Id

Auth required : True

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": {
  6. "submitCount": 2,
  7. "answerViewCount": 3
  8. }
  9. }

请求参数

返回参数

参数名称 参数说明 数据类型
submitCount 提交数量 string
answerViewCount 答卷浏览量 string

查看我的某表单作答数量

Method : GET

URL : {{baseUrl}}/get /answer_paper/answerCount/:formId

URL Parameters : formId=[string] formId 是表单的Id

Auth required : True

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": 2
  6. }

请求参数

返回参数

参数名称 参数说明 数据类型
data 剩余填报次数 Integer

我的应用表单接口

查询我的app分页统计

Method : POST

URL : {{baseUrl}}/app/statistics/myapp

Auth required : True

Body :

  1. {
  2. // 分页参数
  3. "appName": "app名称搜索"
  4. }

请求参数

参数名称 参数说明 请求类型 是否必须 默认值 限制 数据类型
appName app名称 body true string

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": {
  6. "total": 1,
  7. "size": 20,
  8. "pages": 1,
  9. "current": 1,
  10. "records": [
  11. {
  12. "appId": "training",
  13. "appName": "培训系统",
  14. "todayFillInCount": "0",
  15. "dayOnDay": 0.0000,
  16. "myCreatedCount": "0"
  17. }
  18. ]
  19. }
  20. }

返回参数

参数名称 参数说明 数据类型
appId app服务ID string
appName app服务名 string
todayFillInCount 今日填报数量 long
dayOnDay 填报日环比 long
myCreatedCount 我创建的表单数量 long

查询某app的统计信息

Method : GET

URL : {{baseUrl}}/app/statistics/:appId

URL Parameters : appId=[string] appId 是app的Id

Auth required : True

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": {
  6. "appId": "training",
  7. "appName": "培训系统",
  8. "todayFillInCount": "0",
  9. "totalFillInCount": "0",
  10. "todayCreteFormCount": "0",
  11. "totalCreteFormCount": "0",
  12. "dayOnDay": 0.0000,
  13. "weekOnWeek": 0.0000
  14. }
  15. }

返回参数

参数名称 参数说明 数据类型
appId app服务ID string
appName app服务名 string
todayFillInCount 今日填报数量 long
totalFillInCount 总共填报数量 long
todayCreteFormCount 今天创建表单数量 long
totalCreteFormCount 总共创建的表单数量 long
dayOnDay 填报日环比,保留四位小数 number
weekOnWeek 周同比,保留四位小数 number

数据权限接口

查询数据权限列表

Method : GET

URL : {{baseUrl}}/data_permission/list

Auth required : True

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": [
  6. {
  7. "roleId": "31002",
  8. "name": "问卷系统管理员",
  9. "permissions": [
  10. {
  11. "key": "ANONYMOUS_IP",
  12. "name": "表单数据_查看匿名用户IP",
  13. "hasPermission": "N"
  14. }
  15. ]
  16. },
  17. {
  18. "roleId": "30005",
  19. "name": "一般用户",
  20. "permissions": [
  21. {
  22. "key": "ANONYMOUS_IP",
  23. "name": "表单数据_查看匿名用户IP",
  24. "hasPermission": "N"
  25. }
  26. ]
  27. }
  28. ]
  29. }

返回参数

参数名称 参数说明 数据类型
roleId 角色Id string
name 角色名称 string
permissions 权限 array
 key 权限key string
 name 权限名称 string
 hasPermission 是否有权限 {Y: 有权限, N: 没有权限}

保存某角色的数据权限

Method : POST

URL : {{baseUrl}}/data_permission/save/:roleId

URL Parameters : roleId=[string] roleId 是角色的Id

Auth required : True

Body :

  1. [
  2. "ANONYMOUS_IP"
  3. ]

请求参数

参数名称 参数说明 请求类型 是否必须 默认值 限制 数据类型
权限Key列表 权限Key列表 body true array[string]

返回示例

  1. {
  2. "success": true,
  3. "msg": null,
  4. "code": 0,
  5. "data": null
  6. }