[积分商城]商品管理-优化

This commit is contained in:
2026-03-19 16:13:22 +08:00
parent a02eb8465c
commit 0c51e4f8ec
6 changed files with 95 additions and 36 deletions

View File

@@ -2,6 +2,7 @@
namespace app\common\model;
use app\common\model\traits\TimestampInteger;
use support\think\Model;
/**
@@ -9,12 +10,11 @@ use support\think\Model;
*/
class MallItem extends Model
{
// 表名
use TimestampInteger;
protected $name = 'mall_item';
// 自动写入时间戳字段
protected $autoWriteTimestamp = true;
protected bool $autoWriteTimestamp = true;
public function admin(): \think\model\relation\BelongsTo
{