Browse Source

学生删除

lizhen_gitee 1 year ago
parent
commit
70eb85e99a
1 changed files with 7 additions and 0 deletions
  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('删除成功');
+    }
+
 
 }