24 lines
540 B
PHP
24 lines
540 B
PHP
<?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();
|
|
}
|
|
|
|
} |