文档
测试

新-获取用户当前学习课本信息

GET
/wxminienglish/learn/getUserNowLearn

接口描述

点击学习按钮后,进入学习页面,接口会返回两部分内容:一部分是当前选中课本的内容+目录,另一部分是当前应该从从课本的什么位置开始学习的记录信息。拿着记录信息(都是数组下标)去课本中找就行。

请求参数

参数名
类型
描述
必填
bookId
课本id,必须
必填
unitId
单元id,必须
必填
lessonId
课本id,必须
必填

响应参数

参数名
类型
描述
必填
errNo
int
示例:0
必填
errMsg
string
示例:succ
必填
data
object
数据字典
必填
gradeTag
string
示例:一年级上册
必填
bookId
int
示例:28
必填
selectPageIndex
int
示例:12
必填
selectFirstCatalogIndex
int
示例:0
必填
selectSecondCatalogIndex
int
示例:3
必填
bookInfo
object
数据字典
必填
bookId
int
示例:28
必填
gradeTag
string
示例:一年级上册
必填
bookNickName
string
示例:深圳牛津版
必填
bookFullName
string
示例:深圳版小学英语一年级上册
必填
bookCcoveUrl
string
示例:https://laxin-miniapp-1253445850.cos.ap-beijing.myqcloud.com/english_book_28.jpg
必填
pages
array
数据列表
必填
bookId
int
示例:28
必填
unitId
int
示例:3830, 当前页对应的单元id
必填
lessonId
int
示例:3838,当前页对应的lessonId
必填
pageId
int
示例:1935
可选
page
int
示例:2
可选
picUrl
string
示例:https://laxin-miniapp-1253445850.cos.ap-beijing.myqcloud.com/english_pic_line-28-2.jpg
必填
picWidth
int
示例:747
必填
picHeight
int
示例:1046
必填
sentences
array
数据列表
必填
sentenceId
int
示例:21741
必填
pageId
int
示例:1935
可选
content
string
示例:Unit 1 Hello
必填
trans
string
示例:第一单元 你好
必填
audioUrl
string
示例:https://laxin-miniapp-1253445850.cos.ap-beijing.myqcloud.com/english_sound_line-pic-1935-lineno-0.mp3
必填
audioStartTimeMs
int
示例:0
必填
audioEndTimeMs
int
示例:4000
必填
markPosition
object
数据字典
必填
origin
object
数据字典
必填
x
float
示例:0.0482
必填
y
float
示例:0.0357
必填
size
object
数据字典
必填
width
float
示例:0.3195
必填
height
float
示例:0.0982
必填
catalog
object
数据字典
必填
firstCatalogs
array
数据列表
必填
unitId
int
示例:3830
必填
unitName
string
示例:Module 1 Getting to know you
必填
pageAnchor
int
示例:2
必填
pageAnchorIndex
int
示例:0
必填
secondCatalogs
array
数据列表
必填
lessonId
int
示例:3838
必填
lessonName
string
示例:Unit 1 Hello
必填
pageAnchor
int
示例:2
必填
pageAnchorIndex
int
示例:0
必填

说明 / 示例

```json { "errNo":0, "errMsg":"succ", "data":{ "gradeTag":"一年级上册", "bookId":28, "selectPageIndex":12, "selectFirstCatalogIndex":0, "selectSecondCatalogIndex":3, "bookInfo":{ "bookId":28, "gradeTag":"一年级上册", "bookNickName":"深圳牛津版", "bookFullName":"深圳版小学英语一年级上册", "bookCcoveUrl":"https://laxin-miniapp-1253445850.cos.ap-beijing.myqcloud.com/english_book_28.jpg", "pages":[ { "bookId":28, "unitId":3830, "lessonId":3838, "pageId":1935, "page":2, "picUrl":"https://laxin-miniapp-1253445850.cos.ap-beijing.myqcloud.com/english_pic_line-28-2.jpg", "picWidth":747, "picHeight":1046, "sentences":[ { "sentenceId":21741, "pageId":1935, "content":"Unit 1 Hello", "trans":"第一单元 你好", "audioUrl":"https://laxin-miniapp-1253445850.cos.ap-beijing.myqcloud.com/english_sound_line-pic-1935-lineno-0.mp3", "audioStartTimeMs":0, "audioEndTimeMs":4000, "markPosition":{ "origin":{ "x":0.0482, "y":0.0357 }, "size":{ "width":0.3195, "height":0.0982 } } }, { "sentenceId":21742, "pageId":1935, "content":"Hello!/Hi!", "trans":"你好!/嗨!", "audioUrl":"https://laxin-miniapp-1253445850.cos.ap-beijing.myqcloud.com/english_sound_line-pic-1935-lineno-1.mp3", "audioStartTimeMs":0, "audioEndTimeMs":3000, "markPosition":{ "origin":{ "x":0.5176, "y":0.1428 }, "size":{ "width":0.3231, "height":0.0982 } } }, { "sentenceId":21743, "pageId":1935, "content":"Let's talk", "trans":"一起说", "audioUrl":"https://laxin-miniapp-1253445850.cos.ap-beijing.myqcloud.com/english_sound_line-pic-1935-lineno-2.mp3", "audioStartTimeMs":0, "audioEndTimeMs":2000, "markPosition":{ "origin":{ "x":0.1124, "y":0.1657 }, "size":{ "width":0.2606, "height":0.0943 } } }, { "sentenceId":21744, "pageId":1935, "content":"Hello!", "trans":"你好!", "audioUrl":"https://laxin-miniapp-1253445850.cos.ap-beijing.myqcloud.com/english_sound_line-pic-1935-lineno-3.mp3", "audioStartTimeMs":0, "audioEndTimeMs":2000, "markPosition":{ "origin":{ "x":0.332, "y":0.2677 }, "size":{ "width":0.0946, "height":0.0331 } } }, { "sentenceId":21745, "pageId":1935, "content":"Hi!", "trans":"嗨!", "audioUrl":"https://laxin-miniapp-1253445850.cos.ap-beijing.myqcloud.com/english_sound_line-pic-1935-lineno-4.mp3", "audioStartTimeMs":0, "audioEndTimeMs":2000, "markPosition":{ "origin":{ "x":0.5694, "y":0.2779 }, "size":{ "width":0.0768, "height":0.0344 } } }, { "sentenceId":21746, "pageId":1935, "content":"Goodbye!", "trans":"再见!", "audioUrl":"https://laxin-miniapp-1253445850.cos.ap-beijing.myqcloud.com/english_sound_line-pic-1935-lineno-5.mp3", "audioStartTimeMs":0, "audioEndTimeMs":2000, "markPosition":{ "origin":{ "x":0.3017, "y":0.4882 }, "size":{ "width":0.141, "height":0.0331 } } }, { "sentenceId":21747, "pageId":1935, "content":"Goodbye!", "trans":"再见!", "audioUrl":"https://laxin-miniapp-1253445850.cos.ap-beijing.myqcloud.com/english_sound_line-pic-1935-lineno-6.mp3", "audioStartTimeMs":0, "audioEndTimeMs":2000, "markPosition":{ "origin":{ "x":0.6408, "y":0.6399 }, "size":{ "width":0.141, "height":0.0319 } } }, { "sentenceId":21748, "pageId":1935, "content":"Good morning!", "trans":"早上好!", "audioUrl":"https://laxin-miniapp-1253445850.cos.ap-beijing.myqcloud.com/english_sound_line-pic-1935-lineno-7.mp3", "audioStartTimeMs":0, "audioEndTimeMs":3000, "markPosition":{ "origin":{ "x":0.3427, "y":0.6973 }, "size":{ "width":0.1963, "height":0.0319 } } }, { "sentenceId":21749, "pageId":1935, "content":"Good morning!", "trans":"早上好!", "audioUrl":"https://laxin-miniapp-1253445850.cos.ap-beijing.myqcloud.com/english_sound_line-pic-1935-lineno-8.mp3", "audioStartTimeMs":0, "audioEndTimeMs":2000, "markPosition":{ "origin":{ "x":0.6229, "y":0.8528 }, "size":{ "width":0.1963, "height":0.0319 } } } ] } ], "catalog":{ "firstCatalogs":[ { "unitId":3830, "unitName":"Module 1 Getting to know you", "pageAnchor":2, "pageAnchorIndex":0, "secondCatalogs":[ { "lessonId":3838, "lessonName":"Unit 1 Hello", "pageAnchor":2, "pageAnchorIndex":0 }, { "lessonId":3839, "lessonName":"Unit 2 My classmates", "pageAnchor":6, "pageAnchorIndex":4 }, { "lessonId":3840, "lessonName":"Unit 3 My face", "pageAnchor":10, "pageAnchorIndex":8 }, { "lessonId":3841, "lessonName":"Revision 1", "pageAnchor":14, "pageAnchorIndex":12 } ] }, { "unitId":3831, "unitName":"Module 2 My family, my friends and me", "pageAnchor":16, "pageAnchorIndex":14, "secondCatalogs":[ { "lessonId":3842, "lessonName":"Unit 4 I can sing", "pageAnchor":16, "pageAnchorIndex":14 }, { "lessonId":3843, "lessonName":"Unit 5 My family", "pageAnchor":20, "pageAnchorIndex":18 }, { "lessonId":3844, "lessonName":"Unit 6 My friends", "pageAnchor":24, "pageAnchorIndex":22 }, { "lessonId":3845, "lessonName":"Revision 2", "pageAnchor":28, "pageAnchorIndex":26 } ] }, { "unitId":3832, "unitName":"Module 3 Places and activities", "pageAnchor":30, "pageAnchorIndex":28, "secondCatalogs":[ { "lessonId":3846, "lessonName":"Unit 7 Let's count", "pageAnchor":30, "pageAnchorIndex":28 }, { "lessonId":3847, "lessonName":"Unit 8 Apples, please", "pageAnchor":34, "pageAnchorIndex":32 }, { "lessonId":3848, "lessonName":"Unit 9 May I have a pie?", "pageAnchor":38, "pageAnchorIndex":36 }, { "lessonId":3849, "lessonName":"Revision 3", "pageAnchor":42, "pageAnchorIndex":40 } ] }, { "unitId":3833, "unitName":"Module 4 The world around us", "pageAnchor":44, "pageAnchorIndex":42, "secondCatalogs":[ { "lessonId":3850, "lessonName":"Unit 10 On the farm", "pageAnchor":44, "pageAnchorIndex":42 }, { "lessonId":3851, "lessonName":"Unit 11 In the zoo", "pageAnchor":48, "pageAnchorIndex":46 }, { "lessonId":3852, "lessonName":"Unit 12 In the park", "pageAnchor":52, "pageAnchorIndex":50 }, { "lessonId":3853, "lessonName":"Revision 4", "pageAnchor":56, "pageAnchorIndex":54 } ] }, { "unitId":3834, "unitName":"Word list 1", "pageAnchor":62, "pageAnchorIndex":60, "secondCatalogs":[ { "lessonId":3834, "lessonName":"Word list 1", "pageAnchor":62, "pageAnchorIndex":60 } ] }, { "unitId":3835, "unitName":"Word list 2", "pageAnchor":65, "pageAnchorIndex":63, "secondCatalogs":[ { "lessonId":3835, "lessonName":"Word list 2", "pageAnchor":65, "pageAnchorIndex":63 } ] }, { "unitId":3836, "unitName":"Daily expressions", "pageAnchor":69, "pageAnchorIndex":67, "secondCatalogs":[ { "lessonId":3836, "lessonName":"Daily expressions", "pageAnchor":69, "pageAnchorIndex":67 } ] }, { "unitId":3837, "unitName":"Picture dictionary", "pageAnchor":70, "pageAnchorIndex":68, "secondCatalogs":[ { "lessonId":3837, "lessonName":"Picture dictionary", "pageAnchor":70, "pageAnchorIndex":68 } ] }, { "unitId":3854, "unitName":"Project 1 This is my face", "pageAnchor":58, "pageAnchorIndex":56, "secondCatalogs":[ { "lessonId":3854, "lessonName":"Project 1 This is my face", "pageAnchor":58, "pageAnchorIndex":56 } ] }, { "unitId":3855, "unitName":"Project 2 My family", "pageAnchor":59, "pageAnchorIndex":57, "secondCatalogs":[ { "lessonId":3855, "lessonName":"Project 2 My family", "pageAnchor":59, "pageAnchorIndex":57 } ] }, { "unitId":3856, "unitName":"Project 3 Food", "pageAnchor":60, "pageAnchorIndex":58, "secondCatalogs":[ { "lessonId":3856, "lessonName":"Project 3 Food", "pageAnchor":60, "pageAnchorIndex":58 } ] }, { "unitId":3857, "unitName":"Project 4 The zoo", "pageAnchor":61, "pageAnchorIndex":59, "secondCatalogs":[ { "lessonId":3857, "lessonName":"Project 4 The zoo", "pageAnchor":61, "pageAnchorIndex":59 } ] } ] } } } } ```