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
df7f72a9
Commit
df7f72a9
authored
May 08, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注释
parent
e2b21705
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
0 deletions
+60
-0
Square.php
application/api_broker/controller/Square.php
+36
-0
Square.php
application/index/controller/Square.php
+24
-0
No files found.
application/api_broker/controller/Square.php
View file @
df7f72a9
...
...
@@ -18,12 +18,20 @@ class Square extends Basic
}
/**
* 获取部门
* @return \think\Response
*/
public
function
getDistrictLable
()
{
$res
=
$this
->
s_square
->
getDistrictLable
();
return
$this
->
response
(
"200"
,
"成功"
,
$res
);
}
/**
* 新增开盘广场
* @return \think\Response
*/
public
function
addSquare
()
{
$params
=
$this
->
params
;
...
...
@@ -37,6 +45,10 @@ class Square extends Basic
}
/**
* 获取文章 开盘广场列表
* @return \think\Response
*/
public
function
getSquareList
()
{
$params
=
$this
->
params
;
...
...
@@ -50,6 +62,10 @@ class Square extends Basic
}
}
/**
* 评论列表
* @return \think\Response
*/
public
function
getSquareCommentList
()
{
header
(
'Access-Control-Allow-Origin:*'
);
...
...
@@ -68,6 +84,10 @@ class Square extends Basic
}
/**
* 开盘广场文章详情
* @return \think\Response
*/
public
function
getSquareInfo
()
{
header
(
'Access-Control-Allow-Origin:*'
);
...
...
@@ -137,6 +157,10 @@ class Square extends Basic
}
/**
* 评论详情
* @return \think\Response
*/
public
function
getCommenInfo
()
{
...
...
@@ -154,6 +178,10 @@ class Square extends Basic
}
}
/**
* 回复评论列表
* @return \think\Response
*/
public
function
getSquareCommentExtList
()
{
$params
=
$this
->
params
;
...
...
@@ -167,6 +195,10 @@ class Square extends Basic
}
}
/**
* 评论置顶
* @return \think\Response
*/
public
function
editCommenSort
()
{
$params
=
$this
->
params
;
...
...
@@ -179,6 +211,10 @@ class Square extends Basic
return
$this
->
response
(
"200"
,
"成功"
);
}
/**
* 删除开盘广场
* @return \think\Response
*/
public
function
delSquare
()
{
$params
=
$this
->
params
;
...
...
application/index/controller/Square.php
View file @
df7f72a9
...
...
@@ -19,12 +19,20 @@ class Square extends Basic
$this
->
s_square
=
new
SquareService
();
}
/**
* 获取部门
* @return \think\Response
*/
public
function
getDistrictLable
()
{
$res
=
$this
->
s_square
->
getDistrictLable
();
return
$this
->
response
(
"200"
,
"成功"
,
$res
);
}
/**
* 新增开盘广场
* @return \think\Response
*/
public
function
addSquare
()
{
header
(
'Access-Control-Allow-Origin:*'
);
...
...
@@ -44,6 +52,10 @@ class Square extends Basic
}
/**
* 获取文章 开盘广场列表
* @return \think\Response
*/
public
function
getSquareList
()
{
header
(
'Access-Control-Allow-Origin:*'
);
...
...
@@ -62,6 +74,10 @@ class Square extends Basic
}
}
/**
* 开盘广场文章详情
* @return \think\Response
*/
public
function
getSquareInfo
(){
header
(
'Access-Control-Allow-Origin:*'
);
...
...
@@ -79,6 +95,10 @@ class Square extends Basic
}
}
/**
* 删除
* @return \think\Response
*/
public
function
delSquare
()
{
header
(
'Access-Control-Allow-Origin:*'
);
...
...
@@ -99,6 +119,10 @@ class Square extends Basic
}
}
/**
* 修改开盘广场
* @return \think\Response
*/
public
function
editSquare
()
{
header
(
'Access-Control-Allow-Origin:*'
);
...
...
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