Files
annnj-company 130c1026c4 first commit
2026-04-17 18:29:53 +08:00

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();
}
}