ZxcZxc123 vor 2 Jahren
Ursprung
Commit
c77ba1d4b0
2 geänderte Dateien mit 29 neuen und 0 gelöschten Zeilen
  1. 21 0
      app/model/api/EducationCate.php
  2. 8 0
      app/system/controller/EducationController.php

+ 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()
+    {
+
+    }
+
+    //
 }