@@ -0,0 +1,21 @@
+<?php
+
+namespace app\model\api;
+use think\model;
+class EducationCate extends model
+{
+ protected $table = 'table_education_cate';
+ public function articles()
+ {
+ return $this->hasMany('EducationArticle', 'cate_id');
+ }
+}
@@ -37,4 +37,12 @@ class EducationController
{
}
+ //添加课程
+ public function addCourse()
+ //