API bookmark

This commit is contained in:
xiaomlove
2025-09-14 04:42:37 +07:00
parent 3eaa2fc14e
commit 01cbb0fa61
16 changed files with 94 additions and 22 deletions

View File

@@ -9,6 +9,10 @@ class Bookmark extends NexusModel
protected $fillable = ['userid', 'torrentid'];
const FILTER_IGNORE = '0';
const FILTER_INCLUDE = '1';
const FILTER_EXCLUDE = '2';
public function torrent()
{
return $this->belongsTo(Torrent::class, 'torrentid');