接入聚合页应用
一、鉴权方式(参照编排开发说明)
http://fm.aodianyun.com/md/doc/index.html?doc=APAAS-%E5%BC%80%E5%8F%91%E8%80%85%E6%96%87%E6%A1%A3
二、工具组件接口
查询字段接口 queryInfo
{
"flag":100,
"flagString":"success",
"data":{
"key1":{
"options":[{"label":"第一","value":"first"},{"label":"第二","value":"second"}]
"value":"first", //默认值
"type":"select"//下拉多选框
},
"key2":{
"value":"", //默认值
"type":"input"//输入框
},
.....
},
"keys":{
"key1":"年纪", //对应data里的key1名称
"key2":"标题", //对应data里的key2名称
},
"form":[ //联动数据
{
"key": "gradeId",
"keyName": "学段",
"data": [
{
"name": "全部学段",
"value": -1,
"child": []
},
{
"name": "小学",
"value": 1,
"child": [
{
"key": "subId",
"keyName": "年纪",
"data": [
{
"name": "全部年纪",
"value": -1
"child":[]
}
]
},
{
"key": "type",
"keyName": "类型",
"data": [
{
"name": "全部类型",
"value": -1
"child":[]
}
]
}
]
}
]
}
数据id列表接口 getDataIds
入参 (根据查询字段接口)
| 字段名 | 字段类型 | 说明 |
|---|---|---|
| parentUin | int | uin |
| parentId | int | 用户组织权限组 |
| userId | int | 用户userid |
| userCode | int | 用户标识 |
| page | int | 页数 |
| num | int | 每页数目 |
| …. | …. | 应用定义的查询参数 |
返回示例
{
"flag":100,
"flagString":"success",
"data":[334,434,5324,423,243,31]
"total":6 //总条数
"keys":{
"id":唯一标识(必须返回字段)
"title":"标题", (必须返回字段)
"url":"视频地址", (必须返回字段)
"coverImage":"封面图"(必须返回字段)
....
}
}
数据列表接口 getDataLists
入参 (根据查询字段接口)
| 字段名 | 字段类型 | 说明 |
|---|---|---|
| parentUin | int | uin |
| parentId | int | 用户组织权限组 |
| userId | int | 用户userid |
| userCode | int | 用户标识 |
| page | int | 页数 |
| num | int | 每页数目 |
| …. | …. | 应用定义的查询参数 |
返回示例
{
"flag":100,
"flagString":"success",
"data":[
{
"id":1 (必须返回字段)
"title":"测试1", (必须返回字段)
"coverImage":"http://xxx",(必须返回字段)
"url":"http://xxx/xxx",(必须返回字段)
"......":...(自由拓展参数)
....
},
{
"id":1
"title":"测试1",
"coverImage":"http://xxx",
"url":"http://xxx/xxx",
"....":...
....
}]
.....
},
"total":2 //总条数
"keys":{
"id":唯一标识(必须返回字段)
"title":"标题", (必须返回字段)
"url":"视频地址", (必须返回字段)
"coverImage":"封面图"(必须返回字段)
....
}
}
根据批量查询数据列表接口 getDataListsById
入参
| 字段名 | 字段类型 | 说明 |
|---|---|---|
| parentUin | int | uin |
| parentId | int | 用户组织权限组 |
| userId | int | 用户userid |
| userCode | int | 用户标识 |
| ids | Array | 工程id数组 |
| page | int | 页数 |
| num | int | 每页数目 |
返回示例
{
"flag":100,
"flagString":"success",
"data":[
{
"id":1
"title":"测试1",
"coverImage":"http://xxx",
"url":"http://xxx/xxx",
....
},
{
"id":2
"title":"测试2",
"coverImage":"http://xxx",
"url":"http://xxx/xxx",
....
}],
"total":2 //总条数
"keys":{
"id":唯一标识(必须返回字段)
"title":"标题", (必须返回字段)
"url":"视频地址", (必须返回字段)
"coverImage":"封面图"(必须返回字段)
....
}
}
关键字检索字段 keywordsParam
{
"flag":100,
"flagString":"success",
"data":{
"key1":"年纪", //可支持检索的字段
"key2":"标题", //可支持检索的字段
}
}
数据列表接口(根据条件搜索) getDataListsByInfo
入参 (根据查询字段接口)
| 字段名 | 字段类型 | 说明 |
|---|---|---|
| parentUin | int | uin |
| parentId | int | 用户组织权限组 |
| userId | int | 用户userid |
| userCode | int | 用户标识 |
| page | int | 页数 |
| num | int | 每页数目 |
| ids | array | [63,28,7485,2145,4121,556] |
| mode | array | [{“project”:35,”subject”:1},{“project”:36,”subject”:1}] |
| queryInfo | string | “ai智能” |
返回示例
{
"flag":100,
"flagString":"success",
"data":[
{
"id":1 (必须返回字段)
"title":"测试1", (必须返回字段)
"coverImage":"http://xxx",(必须返回字段)
"url":"http://xxx/xxx",(必须返回字段)
"......":...(自由拓展参数)
....
},
{
"id":1
"title":"测试1",
"coverImage":"http://xxx",
"url":"http://xxx/xxx",
"....":...
....
}]
.....
},
"total":2 //总条数
"keys":{
"id":唯一标识(必须返回字段)
"title":"标题", (必须返回字段)
"url":"视频地址", (必须返回字段)
"coverImage":"封面图"(必须返回字段)
....
}
}作者:张光博 创建时间:2024-02-23 17:32
最后编辑:张光博 更新时间:2024-09-26 10:50
最后编辑:张光博 更新时间:2024-09-26 10:50