xieruidong 2 年之前
父節點
當前提交
634f7730c4
共有 2 個文件被更改,包括 45 次插入0 次删除
  1. 44 0
      app/data/controller/api/Bidding.php
  2. 1 0
      config/apidoc.php

+ 44 - 0
app/data/controller/api/Bidding.php

@@ -0,0 +1,44 @@
+<?php
+
+namespace app\data\controller\api;
+
+use app\data\model\DataBidding;
+use hg\apidoc\annotation\Param;
+use hg\apidoc\annotation\Returned;
+use hg\apidoc\annotation\Title;
+use think\admin\Controller;
+use think\Request;
+
+/**
+ * 招标
+ * Class Bidding
+ * @package app\data\controller\Bidding
+ */
+class Bidding extends Controller
+{
+    /**
+     * @Title("列表")
+     * @Param ("limit",desc="每页几条",default="15")
+     * @Param ("page",desc="第几页",default="1")
+     * @Param ("b_type",desc="披露方式0预1正式")
+     * @Param ("amount_min",desc="最低价格")
+     * @Param ("amount_max",desc="最高价格")
+     * @Param ("type_id",desc="招标类型id")
+     * @Param ("city",desc="所在地区")
+     * @Param ("day_type",desc="截至时间类型,day天,month月,year年")
+     * @Param ("day",desc="时间值")
+     * @Returned ("title",desc="标题")
+     * @Returned ("amount",desc="金额")
+     * @Returned ("b_type",desc="披露方式0预1正式")
+     * @Returned ("status",desc="0未中1已中标")
+     * @Returned ("com_name",desc="公司名称")
+     * @Returned ("com_username",desc="公司联系人")
+     * @Returned ("com_mobile",desc="公司联系人手机号")
+     * @Returned ("create_time",desc="发布时间")
+     */
+    public function index(Request $request,DataBidding $dataBidding){
+        $list=$dataBidding
+            ->paginate();
+        $this->success('',$list);
+    }
+}

+ 1 - 0
config/apidoc.php

@@ -46,6 +46,7 @@ return [
 
                     \app\data\controller\api\Xw::class,
                     \app\data\controller\api\ResCenter::class,
+                    \app\data\controller\api\Bidding::class,