| 12345678910111213141516171819202122232425 |
- <?php
- namespace app\api\controller;
- use app\common\model\dict\DictData;
- /**
- *
- * Class IssueWorkController
- * @package app\api\controller
- */
- class IssueWorkController extends BaseApiController
- {
- /**
- * 获取投诉分类
- * @return void
- * @throws \think\db\exception\DataNotFoundException
- * @throws \think\db\exception\DbException
- * @throws \think\db\exception\ModelNotFoundException
- */
- public function getIssueWorkType()
- {
- $list = DictData::where(['type_value'=>'complaint_type','status'=>1])->field('value,name')->select()->toArray();
- return $this->data($list);
- }
- }
|