feat: config

This commit is contained in:
2025-03-23 19:07:29 +08:00
parent ca57f795ba
commit 87a5b2f9e1
5 changed files with 52 additions and 3 deletions

View File

@@ -24,6 +24,8 @@ use Hyperf\DbConnection\Model\Model;
* @property string $total_price
* @property string $actual_price
* @property string $discount_price
* @property string $append_price
* @property int $append_copies
* @property int $status
* @property int $is_refund_all
* @property string $cancel_time
@@ -53,7 +55,20 @@ class Order extends Model
/**
* The attributes that should be cast to native types.
*/
protected array $casts = ['id' => 'integer', 'user_id' => 'integer', 'cycle_id' => 'integer', 'site_id' => 'integer', 'city_id' => 'integer', 'coupon_id' => 'integer', 'meal_copies' => 'integer', 'optional_copies' => 'integer', 'status' => 'integer', 'is_refund_all' => 'integer','kitchen_id' => 'integer'];
protected array $casts = [
'id' => 'integer',
'user_id' => 'integer',
'cycle_id' => 'integer',
'site_id' => 'integer',
'city_id' => 'integer',
'coupon_id' => 'integer',
'meal_copies' => 'integer',
'optional_copies' => 'integer',
'status' => 'integer',
'is_refund_all' => 'integer',
'kitchen_id' => 'integer',
'append_copies' => 'integer'
];
const string CREATED_AT = 'create_time';