OPEN2U基础服务 - 教学服务
CateLog_V3
添加目录 。 (CateLogAdd)
查看
接口地址:~/Course/CateLog_V3/CateLogAdd
接口方法:public string CateLogAdd(System.String courseID,System.String name,System.String parentID,System.String status,System.String sort)
返回数据:returns
课程ID(courseID):
目录名称(name):
父目录ID,若添加一级目录,则等于coursewareId(parentID):
目录状态(status)>0停用,1启用:
排序(sort)
当前用户token(token):
修改目录名称 。 (UpdateCateLogName)
查看
接口地址:~/Course/CateLog_V3/UpdateCateLogName
接口方法:public string UpdateCateLogName(System.String catalogId,System.String name)
返回数据:returns
目录ID(catalogId):
目录名称(name):
当前用户token(token):
修改课程目录状态 。 (UpdateCateLogStatus)
查看
接口地址:~/Course/CateLog_V3/UpdateCateLogStatus
接口方法:public string UpdateCateLogStatus(System.String catalogId,System.String status)
返回数据:returns
目录ID(catalogId):
目录状态。启用1,禁用0(status):
当前用户token(token):
删除课程目录 。 (DeleteCateLog)
查看
接口地址:~/Course/CateLog_V3/DeleteCateLog
接口方法:public string DeleteCateLog(System.String catalogId)
返回数据:returns
目录ID(catalogId):
面授课 章节目录ID(lessionIds xxx,xxx):
当前用户token(token):
移动目录到其他目录。注意:为课件内部的目录移动 。 (SortCateLog)
查看
接口地址:~/Course/CateLog_V3/SortCateLog
接口方法:public string SortCateLog(System.String id,System.String sortData,System.String oldCatalogId,System.String newCatalogId,string courseID)
返回数据:returns
目录ID(id):
移动操作完成后,目标目录的所有子目录的序号。"[目录ID,序号]的数组,如:[{qweas,1}, {jldjfo,2}]"(sortData):
原目录ID(oldCatalogId):
新目录ID(newCatalogId):
课程ID(courseID):
当前用户token(token):
查询目录 。 (GetCateLog)
查看
接口地址:~/Course/CateLog_V3/GetCateLog
接口方法:public string GetCateLog(System.String catalogId)
返回数据:returns
目录ID(catalogId):
当前用户token(token):
查询目录的资源列表 。 (GetCateLogResources)
查看
接口地址:~/Course/CateLog_V3/GetCateLogResources
接口方法:public string GetCateLogResources(System.String catalogId)
返回数据:returns
目录ID(catalogId):
当前用户token(token):
添加资源 。 (ResourceAdd)
查看
接口地址:~/Course/CateLog_V3/ResourceAdd
接口方法:public string ResourceAdd(System.String courseid,System.String type,System.String name,System.String data,System.String remark,System.String fileName,System.String storagePlatform,System.String storageType,System.String extensionName,System.String userName,System.String businessType,System.String extensionContent,System.String resourceTypeId,System.Int resourceSort,System.String resourceType,System.String callback)
返回数据:returns
课程ID *必传参数*(courseid):
资源类型 *必传参数*。1视频,2office(word, ppt, pdf, excel),3练习,4文本、111编程素材 (type):
资源名称 *必传参数*(name):
资源数据 *必传参数*。若为视频或文档,则为oss的存储ID,此时必填;若为练习或文本,则为资源数据,此时选填(data):
资源备注(remark):
文件原名称(fileName):
文件存储平台。1阿里云,2aws。(storagePlatform):
存储类型。0无效存储,1有效存储。(storageType):
文件扩展名(extensionName):
文件上传用户名(userName):
业务类型(0课程相关资源,1其他资源(businessType):
扩展内容(extensionContent):
挂载的Id *必传参数*(resourceTypeId):
Id资源的顺序 *必传参数*(resourceSort):
1 课件下挂载 2 目录下挂载 *必传参数*(resourceType):
当前用户token *必传参数*(token):
获取资源详细信息 。 (ResourceFullInfo)
查看
接口地址:~/Course/CateLog_V3/ResourceFullInfo
接口方法:public string ResourceFullInfo(String resourceId,String callback)
返回数据:returns
资源ID(resourceId):
当前用户token(token):
移除资源 。 (ResourceDelete)
查看
接口地址:~/Course/CateLog_V3/ResourceDelete
接口方法:public string ResourceDelete(System.String typeId,System.String resourceId,System.String type)
返回数据:returns
目录ID/课件Id(typeId):
资源ID(resourceId):
1 课件 2 目录(type):
当前用户token(token):
修改资源 。 (ResourceUpdate)
查看
接口地址:~/Course/CateLog_V3/ResourceUpdate
接口方法:public string ResourceUpdate(System.String resourceId,System.String name,System.String status,System.String data,System.String remark)
返回数据:returns
资源ID(resourceId):
资源名称(name):
资源状态。0禁用,1启用(status):
资源数据。若为视频或文档,则为oss的存储ID,此时必填;若为练习或文本,则为资源数据,此时选填(data):
资源备注(remark):
当前用户token(token):
目录下修改资源状态 。 (ResourceUpdateStatus)
查看
接口地址:~/Course/CateLog_V3/ResourceUpdateStatus
接口方法:public string ResourceUpdateStatus(System.String catalogId,System.String resourceId,System.String status)
返回数据:returns
目录ID(catalogId):
资源ID(resourceId):
资源状态。0禁用,1启用(status):
当前用户token(token):
查询资源,包含目录、知识点、资源的全部信息 。 (GetResourceAll)
查看
接口地址:~/Course/CateLog_V3/GetResourceAll
接口方法:public string GetResourceAll(System.String resourceId)
返回数据:returns
资源ID(resourceId):
当前用户token(token):
移动目录下的资源 。 (ResourcesSortForCatalog)
查看
接口地址:~/Course/CateLog_V3/ResourcesSortForCatalog
接口方法:public string ResourcesSortForCatalog(System.String catalogId,System.String sortData,string courseID)
返回数据:returns
当前目录ID 或者 目标目录ID(catalogId):
移动操作完成后,目标目录的所有资源的序号。"[资源ID,序号]的数组,如:[{qweas,1}, {jldjfo,2}]"(sortData):
课程ID(courseID):
当前用户token(token):
移动课件下的资源 。 (ResourcesSortForcoursewares)
查看
接口地址:~/Course/CateLog_V3/ResourcesSortForcoursewares
接口方法:public string ResourcesSortForcoursewares(System.String coursewareId,System.String sortData,string courseID)
返回数据:returns
课件ID(coursewareId):
移动操作完成后,目标目录的所有资源的序号。"[资源ID,序号]的数组,如:[{qweas,1}, {jldjfo,2}]"(sortData):
课程ID(courseID):
当前用户token(token):
修改资源到名称(UpdateResourceName)
查看
接口地址:~/Course/CateLog_V3/UpdateResourceName
接口方法:public string UpdateResourceName(System.String resourceId,System.String name)
返回数据:returns
资源ID(resourceId):
资源名称(name):
当前用户token(token):
添加视频练习(AddVideoExercise)
查看
接口地址:~/Course/CateLog_V3/AddVideoExercise
接口方法:public string AddVideoExercise(string videoId, int seconds, string exerciseId,string status, string callback)
返回数据:{"Success":true,"Message":"视频练习创建成功","error":"","payload":{"time":60,"content":"781a5e2d-1b3b-4181-8187-afa1c07a3ac0","resourceId":"75ece009-de38-47aa-a6c8-e14315326aee","type":2,"id":"5f109834-d5d2-4bca-afa4-b89522934cd9"}}
视频资源Id(videoId):
时间点(秒)(seconds):
练习资源id(exerciseId):
状态(0禁用,1启用)默认传1(status):
当前用户token(token):
修改视频练习时间点(UpdateVideoExercise)
查看
接口地址:~/Course/CateLog_V3/UpdateVideoExercise
接口方法:public string UpdateVideoExercise(string videoId, int seconds, string exerciseId, string callback)
返回数据:{"Success":true,"Message":"视频练习更新成功","error":"","payload":{"time":20,"content":"781a5e2d-1b3b-4181-8187-afa1c07a3ac0","resourceId":"75ece009-de38-47aa-a6c8-e14315326aee","type":2,"id":"5f109834-d5d2-4bca-afa4-b89522934cd9"}}
视频资源Id(videoId):
时间点(秒)(seconds):
练习资源id(exerciseId):
当前用户token(token):
修改视频练习状态(UpdateVideoExerciseStatus)
查看
接口地址:~/Course/CateLog_V3/UpdateVideoExerciseStatus
接口方法:public string UpdateVideoExerciseStatus(string videoId, string status, string exerciseId, string callback)
返回数据:{"Success":true,"Message":"视频练习更新成功","error":"","payload":{"time":20,"content":"781a5e2d-1b3b-4181-8187-afa1c07a3ac0","resourceId":"75ece009-de38-47aa-a6c8-e14315326aee","type":2,"id":"5f109834-d5d2-4bca-afa4-b89522934cd9"}}
视频资源Id(videoId):
时间点(秒)(status):
练习资源id(exerciseId):
当前用户token(token):
删除视频练习(DeleteVideoExercise)
查看
接口地址:~/Course/CateLog_V3/DeleteVideoExercise
接口方法:public string DeleteVideoExercise(string videoId,string exerciseId, string callback)
返回数据:{"Success":true,"Message":"视频练习删除成功","error":""}
视频资源Id(videoId):
练习资源id(exerciseId):
当前用户token(token):
视频练习唯一性(IsVideoExerciseUnique)
查看
接口地址:~/Course/CateLog_V3/IsVideoExerciseUnique
接口方法:public string IsVideoExerciseUnique(string videoId,int seconds, string callback)
返回数据:{"Success":false,"Message":"视频在当前时间点已存在练习","error":"100103"}
视频资源Id(videoId):
时间点(秒)(seconds):
当前用户token(token):
获取视频URL和单个练习信息(GetVideoUrlSingleExercise)
查看
接口地址:~/Course/CateLog_V3/GetVideoUrlSingleExercise
接口方法:public string GetVideoUrlSingleExercise(string videoId,string fileId, string exerciseId,string callback)
返回数据:{"Success":true,"Message":"获取成功","Data":{"videoURL":{ "TVMP4FHD": "http://open2ucdn.open.com.cn/testyf/VE/TEST/2017/1016/VEqywbgTEST20171016101527004.mp4?Expires=1508377367&OSSAccessKeyId=81kgc0VJPbZ4WnpN&Signature=WA0hh54oXzMUULEJvLuYGZeaygc%3D", "TVMP4HD": "http://open2ucdn.open.com.cn/testyf/VE/TEST/2017/1016/VEbcyxcTEST20171016101527114.mp4?Expires=1508377367&OSSAccessKeyId=81kgc0VJPbZ4WnpN&Signature=fAUdO5JoikdM1Tg0h8utwT8/HtY%3D", "TVMP4SD": "http://open2ucdn.open.com.cn/testyf/VE/TEST/2017/1016/VEfippdTEST20171016101527196.mp4?Expires=1508377367&OSSAccessKeyId=81kgc0VJPbZ4WnpN&Signature=hiFudb4SaY54EXnrwVbAByN6cNo%3D", "TVMP4LD": "http://open2ucdn.open.com.cn/testyf/VE/TEST/2017/1016/VEgmxbzTEST20171016101527154.mp4?Expires=1508377367&OSSAccessKeyId=81kgc0VJPbZ4WnpN&Signature=IcYr4eOi1YOq49s%2BVgSaR3oMCvY%3D", "TVMP4XLD": "http://open2ucdn.open.com.cn/testyf/VE/TEST/2017/1016/VEpabckTEST20171016101527242.mp4?Expires=1508377367&OSSAccessKeyId=81kgc0VJPbZ4WnpN&Signature=YDQF7E1d0GJyZsgYwTtdYxaxtZA%3D" },"videoExercise":[{ "resourceId": "75ece009-de38-47aa-a6c8-e14315326aee", "datainfo": "{\"resourceId\":\"f4470a28-10a4-4c30-8921-b6ccf58afa5e\"}", "name": "哈哈哈哈哈哈哈哈", "id": "f4470a28-10a4-4c30-8921-b6ccf58afa5e", "time": 38, "type": 3, "status": 1 }]}}
视频资源Id(videoId)必传:
单个练习ID(exerciseId):
当前用户token(token):
获取视频URL和所有练习信息(GetVideoUrlExercises)
查看
接口地址:~/Course/CateLog_V3/GetVideoUrlExercises
接口方法:public string GetVideoUrlExercises(string videoId,string status, string callback)
返回数据:{"Success":true,"Message":"获取成功","Data":{"videoURL":{ "TVMP4FHD": "http://open2ucdn.open.com.cn/testyf/VE/TEST/2017/1016/VEqywbgTEST20171016101527004.mp4?Expires=1508377367&OSSAccessKeyId=81kgc0VJPbZ4WnpN&Signature=WA0hh54oXzMUULEJvLuYGZeaygc%3D", "TVMP4HD": "http://open2ucdn.open.com.cn/testyf/VE/TEST/2017/1016/VEbcyxcTEST20171016101527114.mp4?Expires=1508377367&OSSAccessKeyId=81kgc0VJPbZ4WnpN&Signature=fAUdO5JoikdM1Tg0h8utwT8/HtY%3D", "TVMP4SD": "http://open2ucdn.open.com.cn/testyf/VE/TEST/2017/1016/VEfippdTEST20171016101527196.mp4?Expires=1508377367&OSSAccessKeyId=81kgc0VJPbZ4WnpN&Signature=hiFudb4SaY54EXnrwVbAByN6cNo%3D", "TVMP4LD": "http://open2ucdn.open.com.cn/testyf/VE/TEST/2017/1016/VEgmxbzTEST20171016101527154.mp4?Expires=1508377367&OSSAccessKeyId=81kgc0VJPbZ4WnpN&Signature=IcYr4eOi1YOq49s%2BVgSaR3oMCvY%3D", "TVMP4XLD": "http://open2ucdn.open.com.cn/testyf/VE/TEST/2017/1016/VEpabckTEST20171016101527242.mp4?Expires=1508377368&OSSAccessKeyId=81kgc0VJPbZ4WnpN&Signature=Gz4Yqm0JsXsxAlrjk8SyNuDRQNg%3D" },"videoExercise":[[ { "resourceId": "75ece009-de38-47aa-a6c8-e14315326aee", "datainfo": "{\"resourceId\":\"f4470a28-10a4-4c30-8921-b6ccf58afa5e\"}", "name": "哈哈哈哈哈哈哈哈", "id": "f4470a28-10a4-4c30-8921-b6ccf58afa5e", "time": 38, "type": 3, "status": 1 } ]]}}
视频资源Id(videoId):
状态(0禁用,1启用)(status):
当前用户token(token):
编辑带练习的视频(EditVideoExercise)
查看
接口地址:~/Course/CateLog_V3/EditVideoExercise
接口方法:public string EditVideoExercise(string resourceId,string name, string videoId, int seconds, string callback)
返回数据:{"Success":true,"Message":"保存成功","ErrCode":"","Data":null,"StartTime":"2017/10/17 10:31:03:855","EndTime":"2017/10/17 10:31:04:702"}
资源ID(resourceId)必传:
练习名称(name)必传:
视频ID(videoId)必传:
时间点(秒)(seconds)必传:
当前用户token(token):
添加课件 。 (CourseWareAdd)
查看
接口地址:~/Course/CateLog_V3/CourseWareAdd
接口方法:public string CourseWareAdd(System.String courseId,System.String name,System.String type,System.String status)
返回数据:returns
课程ID(courseId):
课件名称(name):
课件类型,1标准课程,2三分屏课程,3微课(type):
状态。1启用,0禁用(status):
当前用户token(token):
查询课件树,不包含文本和练习资源的内容 。 (GetTree)
查看
接口地址:~/Course/CateLog_V3/GetTree
接口方法:public string GetTree(System.String coursewareId,System.String coursewareType,string isLesson,String courseOrgID,System.String status)
返回数据:returns
课件ID(coursewareId):
课件加密类型(coursewareType)(来源于教务请求):
课程所属组织机构(courseOrgID)(来源于教务请求):
目录和资源均符合该状态。0停用,1启用(status):
面授授课(isLesson) true false:
当前用户token(token):
来源,教务专用,教学可以不填写(from):
查询课件信息 。 (GetCourse_CourseWareRel)
查看
接口地址:~/Course/CateLog_V3/GetCourse_CourseWareRel
接口方法:public string GetCourse_CourseWareRel(System.String courseId)
返回数据:returns
课程ID(courseId):
当前用户token(token):
获取学生目录树,此方法用了regis缓存 。 (GetDataStatusList)
查看
接口地址:~/Course/CateLog_V3/GetDataStatusList
接口方法:public string GetDataStatusList(System.String coursewareId,System.String token)
返回数据:returns
课程ID(coursewareId):
当前用户token(token):
获取学生目录树(包含资源状态)新(GetDataStatusListV3)
查看
接口地址:~/Course/CateLog_V3/GetDataStatusListV3
接口方法:public string GetDataStatusListV3(Guid studentCourseID)
返回数据:returns
选课ID(studentCourseID):
当前用户token(token):
获取学生目录树(包含资源状态)新(GetDataStatusList_V2)
查看
接口地址:~/Course/CateLog_V3/GetDataStatusList_V2
接口方法:public string GetDataStatusList_V2(Guid studentCourseID)
返回数据:returns
选课ID(studentCourseID):
当前用户token(token):
(教师)获取奥鹏课件树(GetTreeForOpen)
查看
接口地址:~/Course/CateLog_V3/GetTreeForOpen
接口方法:public string GetTreeForOpen(System.String courseId,string callback)
返回数据:returns
课程ID(courseId):
当前用户token(token):
获取课程 。 (GetCourse)
查看
接口地址:~/Course/CateLog_V3/GetCourse
接口方法:public string GetCourse(System.String courseId)
返回数据:returns
课程ID(courseId):
当前用户token(token):
发布课程 。 (PublishCourse)
查看
接口地址:~/Course/CateLog_V3/PublishCourse
接口方法:public string PublishCourse(System.String courseId)
返回数据:returns
课程ID(courseId):
当前用户token(token):
目录上添加知识点 。 (CateLogAddKnowledge)
查看
接口地址:~/Course/CateLog_V3/CateLogAddKnowledge
接口方法:public string CateLogAddKnowledge(System.String coursewareId,System.String name,System.String parentId,System.String status,System.String type,System.String keyword,System.String description,System.String difficulty)
返回数据:returns
课件ID(coursewareId):
知识点名称(name):
所在目录ID(parentId):
知识点状态(status):
知识点类型。1概念,2定理,3案例(type):
关键字(keyword):
课程描述(description):
难度。0易,1中,2难(difficulty):
当前用户token(token):
课件上添加知识点 。 (CourseWareAdd)
查看
接口地址:~/Course/CateLog_V3/CourseWareAdd
接口方法:public string CourseWareAdd(System.String coursewareId,System.String name,System.String status,System.String type,System.String keyword,System.String description,System.String difficulty)
返回数据:returns
课件ID(coursewareId):
知识点名称(name):
知识点状态(status):
知识点类型。1概念,2定理,3案例(type):
关键字(keyword):
课程描述(description):
难度。0易,1中,2难(difficulty):
当前用户token(token):
删除知识点 。 (DeleteKnowledge)
查看
接口地址:~/Course/CateLog_V3/DeleteKnowledge
接口方法:public string DeleteKnowledge(System.String knowledgeId,System.String coursewareId)
返回数据:returns
知识点ID(knowledgeId):
课件ID(coursewareId):
当前用户token(token):
移动知识点到其他目录 。 (MoveKnowledge)
查看
接口地址:~/Course/CateLog_V3/MoveKnowledge
接口方法:public string MoveKnowledge(System.String id,System.String sortData,System.String oldCatalogId,System.String newCatalogId)
返回数据:returns
知识点ID(id):
移动操作完成后,目标目录的所有知识点的序号。"[知识点ID,序号]的数组,如:[{qweas,1}, {jldjfo,2}]"(sortData):
原目录ID(oldCatalogId):
新目录ID(newCatalogId):
当前用户token(token):
查询知识点,不包含父级目录信息 。 (Getknowledge)
查看
接口地址:~/Course/CateLog_V3/Getknowledge
接口方法:public string Getknowledge(System.String knowledgeId)
返回数据:returns
知识点ID(knowledgeId):
当前用户token(token):
修改知识点 。 (Updateknowledge)
查看
接口地址:~/Course/CateLog_V3/Updateknowledge
接口方法:public string Updateknowledge(System.String knowledgeId,System.String name,System.String type,System.String keyword,System.String description,System.String difficulty)
返回数据:returns
知识点ID(knowledgeId):
知识点名称(name):
知识点类型。1概念,2定理,3案例(type):
关键字(keyword):
描述(description):
难度。0易,1中,2难(difficulty):
当前用户token(token):
查询目录和知识点信息 。 (GetKnowledgeAndCatalog)
查看
接口地址:~/Course/CateLog_V3/GetKnowledgeAndCatalog
接口方法:public string GetKnowledgeAndCatalog(System.String catalogId,System.String knowledgeId)
返回数据:returns
目录ID(catalogId):
知识点ID(knowledgeId):
当前用户token(token):
修改知识点名称 。 (UpdateknowledgeName)
查看
接口地址:~/Course/CateLog_V3/UpdateknowledgeName
接口方法:public string UpdateknowledgeName(System.String knowledgeId,System.String name)
返回数据:returns
知识点ID(knowledgeId):
知识点名称(name):
当前用户token(token):
查询知识点的资源列表 。 (GetknowledgeList)
查看
接口地址:~/Course/CateLog_V3/GetknowledgeList
接口方法:public string GetknowledgeList(System.String knowledgeId)
返回数据:returns
知识点ID(knowledgeId):
当前用户token(token):
修改知识点状态 。 (UpdateknowledgeStatus)
查看
接口地址:~/Course/CateLog_V3/UpdateknowledgeStatus
接口方法:public string UpdateknowledgeStatus(System.String knowledgeId,System.String status)
返回数据:returns
知识点ID(knowledgeId):
状态。0禁用,1启用(status):
当前用户token(token):
对视频、pdf、图片做转码 。 (ResourcesTranscoding)
查看
接口地址:~/Course/CateLog_V3/ResourcesTranscoding
接口方法:public string ResourcesTranscoding(string resourceId, string type, string transcodeLevels, string callback)
返回数据:returns
资源ID(resourceId):
资源类别。1.视频 2.课程文档 8.电子教材文档 104电子教材图片(type):
(非必填)视频转码级别。默认启用所有的转码级别。格式如下:[转码级别1, 转码级别2],如[1,2]。取值范围: 1超清,2高清,3标清,4流畅,5极速(transcodeLevels):
当前用户token(token):
预览课程资源文档(ViewResourcesDocument)
查看
接口地址:~/Course/CateLog_V3/ViewResourcesDocument
接口方法:public string ViewResourcesDocument(string resourceId,string transcodeLevel, string callback)
返回数据:{"Success":true,"Message":"","ErrCode":"","Data":{"OwaUrl":null,"ResourcesDocImg":null},"StartTime":"2018/3/5 13:36:31:696","EndTime":"2018/3/5 13:36:32:49"}
资源ID(resourceId):
(非必填)转码级别。 -1 原图 6 大图 7 中图 8小图(transcodeLevel)
当前用户token(token):
批量获取文件地址(GetListFildUrls)
查看
接口地址:~/Course/CateLog_V3/GetListFildUrls
接口方法:public string GetListFildUrls(string fileID, string fileType, string transcodeLevel)
文件ID(批量的时候,逗号分隔)(fileID):
文件类型 1.视频 2.课程文档 3.练习 4.文本或富文本 5.url,6.音频,7.其它格式 8.电子教材文档 9.共享协议 10.工具服务文档 100.课程封面,101:头像,102:视频截图,103文档资源图片104电子教材图片 105专业封面 106编辑器图片107 电子教材文档图片108 电子教材文档图片109 工具服务图片 110 图库图片 111 图库文档(fileType):
视频转码级别:-1源文件、1 (超清)、2(高清)、3(标清)、4(流畅)、5(极速);图片转码级别:-1源文件、6大图(宽1115)、7中图(宽500)、8:小图(宽76)(transcodeLevel)
当前用户token(token):
添加上下课扩展(AddExtend)
查看
接口地址:~/Course/CateLog_V3/AddExtend
接口方法:public string AddExtend(Guid courseID, Guid chapterID, Guid? parentChapterID,string parChapterIDs, string chapterName)
返回数据:returns
课程ID(courseID)
必填
:
章节目录ID(chapterID)
必填
:
父级章节目录ID(parentChapterID)
无父级节点时不传
:
所有子级目录ID (ID,ID)(childChapterIDs)
无子级点时不传
:
所有父级目录ID (ID,ID)(parChapterIDs)
无父级点时不传
:
章节目录名称(chapterName)
必填
排序(sort)
必填
创建时间(createTime)
必填
当前用户token(token):
删除上下课扩展(DeleteExtend)
查看
接口地址:~/Course/CateLog_V3/DeleteExtend
接口方法:public string DeleteExtend(Guid courseID, Guid chapterID)
返回数据:returns
课程ID(courseID)
必填
:
章节目录ID(chapterID)
必填
:
当前用户token(token):
学生得到老师要求题目信息 (GetProGrammingInfo)
查看
接口地址:~/Course/CateLog_V3/GetProGrammingInfo
接口方法:public string GetProGrammingInfo(string courseWareId, string resourceId, int? type, string code, Guid courseId, Guid studentCourseId,int? subjectType)
返回数据:{"Success":true,"Message":"","ErrCode":"","Data":{"TeacherInfo":{"id":"6b69eec7-0be8-40e4-8d21-6ccb43968a4b"(资源编号),"Name":"HTML注释"(实践名称),"codinglang":"HTML入门"(编程语言),"type":0(固定类型),"codingRequire":"编程要求练习要求(编辑要求)","baseCoding":"%3c!DOCTYPE+html%3e%3chtml%3e%3cbody%3e%3c!--%e8%bf%99%e6%98%af%e4%b8%80%e6%ae%b5%e6%b3%a8%e9%87%8a%e3%80%82%e6%b3%a8%e9%87%8a%e4%b8%8d%e4%bc%9a%e5%9c%a8%e6%b5%8f%e8%a7%88%e5%99%a8%e4%b8%ad%e6%98%be%e7%a4%ba%e3%80%82--%3e%3cp%3e%e8%bf%99%e6%98%af%e4%b8%80%e6%ae%b5%e6%99%ae%e9%80%9a%e7%9a%84%e6%ae%b5%e8%90%bd%e3%80%82%3c%2fp%3e%3c%2fbody%3e%3c%2fhtml%3e"(基础代码),"coreCoding":"%3c!DOCTYPE+html%3e%3chtml%3e%3cbody%3e%3c!--%e8%bf%99%e6%98%af%e4%b8%80%e6%ae%b5%e6%b3%a8%e9%87%8a%e3%80%82%e6%b3%a8%e9%87%8a%e4%b8%8d%e4%bc%9a%e5%9c%a8%e6%b5%8f%e8%a7%88%e5%99%a8%e4%b8%ad%e6%98%be%e7%a4%ba%e3%80%82--%3e%3cp%3e%e8%bf%99%e6%98%af%e4%b8%80%e6%ae%b5%e6%99%ae%e9%80%9a%e7%9a%84%e6%ae%b5%e8%90%bd%e3%80%82%3c%2fp%3e%3c%2fbody%3e%3c%2fhtml%3e"(核心代码),"ComputationalResults":null(学生运行结果)},"StudentInfo":{"ID":"00000000-0000-0000-0000-000000000000"(学生记录编号),"CourseID":"00000000-0000-0000-0000-000000000000"(课程编号),"StudentID":"00000000-0000-0000-0000-000000000000"(学籍编号),"StudentCourseID":"00000000-0000-0000-0000-000000000000"(学生选课编号),"StduentCode":null(学生代码),"CodeType":null(代码类型 0.HTML/CSS 1.JavaScript 2.Vue.Js 3 Jquery 4.BootStrap 10001.Java 10002或10003.python 我这里只有 java 和 python ),"CreateTime":"0001-01-01 00:00:00"(创建时间),"ResultView":null(运行结果),"VersionNumber":0(版本号),"subjectType":0(如果为0操作式 1命题式)}},"StartTime":"2018/12/11 9:40:39:545","EndTime":"2018/12/11 9:41:42:364"}
当前用户token(token):
课件编号courseWareId(courseWareId):
资源编号resourceId(resourceId):
语言类型(langeName):
代码(code):
题目类型(subjectType):
课程编号courseId(courseId):
学生课程编号studentCourseId(studentCourseId):
得到学生计算结果并添加到学生记录 (AddStuEditorRecord)
查看
接口地址:~/Course/CateLog_V3/AddStuEditorRecord
接口方法:public string AddStuEditorRecord(Guid courseId, Guid studentCourseId, string studentCode, string langeName, int subjectType, string resourceId)
返回数据:{"Success":true,"Message":"","ErrCode":"","Data":{"code":0,"message":"ok","data":"Hello World.\nHello World.\nHello World.\nHello World.\n"},"StartTime":"2018/12/17 9:40:19:430","EndTime":"2018/12/17 9:40:20:850"}
当前用户token(token):
资源编号resourceId(resourceId):
语言类型(langeName):
学生代码(studentCode):
题目类型(subjectType):
课程编号courseId(courseId):
学生课程编号studentCourseId(studentCourseId):
学生得到老师题目(学生进行自己代码计算) (GetProGrammingInfo_V2)
查看
接口地址:~/Course/CateLog_V3/GetProGrammingInfo_V2
接口方法:public string GetProGrammingInfo_V2(string courseWareId, string resourceId, Guid courseId, Guid studentCourseId)
返回数据:{"Success":true,"Message":"","ErrCode":"","Data":{"TeacherInfo":{"id":"a4d45e9e-18d2-46a0-91c1-dc67f19f8a7b","Name":"python实战","codinglang":"python2","type":0,"codingRequire":"11","baseCoding":"print('hello,%20world%20%20abcdefffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff')%0Aprint('hello%20%20gogo')","coreCoding":"print('hello,%20world%20%20abcdefffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff')%0Aprint('hello%20%20gogo')","StuComputationalResults":null,"TeacherComputationalResults":{"code":0,"message":"ok","data":"hello, world abcdefffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\nhello gogo\n"}},"StudentInfo":{"ID":"4308650c-51ea-43b2-84b4-3393f8a26943","CourseID":"c9f5fe0e-ad70-43b3-a1a4-93d63428a8fd","StudentID":"2d72fcad-4a2d-49ee-86d3-df4d5b56a9ec","ResourceID":"a4d45e9e-18d2-46a0-91c1-dc67f19f8a7b","StudentCourseID":"0dc2f6ed-299b-472e-9869-ec5c586de18c","StduentCode":"print('hello,%20world%20%20abcdeffffffffffffffffffffffffffffffffffffffffffffffffffffffff1211233333fffffff')%0Aprint('hello%20%20gogo%20%20tottoto%20%20%20wei%20shenm%20')%0A%0A%0Aprint('131523223443')%0A%0A%0Aprint('one%20%20people')%0A%0A%0Aprint('one%20%20people11')%0Aprint('one%20%20people11%20%20%20byby')","CodeType":10002,"CreateTime":"2018-12-14 18:32:01","ResultView":"hello, world abcdeffffffffffffffffffffffffffffffffffffffffffffffffffffffff1211233333fffffff\nhello gogo tottoto wei shenm \n131523223443\none people\none people11\none people11 byby\n","VersionNumber":21,"subjectType":0}},"StartTime":"2018/12/17 10:18:39:834","EndTime":"2018/12/17 10:18:39:896"}
当前用户token(token):
课件编号courseWareId(courseWareId):
资源编号resourceId(resourceId):
课程编号courseId(courseId):
学生课程编号studentCourseId(studentCourseId):
教师得到自己代码运算结果 (GetOperationResult)
查看
接口地址:~/Course/CateLog_V3/GetOperationResult
接口方法: public string GetOperationResult(string code, string langeName,string callback)
返回数据:{"Success":true,"Message":"","ErrCode":"","Data":{"code":0,"message":"ok","data":"Hello World.\nWorld.Hellow\n"},"StartTime":"2018/12/14 15:55:06:983","EndTime":"2018/12/14 15:55:59:987"}
当前用户token(token):
代码code(code):
语言名称langeName(langeName):
联系人:朱利戈
E-Mail:zhulg@mail.open.com.cn