feat: config
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user