songxingwei 2 năm trước cách đây
mục cha
commit
8afce7245d
1 tập tin đã thay đổi với 11 bổ sung0 xóa
  1. 11 0
      app/admin/controller/TeachingKnowledgeAuth.php

+ 11 - 0
app/admin/controller/TeachingKnowledgeAuth.php

@@ -83,4 +83,15 @@ class TeachingKnowledgeAuth extends Controller
         }
     }
 
+    /**
+     * 删除
+     * @auth true
+     * @menu true
+     */
+    public function del($id){
+        DataTeachingKnowledge::whereIn('id',$id)->save([
+            'is_del'=>0,
+        ]);
+        $this->success('删除成功');
+    }
 }