- 公共模块/base
- 计划模块/plan
- 景点
- 试题
- 任务
- 开发者工具
- 方案
- 线路
- 剧本
- 审核
- 行程-个人中心
- 人员管理/团队管理
- 任务管理
- 4-团队路线管理-新的任务
- 100-初始化行程团队景点(自动调用)
- 3-团队路线管理-团队任务列表(废弃)
- 5-团队路线管理-更新团队任务列表(废弃)
- 1-团队路线管理-任务一致性查询(如果发现该行程没有初始化景点,内部调用初始化行程团队景点)
- 2-团队路线管理-修改任务模式
- 4-团队路线管理-从任务库获取任务
- 5-团队路线管理-保存一个个人任务
- 5-团队路线管理-新增一个团队任务
- 3-团队路线管理-个人任务列表
- 3-团队路线管理-团队任务列表
- 3-团队路线管理-团队任务列表 - 删除
- 3-团队路线管理-个人任务-添加任务-景点/人员选择列表
- 3-团队路线管理-个人任务列表 - 删除
- 设置方案景点任务数目
- 获取方案景点任务数目
- 获取景点最大可用团队任务数目
- 团队路线管理
- 后勤管理
- 队长/参与者
- 100-初始化行程(自动调用)
- 99-根据方案id获取方案行程订单详情
- 99-删除行程—连带清除此行程下的所有数据和用户操作数据
- 99-开启签到/开始行程
- 999-调试用获取方案全部数据结构
- 行程报告
- 历史记录
- 闯关记录
- 组织架构/user
- 小程序接口 (部分)/wxUser
- 文件上传/user
- 导入向接口/wxUser
- 二期
- 3.0
- 其他
- 订单
- 大屏/plan
- deepSeek
- 线上
- 本地
- websocket本地测试连接
- 行程通知POST
- 測試GET
- 富文本框文件上传POST
新增任务
开发中
user
https://travel.daoziji.com/user
user
https://travel.daoziji.com/user
POST
https://travel.daoziji.com/user
请求参数
Header 参数
token
string
可选
默认值:
59488631878869803924403251
Body 参数application/json
array of:
userId
integer
管理员id
scenicId
integer
景点id
title
string
标题
mode
integer
任务方式 1图片 2视频 3答题 4领队确认
type
integer
任务类型 1团建 2亲子 3研学 4个人
introduce
string
任务说明
questionIds
array[integer]
问题ids
taskRole
integer
任务角色 0多人团队 1单人团队
prop
string
所需道具
duration
integer
任务时长 单位秒
img
string
图片地址
select
string
可选
testQuestionDtos
array [object {5}]
问题
select
string
选项ABC
testOptions
array [object {2}]
可选
topic
string
标题
limitTime
integer
限制时间
remark
string
解析
exhibit
integer
0展示1不展示
useType
integer
适用路线类型(1跟团游 2拼团 4研学 8亲子 16自助亲) 默认31全部
fee
integer
任务费用
personal
boolean
0非个人 1个人
示例
[
{
"userId": 3,
"scenicId": 1,
"title": "答题任务",
"mode": 3,
"type": 2,
"introduce": "回答题目",
"personal": false,
"testQuestionDtos": [
{
"select": "ABC",
"topic": "问题标题",
"limitTime": 90,
"remark": "题目解析",
"testOptions": [
{
"text": "选项1",
"sort": 1
},
{
"text": "选项2",
"sort": 2
},
{
"text": "选项3",
"sort": 3
},
{
"text": "选项4",
"sort": 4
}
]
}
],
"prop": "无",
"duration": 900,
"img": "http://hzdaoziji.oss-cn-hangzhou.aliyuncs.com/hzdaoziji/2022/12/03/48e2fae120d541febf0b5a1c1fd081f9.png",
"taskRole": 1,
"exhibit": 0,
"useType": 31,
"fee": 10
},
{
"userId": 3,
"scenicId": 1,
"title": "视频任务",
"mode": 2,
"type": 1,
"introduce": "每个小组背一句宋朝宋真宗赵恒的《劝学》,然后集合一起大场吟诵整首《劝学》",
"prop": "无",
"duration": 7200,
"img": "http://hzdaoziji.oss-cn-hangzhou.aliyuncs.com/hzdaoziji/2022/12/03/48e2fae120d541febf0b5a1c1fd081f9.png",
"taskRole": 1,
"exhibit": 0,
"useType": 31,
"fee": 10
},
{
"userId": 3,
"scenicId": 1,
"title": "图片任务",
"mode": 1,
"type": 3,
"introduce": "研学",
"prop": "无",
"img": "http://hzdaoziji.oss-cn-hangzhou.aliyuncs.com/hzdaoziji/2022/12/03/48e2fae120d541febf0b5a1c1fd081f9.png",
"taskRole": 1,
"exhibit": 0,
"useType": 31,
"fee": 10
}
]
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://travel.daoziji.com/user/task/add' \
--header 'token: 59488631878869803924403251' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"userId": 3,
"scenicId": 1,
"title": "答题任务",
"mode": 3,
"type": 2,
"introduce": "回答题目",
"personal": false,
"testQuestionDtos": [
{
"select": "ABC",
"topic": "问题标题",
"limitTime": 90,
"remark": "题目解析",
"testOptions": [
{
"text": "选项1",
"sort": 1
},
{
"text": "选项2",
"sort": 2
},
{
"text": "选项3",
"sort": 3
},
{
"text": "选项4",
"sort": 4
}
]
}
],
"prop": "无",
"duration": 900,
"img": "http://hzdaoziji.oss-cn-hangzhou.aliyuncs.com/hzdaoziji/2022/12/03/48e2fae120d541febf0b5a1c1fd081f9.png",
"taskRole": 1,
"exhibit": 0,
"useType": 31,
"fee": 10
},
{
"userId": 3,
"scenicId": 1,
"title": "视频任务",
"mode": 2,
"type": 1,
"introduce": "每个小组背一句宋朝宋真宗赵恒的《劝学》,然后集合一起大场吟诵整首《劝学》",
"prop": "无",
"duration": 7200,
"img": "http://hzdaoziji.oss-cn-hangzhou.aliyuncs.com/hzdaoziji/2022/12/03/48e2fae120d541febf0b5a1c1fd081f9.png",
"taskRole": 1,
"exhibit": 0,
"useType": 31,
"fee": 10
},
{
"userId": 3,
"scenicId": 1,
"title": "图片任务",
"mode": 1,
"type": 3,
"introduce": "研学",
"prop": "无",
"img": "http://hzdaoziji.oss-cn-hangzhou.aliyuncs.com/hzdaoziji/2022/12/03/48e2fae120d541febf0b5a1c1fd081f9.png",
"taskRole": 1,
"exhibit": 0,
"useType": 31,
"fee": 10
}
]'
返回响应
🟢200成功
application/json
Body
array of:
示例
[
{}
]