ith5 преди 5 месеца
родител
ревизия
e605107976
променени са 1 файла, в които са добавени 42 реда и са изтрити 0 реда
  1. 42 0
      app/v1/controller/advert/MediaAuthController.php

+ 42 - 0
app/v1/controller/advert/MediaAuthController.php

@@ -0,0 +1,42 @@
+<?php
+// +----------------------------------------------------------------------
+// | saiadmin [ saiadmin快速开发框架 ]
+// +----------------------------------------------------------------------
+// | Author: your name
+// +----------------------------------------------------------------------
+namespace app\v1\controller\advert;
+
+use plugin\saiadmin\basic\BaseController;
+use app\v1\logic\advert\MediaListLogic;
+use app\v1\validate\advert\MediaListValidate;
+use support\Request;
+use support\Response;
+
+/**
+ * 广告媒体表控制器
+ */
+class MediaAuthController extends BaseController
+{
+    /**
+     * 构造函数
+     */
+    public function __construct()
+    {
+          $this->logic = new MediaListLogic();
+        parent::__construct();
+    }
+
+    /**
+     * 数据列表
+     * @param Request $request
+     * @return Response
+     */
+    public function index(Request $request): Response
+    {
+        $where = $request->more([
+            ['media_id', ''],
+        ]);
+        $data = $this->logic->getList($where);
+        return $this->success($data);
+    }
+}