refactor: 规范工单接口代码规范

This commit is contained in:
xboard
2023-12-12 06:22:18 +08:00
parent 20466d07df
commit 1270a60ad8
4 changed files with 40 additions and 12 deletions
+6
View File
@@ -13,4 +13,10 @@ class Ticket extends Model
'created_at' => 'timestamp',
'updated_at' => 'timestamp'
];
public function message()
{
return $this->hasMany(TicketMessage::class, 'ticket_id', 'id');
}
}