正在显示
4 个修改的文件
包含
137 行增加
和
1 行删除
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @remark : | ||
| 4 | + * @name :ManageEntryPositionController.php | ||
| 5 | + * @author :lyh | ||
| 6 | + * @method :post | ||
| 7 | + * @time :2025/11/3 17:13 | ||
| 8 | + */ | ||
| 9 | + | ||
| 10 | +namespace App\Http\Controllers\Aside\Manage; | ||
| 11 | + | ||
| 12 | +use App\Enums\Common\Code; | ||
| 13 | +use App\Http\Controllers\Aside\BaseController; | ||
| 14 | +use App\Http\Logic\Aside\Manage\ManageEntryPositionLogic; | ||
| 15 | +use Illuminate\Http\Request; | ||
| 16 | + | ||
| 17 | +/** | ||
| 18 | + * @remark :岗位管理 | ||
| 19 | + * @name :ManageEntryPositionController | ||
| 20 | + * @author :lyh | ||
| 21 | + * @method :post | ||
| 22 | + * @time :2025/11/3 17:13 | ||
| 23 | + */ | ||
| 24 | +class ManageEntryPositionController extends BaseController | ||
| 25 | +{ | ||
| 26 | + /** | ||
| 27 | + * @param Request $request | ||
| 28 | + */ | ||
| 29 | + public function __construct(Request $request) | ||
| 30 | + { | ||
| 31 | + parent::__construct($request); | ||
| 32 | + $this->logic = new ManageEntryPositionLogic(); | ||
| 33 | + } | ||
| 34 | + | ||
| 35 | + /** | ||
| 36 | + * @remark :列表数据 | ||
| 37 | + * @name :lists | ||
| 38 | + * @author :lyh | ||
| 39 | + * @method :post | ||
| 40 | + * @time :2025/11/3 17:20 | ||
| 41 | + */ | ||
| 42 | + public function lists() | ||
| 43 | + { | ||
| 44 | + $data = $this->logic->listEntryPosition(); | ||
| 45 | + $this->response('success',Code::SUCCESS,$data); | ||
| 46 | + } | ||
| 47 | + | ||
| 48 | + /** | ||
| 49 | + * @remark :保存数据 | ||
| 50 | + * @name :save | ||
| 51 | + * @author :lyh | ||
| 52 | + * @method :post | ||
| 53 | + * @time :2025/11/3 17:20 | ||
| 54 | + */ | ||
| 55 | + public function save() | ||
| 56 | + { | ||
| 57 | + $data = $this->logic->saveEntryPosition(); | ||
| 58 | + $this->response('success',Code::SUCCESS,$data); | ||
| 59 | + } | ||
| 60 | + | ||
| 61 | + /** | ||
| 62 | + * @remark :删除数据 | ||
| 63 | + * @name :del | ||
| 64 | + * @author :lyh | ||
| 65 | + * @method :post | ||
| 66 | + * @time :2025/11/3 17:20 | ||
| 67 | + */ | ||
| 68 | + public function del() | ||
| 69 | + { | ||
| 70 | + $data = $this->logic->delEntryPosition(); | ||
| 71 | + $this->response('success',Code::SUCCESS,$data); | ||
| 72 | + } | ||
| 73 | +} |
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @remark : | ||
| 4 | + * @name :ManageEntryPositionLogic.php | ||
| 5 | + * @author :lyh | ||
| 6 | + * @method :post | ||
| 7 | + * @time :2025/11/3 17:14 | ||
| 8 | + */ | ||
| 9 | + | ||
| 10 | +namespace App\Http\Logic\Aside\Manage; | ||
| 11 | + | ||
| 12 | +use App\Http\Logic\Aside\BaseLogic; | ||
| 13 | +use App\Models\Manage\EntryPosition; | ||
| 14 | + | ||
| 15 | +class ManageEntryPositionLogic extends BaseLogic | ||
| 16 | +{ | ||
| 17 | + public function __construct() | ||
| 18 | + { | ||
| 19 | + parent::__construct(); | ||
| 20 | + $this->param = $this->requestAll; | ||
| 21 | + $this->model = new EntryPosition(); | ||
| 22 | + } | ||
| 23 | + | ||
| 24 | + /** | ||
| 25 | + * @remark :列表数据 | ||
| 26 | + * @name :listEntryPosition | ||
| 27 | + * @author :lyh | ||
| 28 | + * @method :post | ||
| 29 | + * @time :2025/11/3 17:27 | ||
| 30 | + */ | ||
| 31 | + public function listEntryPosition($map = [],$page = 1, $row = 10,$order = 'id') | ||
| 32 | + { | ||
| 33 | + $data = $this->model->lists($map,$page,$row,$order); | ||
| 34 | + return $this->success($data); | ||
| 35 | + } | ||
| 36 | + | ||
| 37 | + /** | ||
| 38 | + * @remark :保存数据 | ||
| 39 | + * @name :saveEntryPosition | ||
| 40 | + * @author :lyh | ||
| 41 | + * @method :post | ||
| 42 | + * @time :2025/11/3 17:28 | ||
| 43 | + */ | ||
| 44 | + public function saveEntryPosition() | ||
| 45 | + { | ||
| 46 | + return $this->success(); | ||
| 47 | + } | ||
| 48 | + | ||
| 49 | + /** | ||
| 50 | + * @remark :删除数据 | ||
| 51 | + * @name :delEntryPosition | ||
| 52 | + * @author :lyh | ||
| 53 | + * @method :post | ||
| 54 | + * @time :2025/11/3 17:28 | ||
| 55 | + */ | ||
| 56 | + public function delEntryPosition() | ||
| 57 | + { | ||
| 58 | + return $this->success(); | ||
| 59 | + } | ||
| 60 | +} |
| @@ -32,6 +32,9 @@ class SettingFaqLogic extends BaseLogic | @@ -32,6 +32,9 @@ class SettingFaqLogic extends BaseLogic | ||
| 32 | public function getRouteList($map = []) | 32 | public function getRouteList($map = []) |
| 33 | { | 33 | { |
| 34 | $routeModel = new RouteMap(); | 34 | $routeModel = new RouteMap(); |
| 35 | + if(!empty($map['route'])){ | ||
| 36 | + $map['route'] = ['like','%'.$map['route'].'%']; | ||
| 37 | + } | ||
| 35 | $list = $routeModel->list($map,'id',['*'],'desc',20); | 38 | $list = $routeModel->list($map,'id',['*'],'desc',20); |
| 36 | return $this->success($list); | 39 | return $this->success($list); |
| 37 | } | 40 | } |
| @@ -5,7 +5,7 @@ namespace App\Models\Manage; | @@ -5,7 +5,7 @@ namespace App\Models\Manage; | ||
| 5 | use App\Models\Base; | 5 | use App\Models\Base; |
| 6 | 6 | ||
| 7 | /** | 7 | /** |
| 8 | - * @remark : | 8 | + * @remark :岗位管理 |
| 9 | * @class :EntryPosition.php | 9 | * @class :EntryPosition.php |
| 10 | * @author :lyh | 10 | * @author :lyh |
| 11 | * @time :2023/7/22 18:08 | 11 | * @time :2023/7/22 18:08 |
-
请 注册 或 登录 后发表评论