Commit df7f72a9 authored by zhuwei's avatar zhuwei

注释

parent e2b21705
...@@ -18,12 +18,20 @@ class Square extends Basic ...@@ -18,12 +18,20 @@ class Square extends Basic
} }
/**
* 获取部门
* @return \think\Response
*/
public function getDistrictLable() public function getDistrictLable()
{ {
$res = $this->s_square->getDistrictLable(); $res = $this->s_square->getDistrictLable();
return $this->response("200", "成功", $res); return $this->response("200", "成功", $res);
} }
/**
* 新增开盘广场
* @return \think\Response
*/
public function addSquare() public function addSquare()
{ {
$params = $this->params; $params = $this->params;
...@@ -37,6 +45,10 @@ class Square extends Basic ...@@ -37,6 +45,10 @@ class Square extends Basic
} }
/**
* 获取文章 开盘广场列表
* @return \think\Response
*/
public function getSquareList() public function getSquareList()
{ {
$params = $this->params; $params = $this->params;
...@@ -50,6 +62,10 @@ class Square extends Basic ...@@ -50,6 +62,10 @@ class Square extends Basic
} }
} }
/**
* 评论列表
* @return \think\Response
*/
public function getSquareCommentList() public function getSquareCommentList()
{ {
header('Access-Control-Allow-Origin:*'); header('Access-Control-Allow-Origin:*');
...@@ -68,6 +84,10 @@ class Square extends Basic ...@@ -68,6 +84,10 @@ class Square extends Basic
} }
/**
* 开盘广场文章详情
* @return \think\Response
*/
public function getSquareInfo() public function getSquareInfo()
{ {
header('Access-Control-Allow-Origin:*'); header('Access-Control-Allow-Origin:*');
...@@ -137,6 +157,10 @@ class Square extends Basic ...@@ -137,6 +157,10 @@ class Square extends Basic
} }
/**
* 评论详情
* @return \think\Response
*/
public function getCommenInfo() public function getCommenInfo()
{ {
...@@ -154,6 +178,10 @@ class Square extends Basic ...@@ -154,6 +178,10 @@ class Square extends Basic
} }
} }
/**
* 回复评论列表
* @return \think\Response
*/
public function getSquareCommentExtList() public function getSquareCommentExtList()
{ {
$params = $this->params; $params = $this->params;
...@@ -167,6 +195,10 @@ class Square extends Basic ...@@ -167,6 +195,10 @@ class Square extends Basic
} }
} }
/**
* 评论置顶
* @return \think\Response
*/
public function editCommenSort() public function editCommenSort()
{ {
$params = $this->params; $params = $this->params;
...@@ -179,6 +211,10 @@ class Square extends Basic ...@@ -179,6 +211,10 @@ class Square extends Basic
return $this->response("200", "成功"); return $this->response("200", "成功");
} }
/**
* 删除开盘广场
* @return \think\Response
*/
public function delSquare() public function delSquare()
{ {
$params = $this->params; $params = $this->params;
......
...@@ -19,12 +19,20 @@ class Square extends Basic ...@@ -19,12 +19,20 @@ class Square extends Basic
$this->s_square = new SquareService(); $this->s_square = new SquareService();
} }
/**
* 获取部门
* @return \think\Response
*/
public function getDistrictLable() public function getDistrictLable()
{ {
$res = $this->s_square->getDistrictLable(); $res = $this->s_square->getDistrictLable();
return $this->response("200", "成功",$res); return $this->response("200", "成功",$res);
} }
/**
* 新增开盘广场
* @return \think\Response
*/
public function addSquare() { public function addSquare() {
header('Access-Control-Allow-Origin:*'); header('Access-Control-Allow-Origin:*');
...@@ -44,6 +52,10 @@ class Square extends Basic ...@@ -44,6 +52,10 @@ class Square extends Basic
} }
/**
* 获取文章 开盘广场列表
* @return \think\Response
*/
public function getSquareList() public function getSquareList()
{ {
header('Access-Control-Allow-Origin:*'); header('Access-Control-Allow-Origin:*');
...@@ -62,6 +74,10 @@ class Square extends Basic ...@@ -62,6 +74,10 @@ class Square extends Basic
} }
} }
/**
* 开盘广场文章详情
* @return \think\Response
*/
public function getSquareInfo(){ public function getSquareInfo(){
header('Access-Control-Allow-Origin:*'); header('Access-Control-Allow-Origin:*');
...@@ -79,6 +95,10 @@ class Square extends Basic ...@@ -79,6 +95,10 @@ class Square extends Basic
} }
} }
/**
* 删除
* @return \think\Response
*/
public function delSquare() public function delSquare()
{ {
header('Access-Control-Allow-Origin:*'); header('Access-Control-Allow-Origin:*');
...@@ -99,6 +119,10 @@ class Square extends Basic ...@@ -99,6 +119,10 @@ class Square extends Basic
} }
} }
/**
* 修改开盘广场
* @return \think\Response
*/
public function editSquare() { public function editSquare() {
header('Access-Control-Allow-Origin:*'); 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