Commit e38b1e36 authored by 菁菁's avatar 菁菁

课程接口

parent bf9fbb40
...@@ -12,6 +12,6 @@ Course::setDebug(); ...@@ -12,6 +12,6 @@ Course::setDebug();
//$list = \internalApi\xue\Exam::getExams([4, 5, 6, 7]); //$list = \internalApi\xue\Exam::getExams([4, 5, 6, 7]);
//$list = \internalApi\xue\Course::getCourseInfo(37); //$list = \internalApi\xue\Course::getCourseInfo(37);
$list = \internalApi\xue\Course::getSectionInfo(47); $list = \internalApi\xue\Course::getCourseSectionInfo(151);
print_r($list); print_r($list);
\ No newline at end of file
...@@ -88,13 +88,13 @@ class Course extends Client ...@@ -88,13 +88,13 @@ class Course extends Client
* @throws \internalApi\base\ApiException * @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException * @throws \internalApi\base\ClientException
*/ */
public static function getSectionBasicInfo($sectionId) public static function getCourseSectionInfo($sectionId)
{ {
return self::call('course.getSectionBasicInfo' , compact('sectionId')); return self::call('course.getCourseSectionInfo' , compact('sectionId'));
} }
/** /**
* 获取分类的课程 * 获取分类的课程节列表
* @param $categoryId * @param $categoryId
* @param int $limit * @param int $limit
* @param int $offset * @param int $offset
...@@ -102,9 +102,9 @@ class Course extends Client ...@@ -102,9 +102,9 @@ class Course extends Client
* @throws \internalApi\base\ApiException * @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException * @throws \internalApi\base\ClientException
*/ */
public static function getAllCourseLists($categoryId, $limit = 10, $offset = 0) public static function getCourseSectionLists($categoryId, $limit = 10, $offset = 0)
{ {
return self::call('course.getAllCourseLists', compact('categoryId','limit','offset')); return self::call('course.getCourseSectionLists', compact('categoryId','limit','offset'));
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment