Files
lgp-admin-plus-api/app/Models/business/AfterSaleModel.php
2026-08-20 19:16:49 +08:00

33 lines
649 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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');
}
}