文档
测试

模板详情

POST
template/get_template_detail

请求参数

参数名
类型
描述
必填
template_id
模板ID
必填

响应参数

参数名
类型
描述
必填
data
数据
必填
name
模板名
必填
cover
背景图
必填
fee_type
付费类型 0 免费 1付费
必填
price
价格
必填
origin_price
原价
必填
year_vip_free
是否年卡免费
必填
template_schedule
模板习惯或目标
必填
type
1目标 2 习惯
必填
start_date
开始时间
必填
end_date
结束时间
必填
duration
时间跨度
必填
schedule_keys
关键字信息
必填
confident_index
信心指数
必填
key_result
关键结果
必填
crontabs
type为2时(习惯)
必填
cron_type
周期类型 day 天 week周 month月
必填
crontask
周期步骤
必填
task
任务
必填
schedule_steps
目标步骤
必填

说明 / 示例

{ "code": 0, "msg": "", "data": { "id": 1, "name": "21天读书营", "cover": "/images/rand1.png", "schedule_id": 1, "category_id": 1, "fee_type": 0, "price": null, "origin_price": null, "on_shelf": 1, "year_vip_free": 0, "desc": "<p><span style=\"font-weight: bold;\">hddddafad</span><br></p><p><span style=\"font-weight: bold; font-style: italic;\">jddddd</span></p><p><span style=\"font-style: italic; font-weight: 700; background-color: rgb(255, 255, 255); color: rgb(28, 72, 127);\">大法师老地方见啊是;大法师大手动发送到发多少</span></p><p><img src=\"http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/50/pcmoren_huaixiao_org.png\" alt=\"[坏笑]\" data-w-e=\"1\">😂<span style=\"font-style: italic; font-weight: 700; background-color: rgb(77, 128, 191);\"><br></span></p>", "status": 1, "created_at": "2021-07-20 23:23:40", "updated_at": "2021-07-28 22:25:00", "template_schedule": { "id": 1, "type": 2, "schedule_name": "21天读书营", "start_date": "2021-07-31", "end_date": "2021-08-21", "remark": null, "status": 1, "progress_rate": "0.00", "cron_type": "day", "created_at": "2021-07-12 16:02:06", "updated_at": "2021-07-12 16:02:11", "remind": null, "duration": 21, "schedule_keys": [ { "id": 45, "key_name": "key1", "confident_index": 2, "key_result": "能够快速阅读", "schedule_id": 1, "created_at": "2021-07-12 16:04:15", "updated_at": "2021-07-12 16:04:20", "status": 1 } ], "crontabs": [ { "id": 6, "schedule_id": 1, "cron_type": "day", "label": "每天", "day": 1, "created_at": "2021-07-12 16:30:04", "updated_at": "2021-07-12 16:30:08", "status": 1, "crontask": [ { "id": 10, "cron_id": 6, "schedule_id": 1, "task": "读第一页", "is_complete": 0, "created_at": "2021-07-12 16:30:58", "updated_at": "2021-07-12 16:31:03", "status": 1 }, { "id": 11, "cron_id": 6, "schedule_id": 1, "task": "读第二页", "is_complete": 0, "created_at": "2021-07-12 16:31:38", "updated_at": "2021-07-12 16:31:34", "status": 1 } ] } ] } } }