Commit e2b21705 authored by zhuwei's avatar zhuwei

注释

parent bbc19bcd
...@@ -135,6 +135,11 @@ class SquareService ...@@ -135,6 +135,11 @@ class SquareService
return ['data' => $res, 'total' => $res_total]; return ['data' => $res, 'total' => $res_total];
} }
/**
* 评论列表
* @param $params
* @return array
*/
public function getSquareCommentList($params) public function getSquareCommentList($params)
{ {
// big_log(json_encode($params)); // big_log(json_encode($params));
...@@ -233,6 +238,11 @@ class SquareService ...@@ -233,6 +238,11 @@ class SquareService
return $res; return $res;
} }
/**
* 删除
* @param $params
* @return $this
*/
public function delSquare($params) public function delSquare($params)
{ {
$where_params['id'] = $params['id']; $where_params['id'] = $params['id'];
...@@ -252,6 +262,11 @@ class SquareService ...@@ -252,6 +262,11 @@ class SquareService
return $res; return $res;
} }
/**
* 修改开盘广场
* @param $params
* @return $this|bool
*/
public function editSquare($params) public function editSquare($params)
{ {
$where_params['id'] = $params['id']; $where_params['id'] = $params['id'];
...@@ -286,6 +301,15 @@ class SquareService ...@@ -286,6 +301,15 @@ class SquareService
} }
/**
* 新增评论
* @param $square_id
* @param $comment
* @param $agent_id
* @param $agent_b
* @param $agent_name
* @return bool
*/
public function addBComment($square_id, $comment, $agent_id, $agent_b, $agent_name) public function addBComment($square_id, $comment, $agent_id, $agent_b, $agent_name)
{ {
$insert["square_id"] = $square_id;//文章id $insert["square_id"] = $square_id;//文章id
...@@ -305,6 +329,17 @@ class SquareService ...@@ -305,6 +329,17 @@ class SquareService
} }
} }
/**
* 新增回复评论
* @param $comment_id
* @param $agent_id_a
* @param $agent_id_b
* @param $comment
* @param $level
* @param $agent_name
* @param $square_id
* @return bool
*/
public function addBCommentExt($comment_id, $agent_id_a, $agent_id_b, $comment, $level, $agent_name, $square_id) public function addBCommentExt($comment_id, $agent_id_a, $agent_id_b, $comment, $level, $agent_name, $square_id)
{ {
$insert["comment_id"] = $comment_id;//comment_id $insert["comment_id"] = $comment_id;//comment_id
...@@ -377,6 +412,11 @@ class SquareService ...@@ -377,6 +412,11 @@ class SquareService
return $res; return $res;
} }
/**
* 回复评论列表
* @param $params
* @return array
*/
public function getSquareCommentExtList($params) public function getSquareCommentExtList($params)
{ {
$pageNo = empty($params['page_no']) ? 1 : $params['page_no']; $pageNo = empty($params['page_no']) ? 1 : $params['page_no'];
......
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