first commit
This commit is contained in:
24
pgserver/application/admin/controller/Dictionary.php
Normal file
24
pgserver/application/admin/controller/Dictionary.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\controller;
|
||||
|
||||
class Dictionary extends Base
|
||||
{
|
||||
/**
|
||||
* @api {get} admin/Dictionary/reqDataDict 获取数据字典类型
|
||||
*/
|
||||
public function reqDataDict(){
|
||||
$type = $this->request->post('type/a');
|
||||
$data = getdictionarylist($type);
|
||||
return $this->responseSuccess($data,true);
|
||||
}
|
||||
|
||||
/**
|
||||
* @api {get} admin/Dictionary/cleanDictionary 清除数据字典
|
||||
*/
|
||||
public function cleanDictionary() {
|
||||
cache('dic_list', '');
|
||||
return $this->buildSuccess();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user