Save Quiz 新建或更新Quiz
POST /v1/platform/quiz/save
- =》
{
"token": "xxx",
"id": 0,
"history_id": 0,
"classify": 1, //0为保留值,1为普通文章,2为壁纸文章
"author": "xxx",
"title": "This is a just a title.",
"alias": "This is a just a title.",
"lang": "ar",
"category": "Food",
"sub": "Cake",
"type": 1,
"descr": "This is just a descr",
"descr_alias": "This is just a descr",
"tags": "aaa,bbb",
"tags_alias": "aaa,bbb",
"keywords":"aaa,bbb",
"cover": "https://xxx.com/xxx.jpg",
"cover_via": "UnSplash",
"cover_url": "https://xxx.com/xxx.jpg",
"wallpaper": "https://xxx.com/xxx.jpg",
"wallpaper_url": "https://xxx.com/xxx.jpg",
"wallpaper_via": "Google",
"format": "up-2",
"status": 0,
"results": [{
"id": 3,
"title": "This is a result",
"alias": "This is a result",
"score_range": "1,100",
"img": "https://xxx.com/xxx.jpg",
"img_via": "Google",
"img_url": "https://xxx.com/xxx.jpg",
"descr": "This is just a descr",
"descr_alias": "This is just a descr"
}],
"questions": [{
"id": 0,
"title": "This is a question",
"alias": "This is a question",
"bg_color": "#ffffff",
"img": "https://xxx.com/xxx.jpg",
"img_via": "Google",
"img_url": "https://xxx.com/xxx.jpg",
"answers": [{
"id": 0,
"title": "This is a answer",
"alias": "This is a answer",
"bg_color": "#ffffff",
"img": "https://xxx.com/xxx.jpg",
"img_via": "Google",
"img_url": "https://xxx.com/xxx.jpg",
"correct": 0,
"score": 10
}]
}]
}
- 《=
{
"success": "OK",
"data": {
"id": 1002
}
}