* Add params of list.

This commit is contained in:
zhujinyong
2021-07-21 13:57:30 +08:00
parent 8f6bf9800e
commit f157a35f20
5 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ class bugEntry extends entry
$data = $this->getData();
$bug = $data->data->bug;
$this->send(200, $this->format($bug, 'activatedDate:time,openedDate:time,assignedDate:time,resolvedDate:time,closedDate:time,lastEditedDate:time'));
$this->send(200, $this->format($bug, 'deleted:bool,activatedDate:time,openedDate:time,assignedDate:time,resolvedDate:time,closedDate:time,lastEditedDate:time'));
}
public function put($bugID)
+1 -1
View File
@@ -11,7 +11,7 @@ class productsEntry extends entry
public function get()
{
$control = $this->loadController('product', 'all');
$control->all();
$control->all($this->param('status', 'all'), $this->param('order', 'order_asc'));
/* Response */
$data = $this->getData();
+1
View File
@@ -24,6 +24,7 @@ class projectsEntry extends entry
}
return $this->send(200, array('page' => $pager->pageID, 'total' => $pager->recTotal, 'limit' => $pager->recPerPage, 'projects' => $result));
}
if(isset($data->status) and $data->status == 'fail')
{
return $this->sendError(400, $data->message);
+1 -1
View File
@@ -11,7 +11,7 @@ class usersEntry extends entry
public function get()
{
$control = $this->loadController('company', 'browse');
$control->browse();
$control->browse('inside', 0, $this->param('type', 'bydept'), $this->param('order', 'id_desc'), $this->param('total', 0), $this->param('limit', 20), $this->param('page', 1));
$data = $this->getData();
if(isset($data->status) and $data->status == 'success')
+3
View File
@@ -476,6 +476,9 @@ class baseEntry
return gmdate("Y-m-d\TH:i:s\Z", strtotime($value));
}
return $value;
case 'int':
case 'bool':
return $value;
default:
return $value;
}