You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
762 lines
22 KiB
762 lines
22 KiB
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | Niucloud-admin 企业快速开发的多应用管理平台
|
|
// +----------------------------------------------------------------------
|
|
// | 官方网址:https://www.niucloud.com
|
|
// +----------------------------------------------------------------------
|
|
// | niucloud团队 版权所有 开源版本可自由商用
|
|
// +----------------------------------------------------------------------
|
|
// | Author: Niucloud Team
|
|
// +----------------------------------------------------------------------
|
|
|
|
namespace app\adminapi\controller\lesson_course_teaching;
|
|
|
|
use core\base\BaseAdminController;
|
|
use app\service\admin\lesson_course_teaching\LessonCourseTeachingService;
|
|
|
|
|
|
/**
|
|
* 教研管理控制器
|
|
* Class LessonCourseTeaching
|
|
* @package app\adminapi\controller\lesson_course_teaching
|
|
*/
|
|
class LessonCourseTeaching extends BaseAdminController
|
|
{
|
|
/**
|
|
* 获取教研管理列表
|
|
* @return \think\Response
|
|
*/
|
|
public function lists(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["status",""],
|
|
["create_time",["",""]],
|
|
["update_time",["",""]],
|
|
["table_type",1]
|
|
]);
|
|
return success((new LessonCourseTeachingService())->getPage($data));
|
|
}
|
|
|
|
|
|
/**
|
|
* 添加教研管理
|
|
* @return \think\Response
|
|
*/
|
|
public function add(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["table_type",1],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.add');
|
|
$id = (new LessonCourseTeachingService())->add($data);
|
|
return success('ADD_SUCCESS', ['id' => $id]);
|
|
}
|
|
|
|
/**
|
|
* 教研管理编辑
|
|
* @param $id 教研管理id
|
|
* @return \think\Response
|
|
*/
|
|
public function edit(int $id){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.edit');
|
|
(new LessonCourseTeachingService())->edit($id, $data);
|
|
return success('EDIT_SUCCESS');
|
|
}
|
|
|
|
/**
|
|
* 获取跳绳教案库列表
|
|
* @return \think\Response
|
|
*/
|
|
public function jumpLists(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["status",""],
|
|
["create_time",["",""]],
|
|
["update_time",["",""]],
|
|
["table_type",2]
|
|
]);
|
|
return success((new LessonCourseTeachingService())->jumpPetPage($data));
|
|
}
|
|
|
|
|
|
/**
|
|
* 添加跳绳教案库
|
|
* @return \think\Response
|
|
*/
|
|
public function jumpAdd(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["table_type",2],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.add');
|
|
$id = (new LessonCourseTeachingService())->jumpAdd($data);
|
|
return success('ADD_SUCCESS', ['id' => $id]);
|
|
}
|
|
|
|
/**
|
|
* 跳绳教案库编辑
|
|
* @param $id 教研管理id
|
|
* @return \think\Response
|
|
*/
|
|
public function jumpEdit(int $id){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.edit');
|
|
(new LessonCourseTeachingService())->jumpEdit($id, $data);
|
|
return success('EDIT_SUCCESS');
|
|
}
|
|
|
|
|
|
/**
|
|
* 获取增高教案库列表
|
|
* @return \think\Response
|
|
*/
|
|
public function enLists(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["status",""],
|
|
["create_time",["",""]],
|
|
["update_time",["",""]],
|
|
["table_type",3]
|
|
]);
|
|
return success((new LessonCourseTeachingService())->enPetPage($data));
|
|
}
|
|
|
|
|
|
/**
|
|
* 添加增高教案库
|
|
* @return \think\Response
|
|
*/
|
|
public function enAdd(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["table_type",3],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.add');
|
|
$id = (new LessonCourseTeachingService())->enAdd($data);
|
|
return success('ADD_SUCCESS', ['id' => $id]);
|
|
}
|
|
|
|
/**
|
|
* 跳绳增高教案库
|
|
* @param $id 教研管理id
|
|
* @return \think\Response
|
|
*/
|
|
public function enEdit(int $id){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.edit');
|
|
(new LessonCourseTeachingService())->enEdit($id, $data);
|
|
return success('EDIT_SUCCESS');
|
|
}
|
|
|
|
|
|
/**
|
|
* 获取篮球教案库列表
|
|
* @return \think\Response
|
|
*/
|
|
public function basketballLists(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["status",""],
|
|
["create_time",["",""]],
|
|
["update_time",["",""]],
|
|
["table_type",4]
|
|
]);
|
|
return success((new LessonCourseTeachingService())->basketballPetPage($data));
|
|
}
|
|
|
|
|
|
/**
|
|
* 添加篮球教案库
|
|
* @return \think\Response
|
|
*/
|
|
public function basketballAdd(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["table_type",4],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.add');
|
|
$id = (new LessonCourseTeachingService())->basketballAdd($data);
|
|
return success('ADD_SUCCESS', ['id' => $id]);
|
|
}
|
|
|
|
/**
|
|
* 跳绳篮球教案库
|
|
* @param $id 教研管理id
|
|
* @return \think\Response
|
|
*/
|
|
public function basketballEdit(int $id){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.edit');
|
|
(new LessonCourseTeachingService())->basketballEdit($id, $data);
|
|
return success('EDIT_SUCCESS');
|
|
}
|
|
|
|
|
|
/**
|
|
* 获取强化教案库列表
|
|
* @return \think\Response
|
|
*/
|
|
public function strengLists(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["status",""],
|
|
["create_time",["",""]],
|
|
["update_time",["",""]],
|
|
["table_type",5]
|
|
]);
|
|
return success((new LessonCourseTeachingService())->strengPetPage($data));
|
|
}
|
|
|
|
|
|
/**
|
|
* 添加强化教案库
|
|
* @return \think\Response
|
|
*/
|
|
public function strengAdd(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["table_type",5],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.add');
|
|
$id = (new LessonCourseTeachingService())->strengAdd($data);
|
|
return success('ADD_SUCCESS', ['id' => $id]);
|
|
}
|
|
|
|
/**
|
|
* 跳绳强化教案库
|
|
* @param $id 教研管理id
|
|
* @return \think\Response
|
|
*/
|
|
public function strengEdit(int $id){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.edit');
|
|
(new LessonCourseTeachingService())->strengEdit($id, $data);
|
|
return success('EDIT_SUCCESS');
|
|
}
|
|
|
|
/**
|
|
* 获取空中忍者教案库列表
|
|
* @return \think\Response
|
|
*/
|
|
public function ninjaLists(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["status",""],
|
|
["create_time",["",""]],
|
|
["update_time",["",""]],
|
|
["table_type",6]
|
|
]);
|
|
return success((new LessonCourseTeachingService())->ninjaPetPage($data));
|
|
}
|
|
|
|
|
|
/**
|
|
* 添加空中忍者教案库
|
|
* @return \think\Response
|
|
*/
|
|
public function ninjaAdd(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["table_type",6],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.add');
|
|
$id = (new LessonCourseTeachingService())->ninjaAdd($data);
|
|
return success('ADD_SUCCESS', ['id' => $id]);
|
|
}
|
|
|
|
/**
|
|
* 跳绳空中忍者教案库
|
|
* @param $id 教研管理id
|
|
* @return \think\Response
|
|
*/
|
|
public function ninjaEdit(int $id){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.edit');
|
|
(new LessonCourseTeachingService())->ninjaEdit($id, $data);
|
|
return success('EDIT_SUCCESS');
|
|
}
|
|
|
|
/**
|
|
* 获取空中忍者教案库列表
|
|
* @return \think\Response
|
|
*/
|
|
public function securityLists(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["status",""],
|
|
["create_time",["",""]],
|
|
["update_time",["",""]],
|
|
["table_type",7]
|
|
]);
|
|
return success((new LessonCourseTeachingService())->securityPetPage($data));
|
|
}
|
|
|
|
|
|
/**
|
|
* 添加空中忍者教案库
|
|
* @return \think\Response
|
|
*/
|
|
public function securityAdd(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["table_type",7],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.add');
|
|
$id = (new LessonCourseTeachingService())->securityAdd($data);
|
|
return success('ADD_SUCCESS', ['id' => $id]);
|
|
}
|
|
|
|
/**
|
|
* 跳绳空中忍者教案库
|
|
* @param $id 教研管理id
|
|
* @return \think\Response
|
|
*/
|
|
public function securityEdit(int $id){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.edit');
|
|
(new LessonCourseTeachingService())->securityEdit($id, $data);
|
|
return success('EDIT_SUCCESS');
|
|
}
|
|
|
|
|
|
/**
|
|
* 获取体能教案库列表
|
|
* @return \think\Response
|
|
*/
|
|
public function physicalLists(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["status",""],
|
|
["create_time",["",""]],
|
|
["update_time",["",""]],
|
|
["table_type",8]
|
|
]);
|
|
return success((new LessonCourseTeachingService())->physicalPetPage($data));
|
|
}
|
|
|
|
|
|
/**
|
|
* 添加体能教案库
|
|
* @return \think\Response
|
|
*/
|
|
public function physicalAdd(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["table_type",8],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.add');
|
|
$id = (new LessonCourseTeachingService())->physicalAdd($data);
|
|
return success('ADD_SUCCESS', ['id' => $id]);
|
|
}
|
|
|
|
/**
|
|
* 跳绳体能教案库
|
|
* @param $id 教研管理id
|
|
* @return \think\Response
|
|
*/
|
|
public function physicalEdit(int $id){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.edit');
|
|
(new LessonCourseTeachingService())->physicalEdit($id, $data);
|
|
return success('EDIT_SUCCESS');
|
|
}
|
|
|
|
/**
|
|
* 获取体能教案库列表
|
|
* @return \think\Response
|
|
*/
|
|
public function actionLists(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["status",""],
|
|
["create_time",["",""]],
|
|
["update_time",["",""]],
|
|
["table_type",9]
|
|
]);
|
|
return success((new LessonCourseTeachingService())->actionPetPage($data));
|
|
}
|
|
|
|
|
|
/**
|
|
* 热身动作
|
|
* @return \think\Response
|
|
*/
|
|
public function actionAdd(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["table_type",9],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.add');
|
|
$id = (new LessonCourseTeachingService())->actionAdd($data);
|
|
return success('ADD_SUCCESS', ['id' => $id]);
|
|
}
|
|
|
|
/**
|
|
* 热身动作
|
|
* @param $id 教研管理id
|
|
* @return \think\Response
|
|
*/
|
|
public function actionEdit(int $id){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.edit');
|
|
(new LessonCourseTeachingService())->actionEdit($id, $data);
|
|
return success('EDIT_SUCCESS');
|
|
}
|
|
|
|
/**
|
|
* 获取体能教案库列表
|
|
* @return \think\Response
|
|
*/
|
|
public function fitnessLists(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["status",""],
|
|
["create_time",["",""]],
|
|
["update_time",["",""]],
|
|
["table_type",10]
|
|
]);
|
|
return success((new LessonCourseTeachingService())->fitnessPetPage($data));
|
|
}
|
|
|
|
|
|
/**
|
|
* 热身动作
|
|
* @return \think\Response
|
|
*/
|
|
public function fitnessAdd(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["table_type",10],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.add');
|
|
$id = (new LessonCourseTeachingService())->fitnessAdd($data);
|
|
return success('ADD_SUCCESS', ['id' => $id]);
|
|
}
|
|
|
|
/**
|
|
* 热身动作
|
|
* @param $id 教研管理id
|
|
* @return \think\Response
|
|
*/
|
|
public function fitnessEdit(int $id){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.edit');
|
|
(new LessonCourseTeachingService())->fitnessEdit($id, $data);
|
|
return success('EDIT_SUCCESS');
|
|
}
|
|
|
|
/**
|
|
* 获取体能教案库列表
|
|
* @return \think\Response
|
|
*/
|
|
public function gamesLists(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["status",""],
|
|
["create_time",["",""]],
|
|
["update_time",["",""]],
|
|
["table_type",11]
|
|
]);
|
|
return success((new LessonCourseTeachingService())->gamesPetPage($data));
|
|
}
|
|
|
|
|
|
/**
|
|
* 热身动作
|
|
* @return \think\Response
|
|
*/
|
|
public function gamesAdd(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["table_type",11],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.add');
|
|
$id = (new LessonCourseTeachingService())->gamesAdd($data);
|
|
return success('ADD_SUCCESS', ['id' => $id]);
|
|
}
|
|
|
|
/**
|
|
* 热身动作
|
|
* @param $id 教研管理id
|
|
* @return \think\Response
|
|
*/
|
|
public function gamesEdit(int $id){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.edit');
|
|
(new LessonCourseTeachingService())->gamesEdit($id, $data);
|
|
return success('EDIT_SUCCESS');
|
|
}
|
|
|
|
|
|
/**
|
|
* 获取体能教案库列表
|
|
* @return \think\Response
|
|
*/
|
|
public function relaxationLists(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["status",""],
|
|
["create_time",["",""]],
|
|
["update_time",["",""]],
|
|
["table_type",12]
|
|
]);
|
|
return success((new LessonCourseTeachingService())->relaxationPetPage($data));
|
|
}
|
|
|
|
/**
|
|
* 热身动作
|
|
* @return \think\Response
|
|
*/
|
|
public function relaxationAdd(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["table_type",12],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.add');
|
|
$id = (new LessonCourseTeachingService())->relaxationAdd($data);
|
|
return success('ADD_SUCCESS', ['id' => $id]);
|
|
}
|
|
|
|
/**
|
|
* 热身动作
|
|
* @param $id 教研管理id
|
|
* @return \think\Response
|
|
*/
|
|
public function relaxationEdit(int $id){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.edit');
|
|
(new LessonCourseTeachingService())->relaxationEdit($id, $data);
|
|
return success('EDIT_SUCCESS');
|
|
}
|
|
|
|
|
|
|
|
public function publicLists(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["status",""],
|
|
["create_time",["",""]],
|
|
["update_time",["",""]],
|
|
["table_type",0],
|
|
]);
|
|
return success((new LessonCourseTeachingService())->publicPetPage($data));
|
|
}
|
|
public function publicAdd(){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["table_type",0],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.add');
|
|
$id = (new LessonCourseTeachingService())->publicAdd($data);
|
|
return success('ADD_SUCCESS', ['id' => $id]);
|
|
}
|
|
public function publicEdit(int $id){
|
|
$data = $this->request->params([
|
|
["title",""],
|
|
["image",""],
|
|
["type",0],
|
|
["content",""],
|
|
["status",0],
|
|
["url",''],["exam_papers_id",""]
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.edit');
|
|
(new LessonCourseTeachingService())->publicEdit($id, $data);
|
|
return success('EDIT_SUCCESS');
|
|
}
|
|
|
|
public function setBindingModule(int $id){
|
|
$data = $this->request->params([
|
|
["user_permission",""],
|
|
["user_permission_name",""],
|
|
["table_type",0],
|
|
["id",0],
|
|
]);
|
|
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.add');
|
|
$id = (new LessonCourseTeachingService())->bindingModuleAdd($id, $data);
|
|
return success('ADD_SUCCESS', ['id' => $id]);
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
* 教研管理详情
|
|
* @param int $id
|
|
* @return \think\Response
|
|
*/
|
|
public function info(int $id){
|
|
return success((new LessonCourseTeachingService())->getInfo($id));
|
|
}
|
|
|
|
|
|
/**
|
|
* 教研管理删除
|
|
* @param $id 教研管理id
|
|
* @return \think\Response
|
|
*/
|
|
public function del(int $id){
|
|
(new LessonCourseTeachingService())->del($id);
|
|
return success('DELETE_SUCCESS');
|
|
}
|
|
|
|
|
|
public function getPersonnelDataAll(){
|
|
$data = $this->request->params([
|
|
["name",""],
|
|
["phone",""]
|
|
]);
|
|
return success((new LessonCourseTeachingService())->getPersonnelDataAll($data));
|
|
}
|
|
|
|
}
|
|
|