zhangguidong hace 2 años
padre
commit
c1b3c81352
Se han modificado 1 ficheros con 21 adiciones y 0 borrados
  1. 21 0
      app/data/controller/api/Goods.php

+ 21 - 0
app/data/controller/api/Goods.php

@@ -2,6 +2,7 @@
 
 namespace app\data\controller\api;
 
+use app\data\model\DataMerchants;
 use app\data\model\ShopGoods;
 use app\data\model\ShopGoodsCart;
 use app\data\model\ShopGoodsCate;
@@ -29,6 +30,26 @@ use app\data\model\SystemUser;
 class Goods extends Auth
 {
     /**
+     * @Title ("用户信息")
+     * @Method ("get")
+     * @Param ("admin_id",desc="商家端id")
+     * @Returned("merchant.head_img",desc="商家头像")
+     * @Returned("merchant.name",desc="商家名称")
+     * @Returned("merchant.full_address",desc="详细地址")
+     * @Returned("merchant.contact_name",desc="联系人")
+     * @Returned("merchant.contact_phone",desc="联系电话")
+     * @Returned("merchant.intro",desc="商家简介")
+     * @Returned("merchant.imgs_videos",desc="图片及视频")
+     * @Returned("merchant.business_img",desc="营业执照")
+     * @Returned("merchant.longitude",desc="经度")
+     * @Returned("merchant.latitude",desc="纬度")
+     */
+    public function user_info(){
+        $admin_id = $this->_vali(['admin_id.require'=>'商家id不能空']);
+        $merchant=DataMerchants::getByAdmin($admin_id['admin_id']);
+        $this->success('用户信息',$merchant);
+    }
+    /**
      * @Title ("获取分类数据")
      * @throws \think\db\exception\DataNotFoundException
      * @throws \think\db\exception\DbException