更新目录结构
This commit is contained in:
@@ -30,6 +30,20 @@ class DictionaryService{
|
||||
$list = Dictionary::where($map)->order('id desc')->paginate($request->pageConfig);
|
||||
return $list;
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 所有字典数据
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function getDictionaryAll(){
|
||||
$list = Dictionary::where([])->select();
|
||||
$data = [];
|
||||
foreach($list as $value){
|
||||
$data[$value['dic_type']][] = $value->toArray();
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
/**
|
||||
* @title 获取字典明细
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user