[积分商城]兑换订单

This commit is contained in:
2026-03-18 19:20:36 +08:00
parent 2c2257cd3f
commit 5d52ca051f
7 changed files with 451 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace app\common\model;
use support\think\Model;
/**
* MallRedemptionOrder
*/
class MallRedemptionOrder extends Model
{
// 表名
protected $name = 'mall_redemption_order';
// 自动写入时间戳字段
protected $autoWriteTimestamp = true;
public function mallUser(): \think\model\relation\BelongsTo
{
return $this->belongsTo(\app\common\model\MallUser::class, 'mall_user_id', 'id');
}
public function mallItem(): \think\model\relation\BelongsTo
{
return $this->belongsTo(\app\common\model\MallItem::class, 'mall_item_id', 'id');
}
}

View File

@@ -0,0 +1,31 @@
<?php
namespace app\common\validate;
use think\Validate;
class MallRedemptionOrder extends Validate
{
protected $failException = true;
/**
* 验证规则
*/
protected $rule = [
];
/**
* 提示消息
*/
protected $message = [
];
/**
* 验证场景
*/
protected $scene = [
'add' => [],
'edit' => [],
];
}