|
...
|
...
|
@@ -32,7 +32,7 @@ class CustomModuleContentController extends BaseController |
|
|
|
'module_id.required' => 'module_id不能为空',
|
|
|
|
]);
|
|
|
|
$this->map['project_id'] = $this->user['project_id'];
|
|
|
|
$lists = $customModuleContent->lists($this->map,$this->page,$this->row,$this->order);
|
|
|
|
$lists = $customModuleContent->lists($this->map,$this->page,$this->row,$this->order = ['sort','id']);
|
|
|
|
if(!empty($lists)){
|
|
|
|
$data = $this->getAllCategoryName();
|
|
|
|
foreach ($lists['list'] as $k=>$v){
|
|
...
|
...
|
@@ -158,4 +158,21 @@ class CustomModuleContentController extends BaseController |
|
|
|
$logic->contentDel();
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :排序
|
|
|
|
* @name :sort
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/12/15 17:46
|
|
|
|
*/
|
|
|
|
public function sort(CustomModuleContentLogic $logic){
|
|
|
|
$this->request->validate([
|
|
|
|
'id'=>['required'],
|
|
|
|
],[
|
|
|
|
'id.required' => 'ID不能为空',
|
|
|
|
]);
|
|
|
|
$logic->contentSort();
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|