GET api/v1/Subject/GetByUserName?userName={userName}&drivingSchoolId={drivingSchoolId}
通过用户帐号获取用户科目视频信息
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
userName | 用户帐号 |
Define this parameter in the request URI. |
drivingSchoolId | 驾校Id |
Define this parameter in the request URI. |
Response Information
Response body formats
application/json, text/json
Sample:
{ "data": { "subjects": [ { "isFinished": true, "finishedMsg": "sample string 2", "keyFinishedMsg": [ "sample string 1", "sample string 2", "sample string 3" ], "lessons": [ { "practice": { "questions": [ { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] }, { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] }, { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] } ] }, "videos": [ { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" }, { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" }, { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" } ], "canLearn": true, "isLearned": true, "subjectId": 3, "lessonId": 4, "lessonName": "sample string 5", "teacherName": "sample string 6", "thumbnail": "sample string 7", "hasPractice": true }, { "practice": { "questions": [ { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] }, { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] }, { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] } ] }, "videos": [ { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" }, { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" }, { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" } ], "canLearn": true, "isLearned": true, "subjectId": 3, "lessonId": 4, "lessonName": "sample string 5", "teacherName": "sample string 6", "thumbnail": "sample string 7", "hasPractice": true }, { "practice": { "questions": [ { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] }, { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] }, { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] } ] }, "videos": [ { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" }, { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" }, { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" } ], "canLearn": true, "isLearned": true, "subjectId": 3, "lessonId": 4, "lessonName": "sample string 5", "teacherName": "sample string 6", "thumbnail": "sample string 7", "hasPractice": true } ], "subjectId": 3, "subjectName": "sample string 4" }, { "isFinished": true, "finishedMsg": "sample string 2", "keyFinishedMsg": [ "sample string 1", "sample string 2", "sample string 3" ], "lessons": [ { "practice": { "questions": [ { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] }, { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] }, { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] } ] }, "videos": [ { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" }, { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" }, { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" } ], "canLearn": true, "isLearned": true, "subjectId": 3, "lessonId": 4, "lessonName": "sample string 5", "teacherName": "sample string 6", "thumbnail": "sample string 7", "hasPractice": true }, { "practice": { "questions": [ { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] }, { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] }, { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] } ] }, "videos": [ { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" }, { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" }, { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" } ], "canLearn": true, "isLearned": true, "subjectId": 3, "lessonId": 4, "lessonName": "sample string 5", "teacherName": "sample string 6", "thumbnail": "sample string 7", "hasPractice": true }, { "practice": { "questions": [ { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] }, { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] }, { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] } ] }, "videos": [ { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" }, { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" }, { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" } ], "canLearn": true, "isLearned": true, "subjectId": 3, "lessonId": 4, "lessonName": "sample string 5", "teacherName": "sample string 6", "thumbnail": "sample string 7", "hasPractice": true } ], "subjectId": 3, "subjectName": "sample string 4" }, { "isFinished": true, "finishedMsg": "sample string 2", "keyFinishedMsg": [ "sample string 1", "sample string 2", "sample string 3" ], "lessons": [ { "practice": { "questions": [ { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] }, { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] }, { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] } ] }, "videos": [ { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" }, { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" }, { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" } ], "canLearn": true, "isLearned": true, "subjectId": 3, "lessonId": 4, "lessonName": "sample string 5", "teacherName": "sample string 6", "thumbnail": "sample string 7", "hasPractice": true }, { "practice": { "questions": [ { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] }, { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] }, { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] } ] }, "videos": [ { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" }, { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" }, { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" } ], "canLearn": true, "isLearned": true, "subjectId": 3, "lessonId": 4, "lessonName": "sample string 5", "teacherName": "sample string 6", "thumbnail": "sample string 7", "hasPractice": true }, { "practice": { "questions": [ { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] }, { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] }, { "id": 1, "question": "sample string 2", "image": "sample string 3", "imageWidth": 4, "imageHeight": 5, "options": [ "sample string 1", "sample string 2", "sample string 3" ], "answer": [ 1, 2, 3 ] } ] }, "videos": [ { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" }, { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" }, { "isWatched": true, "videoSecondsTxt": "00:00:07", "videoId": 2, "lessonId": 3, "videoName": "sample string 4", "playOrder": 5, "videoThumbnail": "sample string 6", "videoSeconds": 7, "playUrl": "sample string 8", "extension": "sample string 9" } ], "canLearn": true, "isLearned": true, "subjectId": 3, "lessonId": 4, "lessonName": "sample string 5", "teacherName": "sample string 6", "thumbnail": "sample string 7", "hasPractice": true } ], "subjectId": 3, "subjectName": "sample string 4" } ] }, "status": 0, "friendlyMessage": "sample string 1", "message": "sample string 2", "requestId": "66c663f189274bcaa8a4110818fc33f0", "appOwnerId": 0 }