Commit ccc2531d authored by hujun's avatar hujun

新增独家方

parent 006e8c10
...@@ -412,6 +412,27 @@ class Houses extends Basic ...@@ -412,6 +412,27 @@ class Houses extends Basic
return $this->response($this->code, $this->msg, $this->data); return $this->response($this->code, $this->msg, $this->data);
} }
/**
* 商铺列表添加独家
*
* @return \think\Response
* @throws \Exception
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function addExclusive()
{
if ($this->params['houses_id']) {
$this->data = $this->house->exclusive($this->params, $this->params['houses_id']);
} else {
$this->code = 101;
$this->msg = 'houses_id is null';
}
return $this->response($this->code, $this->msg, $this->data);
}
/** /**
* 获取独家方 * 获取独家方
* *
......
...@@ -163,6 +163,7 @@ Route::group('index', [ ...@@ -163,6 +163,7 @@ Route::group('index', [
'getHouseList' => [ 'index/houses/getHouseList', [ 'method' => 'get' ] ], //楼盘列表 'getHouseList' => [ 'index/houses/getHouseList', [ 'method' => 'get' ] ], //楼盘列表
'carefullyChosen' => [ 'index/houses/carefullyChosen', [ 'method' => 'post' ] ], //设置精选楼盘 'carefullyChosen' => [ 'index/houses/carefullyChosen', [ 'method' => 'post' ] ], //设置精选楼盘
'editExclusive' => [ 'index/houses/editExclusive', [ 'method' => 'post' ] ], //添加和编辑楼盘独家 'editExclusive' => [ 'index/houses/editExclusive', [ 'method' => 'post' ] ], //添加和编辑楼盘独家
'addExclusive' => [ 'index/houses/addExclusive', [ 'method' => 'post' ] ], //添加楼盘独家
'getExclusive' => [ 'index/houses/getExclusive', [ 'method' => 'get' ] ], //获取楼盘独家 'getExclusive' => [ 'index/houses/getExclusive', [ 'method' => 'get' ] ], //获取楼盘独家
'getRecords' => [ 'index/houses/getRecords', [ 'method' => 'get' ] ], //操作记录 'getRecords' => [ 'index/houses/getRecords', [ 'method' => 'get' ] ], //操作记录
'delHouseFile' => [ 'index/houses/delHouseFile', [ 'method' => 'post' ] ], //操作记录 'delHouseFile' => [ 'index/houses/delHouseFile', [ 'method' => 'post' ] ], //操作记录
......
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