xieruidong 2 years ago
parent
commit
51323f812f
3 changed files with 27 additions and 0 deletions
  1. 20 0
      app/data/controller/api/ShipYard.php
  2. 6 0
      app/data/controller/api/auth/Center.php
  3. 1 0
      config/apidoc.php

+ 20 - 0
app/data/controller/api/ShipYard.php

@@ -0,0 +1,20 @@
+<?php
+
+namespace app\data\controller\api;
+
+use app\data\model\DataXw;
+use app\data\model\DataXwAd;
+use app\data\model\DataXwCategory;
+use think\admin\Controller;
+use hg\apidoc\annotation\Title;
+use hg\apidoc\annotation\Returned;
+use hg\apidoc\annotation\Param;
+use hg\apidoc\annotation\Method;
+use think\db\Query;
+
+/**
+ * @Title("船厂")
+ */
+class ShipYard extends Auth
+{
+}

+ 6 - 0
app/data/controller/api/auth/Center.php

@@ -555,6 +555,8 @@ class Center extends Auth
      * @Param("contact_name",type="string",require=1,default="",desc="联系人")
      * @Param("contact_phone",type="string",require=1,default="",desc="联系电话")
      * @Param("intro",type="string",require=1,default="",desc="船厂简介")
+     * @Param("longitude",type="string",require=1,default="",desc="经度")
+     * @Param("latitude",type="string",require=1,default="",desc="维度")
      * @Param("environment_imgs",type="string",require=1,default="",desc="船厂环境,多个以英文逗号隔开")
      * @Param("product_intro",type="string",require=1,default="",desc="产品简介")
      * @Param("business_img",type="string",require=1,default="",desc="营业执照")
@@ -565,6 +567,10 @@ class Center extends Auth
         $data = $this->_vali([
             'uuid.default'=>$this->uuid,
             'name.require'=>'船厂名称必须',
+            'longitude.require'=>'经纬度必须',
+            'longitude.float'=>'经纬度有误',
+            'latitude.require'=>'经纬度必须',
+            'latitude.float'=>'经纬度有误',
             'head_img.require'=>'船厂头像必须',
             'province.require'=>'省必须',
             'city.require'=>'市必须',

+ 1 - 0
config/apidoc.php

@@ -48,6 +48,7 @@ return [
                     \app\data\controller\api\Bidding::class,
                     \app\data\controller\api\auth\Purchase::class,
                     \app\data\controller\api\auth\UserPurchase::class,
+                    \app\data\controller\api\ShipYard::class,