OPEN2U基础服务 - 教学服务
DigitalBook
获取文件的URL 。 (GetImageUrl)
查看
接口地址:~/Course/DigitalBook/GetImageUrl
接口方法:public string GetImageUrl(System.String FileID,System.Int32 Type)
返回数据:returns
图片ID(FileID):
0=大图,1=中图,2=小图(Type):
当前用户token(token):
获取临时授权接口,增加fileId返回 。 (GetAuthInfo)
查看
接口地址:~/Course/DigitalBook/GetAuthInfo
接口方法:public string GetAuthInfo(string extention, string storeType)
返回数据:returns
文件后缀名,如:docx(extention):
存储类型:视频文件(VE),图片文件(PI),文档文件(DO),临时文件(TM),其他(UU),默认TM(storeType):
当前用户token(token):
电子教材添加 。 (AddDigitalBook)
查看
接口地址:~/Course/DigitalBook/AddDigitalBook
接口方法:public string AddDigitalBook(System.Guid Courseid,System.String Name,System.String Code,System.String Isbn,System.String Press,System.String Auther,System.String CoverImage)
返回数据:returns
课程ID(Courseid):
电子教材名称(Name):
编码(Code):
书刊号(Isbn):
出版社(Press):
作者(Auther):
文件ID(CoverImage):
当前用户token(token):
获取电子教材信息 。 (GetFullTreeBook)
查看
接口地址:~/Course/DigitalBook/GetFullTreeBook
接口方法:public string GetFullTreeBook(System.Guid DigitalbookID)
返回数据:returns
电子教材ID(DigitalbookID):
当前用户token(token):
以LIST方式获取电子教材信息 。 (GetTreeBookList)
查看
接口地址:~/Course/DigitalBook/GetTreeBookList
接口方法:public string GetTreeBookList(string resourceId,string resourceIdType)
返回数据:returns
资源ID(resourceId):
资源类型 103文档资源图片104电子教材图片(resourceIdType):
当前用户token(token):
学生以LIST方式获取电子教材信息 。 (GetTreeBookListByStudent)
查看
接口地址:~/Course/DigitalBook/GetTreeBookListByStudent
接口方法:public string GetTreeBookListByStudent(System.Guid DigitalbookID)
返回数据:returns
电子教材ID(DigitalbookID):
当前用户token(token):
修改电子教材 。 (UpdateDigitalBook)
查看
接口地址:~/Course/DigitalBook/UpdateDigitalBook
接口方法:public string UpdateDigitalBook(System.Guid ID,System.String Name,System.String Code,System.String Isbn,System.String Press,System.String Author,System.String CoverImage,System.Int32 Status)
返回数据:returns
电子教材ID(ID):
电子教材名称(Name):
电子教材编码(Code):
书刊号(Isbn):
出版社(Press):
作者(Author):
封面ID(CoverImage):
状态:-1 删除 0 停用 1 启用 2发布(Status):
当前用户token(token):
删除电子教材 。 (DeleteDigitalBook)
查看
接口地址:~/Course/DigitalBook/DeleteDigitalBook
接口方法:public string DeleteDigitalBook(System.Guid ID)
返回数据:returns
电子教材ID(ID):
当前用户token(token):
发布电子教材 。 (PublishDigitalBook)
查看
接口地址:~/Course/DigitalBook/PublishDigitalBook
接口方法:public string PublishDigitalBook(System.Guid ID)
返回数据:returns
电子教材ID(ID):
当前用户token(token):
取消发布电子教材 。 (CancelPublishDigitalBook)
查看
接口地址:~/Course/DigitalBook/CancelPublishDigitalBook
接口方法:public string CancelPublishDigitalBook(System.Guid ID)
返回数据:returns
电子教材ID(ID):
当前用户token(token):
电子教材列表 。 (GetDigitalBookList)
查看
接口地址:~/Course/DigitalBook/GetDigitalBookList
接口方法:public string GetDigitalBookList(System.Guid CourseID,System.Int32 rows,System.Int32 page)
返回数据:returns
课程ID(CourseID):
行(rows):
页(page):
当前用户token(token):
裁剪图片 。 (CutImg)
查看
接口地址:~/Course/DigitalBook/CutImg
接口方法:public string CutImg(System.String FileID,System.Nullable{System.Int32} x,System.Nullable{System.Int32} y,System.Nullable{System.Int32} w,System.Nullable{System.Int32} h,System.Nullable{System.Int32} imgWidth,System.Nullable{System.Int32} imgHeight)
返回数据:returns
文件ID(FileID):
裁剪坐标 必填(x):
裁剪坐标 必填(y):
裁剪图片宽度 必填(w):
裁剪图片高度 必填(h):
原图宽度 必填(imgWidth):
原图高度 必填(imgHeight):
当前用户token(token):
电子教材详细信息 。 (GetDigitalBookInfo)
查看
接口地址:~/Course/DigitalBook/GetDigitalBookInfo
接口方法:public string GetDigitalBookInfo(System.Guid ID)
返回数据:returns
电子教材ID(ID):
当前用户token(token):
学生电子教材列表 。 (GetStudentDigitalBookList)
查看
接口地址:~/Course/DigitalBook/GetStudentDigitalBookList
接口方法:public string GetStudentDigitalBookList(System.Guid CourseID,System.Int32 rows,System.Int32 page)
返回数据:returns
课程ID(CourseID):
行(rows):
页(page):
当前用户token(token):
获取上传的PDF文件状态 。 (GetDigitalBooksFileStatus)
查看
接口地址:~/Course/DigitalBook/GetDigitalBooksFileStatus
接口方法:public string GetDigitalBooksFileStatus(System.Guid Res_ID,System.Nullable{System.Guid} digitalCatalogId)
返回数据:returns
电子教材ID(Res_ID):
章节ID 选填(digitalCatalogId):
当前用户token(token):
将上传的FPD与电子教材绑定 。 (PostFileToResource)
查看
接口地址:~/Course/DigitalBook/PostFileToResource
接口方法:public string PostFileToResource(System.Guid Res_ID,System.String fileID,System.Int32 type,System.Nullable{System.Guid} digitalCatalogId,System.String fileName)
返回数据:returns
电子教材ID(Res_ID):
文件ID(fileID):
类型1pdf,2图片(type):
章节ID 选填(digitalCatalogId):
PDF名称 选填(fileName):
当前用户token(token):
添加断点续学 。 (AddDigitalBookProgress)
查看
接口地址:~/Course/DigitalBook/AddDigitalBookProgress
接口方法:public string AddDigitalBookProgress(System.Guid CourseID,System.String DiaitalBookID,System.String FileID,System.String PageNumber,System.String Type,System.String Data)
返回数据:returns
课程ID(CourseID):
电子教材ID(DiaitalBookID):
文件ID(FileID):
页码(PageNumber):
类型(Type):
内容(Data):
当前用户token(token):
电子教材断点续学 。 (GetDigitalBookProgress)
查看
接口地址:~/Course/DigitalBook/GetDigitalBookProgress
接口方法:public string GetDigitalBookProgress(System.Guid CourseID,System.String DiaitalBookID)
返回数据:returns
课程ID(CourseID):
电子教材ID(DiaitalBookID):
当前用户token(token):
电子教材图片同级调序 。 (PutImageSort)
查看
接口地址:~/Course/DigitalBook/PutImageSort
接口方法:public string PutImageSort(System.String currentId,System.String dstId,System.Int32 location)
返回数据:returns
当前的章节或图片ID(currentId):
目标章节或图片ID(dstId):
移动到目标元素的前面,2移动到目标元素的后面(location):
当前用户token(token):
删除电子教材图片 。 (DeletedigitalPictures)
查看
接口地址:~/Course/DigitalBook/DeletedigitalPictures
接口方法:public string DeletedigitalPictures(System.String fileid)
返回数据:returns
文件ID(fileid):
当前用户token(token):
分页或者分页码查询图片 。 (GetdigitalBookscontentPages)
查看
接口地址:~/Course/DigitalBook/GetdigitalBookscontentPages
接口方法:public string GetdigitalBookscontentPages(System.String Res_ID,System.Int32 page,System.Int32 row,System.Nullable{System.Int32} minPageNo,System.Nullable{System.Int32} maxPageNo,System.String digitalcatalogID,System.Nullable{System.Int32} status)
返回数据:returns
电子教材ID(Res_ID):
第几页(page):
条数(row):
最小页码 选填(minPageNo):
选填 最大的图片页码。必须与minPageNo配合使用。如果传入此参数,则后台只返回图片数据,如果不传此参数,则返回章节和图片信息(maxPageNo):
选填 电子教材章节ID。若不传此参数,则搜索直属于电子教材下的内容。(digitalcatalogID):
选填 状态:0禁用,1启用。不传此参数则不做状态筛选(status):
当前用户token(token):
电子教材是否已购买 。 (DigitalBooksIsBuy)
查看
接口地址:~/Course/DigitalBook/DigitalBooksIsBuy
接口方法:public string DigitalBooksIsBuy(System.String CourseID,System.String DiaitalBookID)
返回数据:returns
课程ID(CourseID):
电子教材ID(DiaitalBookID):
当前用户token(token):
电子教材编码是否存在 。 (GetDigitalBookCode)
查看
接口地址:~/Course/DigitalBook/GetDigitalBookCode
接口方法:public string GetDigitalBookCode(System.String Code)
返回数据:returns
电子教材编码(Code):
电子教材ID(可以为空)(DigitalBookID):
当前用户token(token):
获取图片地址列表 。 (GetImgUrlList)
查看
接口地址:~/Course/DigitalBook/GetImgUrlList
接口方法:public string GetImgUrlList(System.String res_id,System.Int32 type,System.String fileID)
返回数据:returns
电子教材ID(res_id):
图片类型(type):
图片ID集合,用 , 分隔(fileID):
当前用户token(token):
联系人:朱利戈
E-Mail:zhulg@mail.open.com.cn