ZxcZxc123 2 năm trước cách đây
mục cha
commit
c77ba1d4b0

+ 21 - 0
app/model/api/EducationCate.php

@@ -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');
+    }
+
+
+
+}

+ 8 - 0
app/system/controller/EducationController.php

@@ -37,4 +37,12 @@ class EducationController
     {
 
     }
+
+    //添加课程
+    public function addCourse()
+    {
+
+    }
+
+    //
 }