Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
b31af223
Commit
b31af223
authored
Jun 20, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
c端 办公楼详情
parent
c89a065b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
0 deletions
+47
-0
OfficeBuilding.php
application/api/controller/OfficeBuilding.php
+45
-0
.DS_Store
application/index/view/share_office_room/.DS_Store
+0
-0
route.php
application/route.php
+2
-0
No files found.
application/api/controller/OfficeBuilding.php
0 → 100644
View file @
b31af223
<?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
application/index/view/share_office_room/.DS_Store
0 → 100644
View file @
b31af223
File added
application/route.php
View file @
b31af223
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment