|
...
|
...
|
@@ -32,7 +32,7 @@ class CustomModuleCategoryController extends BaseController |
|
|
|
]);
|
|
|
|
$this->map['project_id'] = $this->user['project_id'];
|
|
|
|
$this->map['status'] = 0;
|
|
|
|
$list = $customModuleCategory->list($this->map);
|
|
|
|
$list = $customModuleCategory->list($this->map,'sort');
|
|
|
|
if(!empty($list)){
|
|
|
|
foreach ($list as $k => $v){
|
|
|
|
$v['url'] = $this->user['domain'].$v['route'];
|
|
...
|
...
|
@@ -130,4 +130,23 @@ class CustomModuleCategoryController extends BaseController |
|
|
|
$logic->categoryDel();
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :排序
|
|
|
|
* @name :sort
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/1/3 14:18
|
|
|
|
*/
|
|
|
|
public function sort(CustomModuleCategoryLogic $logic){
|
|
|
|
$this->request->validate([
|
|
|
|
'id'=>['required'],
|
|
|
|
'sort'=>['required'],
|
|
|
|
],[
|
|
|
|
'id.required' => 'ID不能为空',
|
|
|
|
'sort.required' => '排序字段不能为空',
|
|
|
|
]);
|
|
|
|
$logic->categorySort();
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|