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