qifengquan 1 year ago
parent
commit
a99ce80d1c
2 changed files with 240 additions and 276 deletions
  1. 10 1
      application/api/controller/Community.php
  2. 230 275
      public/api.html

+ 10 - 1
application/api/controller/Community.php

@@ -25,7 +25,16 @@ class Community extends Api
     public function teaching_video(){}
 
     /**
-     * 文档
+     * 文档列表
+     */
+    public function document_list(){
+        $data = Document::all(function ($query){
+           $query->where(['pid'=>0,'ismenu'=>1])->order('belong sec');
+        });
+        $this->success('成功',$data);
+    }
+    /**
+     * 文档详情
      * @ApiParams (name="type",description="0好柿购,1多享柿,2门柿购,3海柿购,4柿知识")
      */
     public function document(){

File diff suppressed because it is too large
+ 230 - 275
public/api.html


Some files were not shown because too many files changed in this diff