wupengfei 2 年之前
父节点
当前提交
ff2610f3b0
共有 3 个文件被更改,包括 38 次插入6 次删除
  1. 2 3
      .idea/workspace.xml
  2. 35 2
      application/api/controller/Forum.php
  3. 1 1
      config/apidoc.php

+ 2 - 3
.idea/workspace.xml

@@ -2,10 +2,9 @@
 <project version="4">
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
-      <change afterPath="$PROJECT_DIR$/application/common/model/PlatformSwitch.php" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/application/api/controller/Forum.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Forum.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/common/model/UserCollect.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/common/model/UserCollect.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/config/apidoc.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/apidoc.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -142,7 +141,7 @@
       <workItem from="1658990739511" duration="1207000" />
       <workItem from="1658994991759" duration="4736000" />
       <workItem from="1659001589668" duration="654000" />
-      <workItem from="1659056283234" duration="14024000" />
+      <workItem from="1659056283234" duration="16208000" />
     </task>
     <servers />
   </component>

+ 35 - 2
application/api/controller/Forum.php

@@ -84,8 +84,6 @@ class Forum extends Base
         $this->success('ok',['list'=>$list]);
     }
 
-
-
     /**
      * @title 获取论坛详情
      * @desc 获取论坛详情
@@ -173,6 +171,41 @@ class Forum extends Base
     }
 
     /**
+     * @title 论坛回复列表
+     * @desc 论坛回复列表
+     * @author qc
+     * @method POST
+     * @url /api/Forum/getReplyList
+     * @header name:Authorization require:1 desc:Token
+     * @param name:forum_id type:int default:0 desc:论坛记录id
+     * @param name:page type:int default:0 desc:页数
+     * @param name:page_num type:int default:20 desc:每页数
+     * @return name:id type:int default:-- desc:论坛回复id
+     * @return name:content type:string default:-- desc:内容
+     */
+    public function getReplyList()
+    {
+
+    }
+
+
+    /**
+     * @title 对论坛回复进行评论
+     * @desc 对论坛回复进行评论
+     * @author qc
+     * @method POST
+     * @url /api/Forum/commentReply
+     * @header name:Authorization require:1 desc:Token
+     * @param name:id type:int default:-- desc:回复的id
+     * @param name:content type:string default:-- desc:内容
+     */
+    public function commentReply()
+    {
+
+    }
+
+
+    /**
      * @title 用户发布论坛
      * @desc 用户发布论坛
      * @author qc

+ 1 - 1
config/apidoc.php

@@ -15,7 +15,7 @@ return [
         'api\\controller\\General',
         'api\\controller\\LevelOrder',
         'api\\controller\\Login',
-        'api\\controller\\Press',
+     /*   'api\\controller\\Press',*/
         'api\\controller\\Report',
         'api\\controller\\Sign',
         'api\\controller\\Upload',