Ver código fonte

订单投诉分类

whitefang 1 ano atrás
pai
commit
af2bae3a4d
1 arquivos alterados com 25 adições e 0 exclusões
  1. 25 0
      app/api/controller/IssueWorkController.php

+ 25 - 0
app/api/controller/IssueWorkController.php

@@ -0,0 +1,25 @@
+<?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);
+    }
+}