更新若干功能
This commit is contained in:
32
app/Models/business/AfterSaleModel.php
Normal file
32
app/Models/business/AfterSaleModel.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\business;
|
||||
|
||||
use App\BaseApp\BaseBusinessModel;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
/**
|
||||
* 售后申请(cc_after_sale)
|
||||
*/
|
||||
class AfterSaleModel extends BaseBusinessModel
|
||||
{
|
||||
protected $table = 'after_sale';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
public const STATUS_PENDING = 0;
|
||||
|
||||
public const STATUS_APPROVED = 1;
|
||||
|
||||
public const STATUS_REJECTED = 2;
|
||||
|
||||
public function order(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(OrderModel::class, 'order_id', 'id');
|
||||
}
|
||||
|
||||
public function user(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(WxUserModel::class, 'user_id', 'id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user