Commit b31af223 authored by zhuwei's avatar zhuwei

c端 办公楼详情

parent c89a065b
<?php
namespace app\api\controller;
use app\api\extend\Basic;
use app\index\service\OfficeService;
use think\Request;
/**
* Created by PhpStorm.
* User: zhuwei
* Date: 2019-06-19
* Time: 14:38:58
*/
class OfficeBuilding extends Basic
{
private $service;
public function __construct(Request $request = null)
{
parent::__construct($request);
$this->service = new OfficeService();
}
/**
* 办公楼详情
* @return \think\Response
*/
public function getOfficeBuildingInfo()
{
$params = $this->params;
$checkResult = $this->validate($params, "OfficeRoomValidate.getOfficeRoomInfo");
if (true !== $checkResult) {
return $this->response("101", $checkResult);
}
$id = $params['id'];
$result = $this->service->getBuildingInfo($id);
return $this->response($result['status'], $result['msg'], $result['data']);
}
}
\ No newline at end of file
...@@ -1096,6 +1096,7 @@ Route::group('office_api', [ ...@@ -1096,6 +1096,7 @@ Route::group('office_api', [
'getBrokerV2' => ['api/OfficeBroker/indexV2', ['method' => 'get']], //获取当前商铺或街铺的经纪人评论信息列表 'getBrokerV2' => ['api/OfficeBroker/indexV2', ['method' => 'get']], //获取当前商铺或街铺的经纪人评论信息列表
'getOfficeRoomInfo' => ['api/OfficeRoom/getOfficeRoomInfo', ['method' => 'GET|POST']],//获取房源详情 'getOfficeRoomInfo' => ['api/OfficeRoom/getOfficeRoomInfo', ['method' => 'GET|POST']],//获取房源详情
'getOfficeBuildingInfo' => ['api/OfficeBuilding/getOfficeBuildingInfo', ['method' => 'GET|POST']],//办公楼详情
]); ]);
//Route::miss('api/index/miss');//处理错误的url //Route::miss('api/index/miss');//处理错误的url
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment