12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?php
- namespace app\api\controller\v1;
- use app\api\controller\Base;
- use app\hander\HelpHander;
- use think\Db;
- class HouseBuilding extends Base
- {
- // 新增
- public function save(){
- model('HouseBuilding')->add();
- HelpHander::success([],'操作成功');
- }
- // 删除
- public function del(){
- $id = input('id/d',0);
- model('HouseBuilding')->del($id);
- HelpHander::success([],'操作成功');
- }
- //列表
- public function list(){
- $page = input('page/d',1);
- $size = input('size/d',10);
- $title = input('title','','trim');
- $type = input('type/d',1);
- $ret = model('HouseBuilding')->lists($page,$size,$title,$type,$this->orgId);
- HelpHander::success($ret);
- }
- public function blist(){
- $type = input('type/d',1);
- $title = input('title','','trim');
- $cate = input('cate/d',1);
- $ret = model('HouseBuilding')->blist($type,$title,$this->userId,$this->orgId,$cate);
- HelpHander::success($ret);
- }
- public function houseTurnList(){
- $buildingId = input('buildingId/d',0);
- $title = input('title','','trim');
- $cate = input('cate/d',0);
- $ret = model('HouseBuilding')->houseTurnList($this->userId,$this->orgId,$buildingId,$title,$cate);
- HelpHander::success($ret);
- }
- public function houseTurnDetails(){
- $id = input('id/d',0);
- $ret = model('HouseBuilding')->houseTurnDetails($id);
- HelpHander::success($ret);
- }
- public function houseFloor(){
- $buildingId = input('buildingId/d',0);
- $ret = model('HouseBuilding')->houseFloor($this->userId,$this->orgId,$buildingId);
- HelpHander::success($ret);
- }
- }
|