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.
101 lines
3.1 KiB
101 lines
3.1 KiB
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | Niucloud-admin 企业快速开发的多应用管理平台
|
|
// +----------------------------------------------------------------------
|
|
// | 官方网址:https://www.niucloud.com
|
|
// +----------------------------------------------------------------------
|
|
// | niucloud团队 版权所有 开源版本可自由商用
|
|
// +----------------------------------------------------------------------
|
|
// | Author: Niucloud Team
|
|
// +----------------------------------------------------------------------
|
|
|
|
namespace app\adminapi\controller\six_speed_modification_log;
|
|
|
|
use core\base\BaseAdminController;
|
|
use app\service\admin\six_speed_modification_log\SixSpeedModificationLogService;
|
|
|
|
|
|
/**
|
|
* 六一速修改记录控制器
|
|
* Class SixSpeedModificationLog
|
|
* @package app\adminapi\controller\six_speed_modification_log
|
|
*/
|
|
class SixSpeedModificationLog extends BaseAdminController
|
|
{
|
|
/**
|
|
* 获取六一速修改记录列表
|
|
* @return \think\Response
|
|
*/
|
|
public function lists(){
|
|
$data = $this->request->params([
|
|
["campus_id",""]
|
|
]);
|
|
return success((new SixSpeedModificationLogService())->getPage($data));
|
|
}
|
|
|
|
/**
|
|
* 六一速修改记录详情
|
|
* @param int $id
|
|
* @return \think\Response
|
|
*/
|
|
public function info(int $id){
|
|
return success((new SixSpeedModificationLogService())->getInfo($id));
|
|
}
|
|
|
|
/**
|
|
* 添加六一速修改记录
|
|
* @return \think\Response
|
|
*/
|
|
public function add(){
|
|
$data = $this->request->params([
|
|
["campus_id",0],
|
|
["staff_id",0],
|
|
["modified_field",""],
|
|
["old_value",""],
|
|
["new_value",""],
|
|
|
|
]);
|
|
$this->validate($data, 'app\validate\six_speed_modification_log\SixSpeedModificationLog.add');
|
|
$id = (new SixSpeedModificationLogService())->add($data);
|
|
return success('ADD_SUCCESS', ['id' => $id]);
|
|
}
|
|
|
|
/**
|
|
* 六一速修改记录编辑
|
|
* @param $id 六一速修改记录id
|
|
* @return \think\Response
|
|
*/
|
|
public function edit(int $id){
|
|
$data = $this->request->params([
|
|
["campus_id",0],
|
|
["staff_id",0],
|
|
["modified_field",""],
|
|
["old_value",""],
|
|
["new_value",""],
|
|
|
|
]);
|
|
$this->validate($data, 'app\validate\six_speed_modification_log\SixSpeedModificationLog.edit');
|
|
(new SixSpeedModificationLogService())->edit($id, $data);
|
|
return success('EDIT_SUCCESS');
|
|
}
|
|
|
|
/**
|
|
* 六一速修改记录删除
|
|
* @param $id 六一速修改记录id
|
|
* @return \think\Response
|
|
*/
|
|
public function del(int $id){
|
|
(new SixSpeedModificationLogService())->del($id);
|
|
return success('DELETE_SUCCESS');
|
|
}
|
|
|
|
|
|
public function getCampusAll(){
|
|
return success(( new SixSpeedModificationLogService())->getCampusAll());
|
|
}
|
|
|
|
public function getPersonnelAll(){
|
|
return success(( new SixSpeedModificationLogService())->getPersonnelAll());
|
|
}
|
|
|
|
}
|
|
|