瀏覽代碼

学生删除

lizhen_gitee 1 年之前
父節點
當前提交
70eb85e99a
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      application/api/controller/Student.php

+ 7 - 0
application/api/controller/Student.php

@@ -124,5 +124,12 @@ class Student extends Api
         $this->success(1, $info);
     }
 
+    public function delete(){
+        $id = input('id', 0, 'intval');
+        Db::name('user_student')->where('id',$id)->delete();
+
+        $this->success('删除成功');
+    }
+
 
 }