Change ticket entry to contain the data needed
This commit is contained in:
parent
0e2f6f944d
commit
29322a4e9c
|
@ -8,14 +8,20 @@ use OCP\AppFramework\Db\Entity;
|
|||
|
||||
class Ticket extends Entity implements JsonSerializable {
|
||||
protected $title;
|
||||
protected $content;
|
||||
protected $userId;
|
||||
protected $description;
|
||||
protected $helperId;
|
||||
protected $creatorId; // The ID of the person who created the Ticked. Usually the person who needs help.
|
||||
protected $dueDate;
|
||||
protected $status;
|
||||
|
||||
public function jsonSerialize(): array {
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'title' => $this->title,
|
||||
'content' => $this->content
|
||||
'description' => $this->description,
|
||||
'helperId' => $this->helperId,
|
||||
'dueDate' => $this->dueDate,
|
||||
'status' => $this->status,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue