作者 lyh

变更数据

<?php
/**
* @remark :
* @name :ManageEntryPositionController.php
* @author :lyh
* @method :post
* @time :2025/11/3 17:13
*/
namespace App\Http\Controllers\Aside\Manage;
use App\Enums\Common\Code;
use App\Http\Controllers\Aside\BaseController;
use App\Http\Logic\Aside\Manage\ManageEntryPositionLogic;
use Illuminate\Http\Request;
/**
* @remark :岗位管理
* @name :ManageEntryPositionController
* @author :lyh
* @method :post
* @time :2025/11/3 17:13
*/
class ManageEntryPositionController extends BaseController
{
/**
* @param Request $request
*/
public function __construct(Request $request)
{
parent::__construct($request);
$this->logic = new ManageEntryPositionLogic();
}
/**
* @remark :列表数据
* @name :lists
* @author :lyh
* @method :post
* @time :2025/11/3 17:20
*/
public function lists()
{
$data = $this->logic->listEntryPosition();
$this->response('success',Code::SUCCESS,$data);
}
/**
* @remark :保存数据
* @name :save
* @author :lyh
* @method :post
* @time :2025/11/3 17:20
*/
public function save()
{
$data = $this->logic->saveEntryPosition();
$this->response('success',Code::SUCCESS,$data);
}
/**
* @remark :删除数据
* @name :del
* @author :lyh
* @method :post
* @time :2025/11/3 17:20
*/
public function del()
{
$data = $this->logic->delEntryPosition();
$this->response('success',Code::SUCCESS,$data);
}
}
... ...
<?php
/**
* @remark :
* @name :ManageEntryPositionLogic.php
* @author :lyh
* @method :post
* @time :2025/11/3 17:14
*/
namespace App\Http\Logic\Aside\Manage;
use App\Http\Logic\Aside\BaseLogic;
use App\Models\Manage\EntryPosition;
class ManageEntryPositionLogic extends BaseLogic
{
public function __construct()
{
parent::__construct();
$this->param = $this->requestAll;
$this->model = new EntryPosition();
}
/**
* @remark :列表数据
* @name :listEntryPosition
* @author :lyh
* @method :post
* @time :2025/11/3 17:27
*/
public function listEntryPosition($map = [],$page = 1, $row = 10,$order = 'id')
{
$data = $this->model->lists($map,$page,$row,$order);
return $this->success($data);
}
/**
* @remark :保存数据
* @name :saveEntryPosition
* @author :lyh
* @method :post
* @time :2025/11/3 17:28
*/
public function saveEntryPosition()
{
return $this->success();
}
/**
* @remark :删除数据
* @name :delEntryPosition
* @author :lyh
* @method :post
* @time :2025/11/3 17:28
*/
public function delEntryPosition()
{
return $this->success();
}
}
... ...
... ... @@ -32,6 +32,9 @@ class SettingFaqLogic extends BaseLogic
public function getRouteList($map = [])
{
$routeModel = new RouteMap();
if(!empty($map['route'])){
$map['route'] = ['like','%'.$map['route'].'%'];
}
$list = $routeModel->list($map,'id',['*'],'desc',20);
return $this->success($list);
}
... ...
... ... @@ -5,7 +5,7 @@ namespace App\Models\Manage;
use App\Models\Base;
/**
* @remark :
* @remark :岗位管理
* @class :EntryPosition.php
* @author :lyh
* @time :2023/7/22 18:08
... ...