feat:depot_recycle

This commit is contained in:
LAPTOP-7SGDREK0\shiweijun
2025-02-10 16:11:26 +08:00
parent 22dd466254
commit 3f61e1e766
8 changed files with 361 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ declare(strict_types=1);
namespace App\Model;
use Hyperf\Database\Model\Builder;
use Hyperf\DbConnection\Model\Model;
/**
@@ -43,4 +44,9 @@ class DepotRecycle extends Model
const string CREATED_AT = 'create_time';
const string UPDATED_AT = 'update_time';
public function getInfoById(int $id): \Hyperf\Database\Model\Model|Builder|null
{
return $this->where('id', $id)->first();
}
}