소스 검색

学生删除

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