Commit df7f72a9 authored by zhuwei's avatar zhuwei

注释

parent e2b21705
......@@ -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;
......
......@@ -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:*');
......
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