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('删除成功');
+    }
+
 
 }