用户账变 用户钱包

This commit is contained in:
cano
2024-03-10 00:44:58 +08:00
parent 025dab4c2c
commit 6d242ae973
17 changed files with 1617 additions and 16 deletions

View File

@ -0,0 +1,53 @@
<?php
namespace App\Models\Api\Order;
use App\Models\Api\Base\ApiBaseModel;
use Spatie\FlareClient\Api;
class CustomerUserPostOrderModel extends ApiBaseModel
{
protected $table = 'customer_user_post_order';
protected $primaryKey = 'id';
protected $fillable = [
'id',
'sn',
'pay_status',
'buyer_uid',
'seller_uid',
'pid',
'post_history_id',
'amount',
'buyer_wallet_transaction_id',
'seller_wallet_transaction_id',
'wallet_checkbook_id',
'dispute_status',
'dispute_result_status',
'created_at',
'updated_at',
];
const PAY_STATUS_UNPAID = 1;
const PAY_STATUS_PAID = 2;
const PAY_STATUS_CANCEL = 3;
const DISPUTE_STATUS_UN_DISPUTE = 1;
const DISPUTE_STATUS_WAITING = 2;
const DISPUTE_STATUS_PROCESSING = 3;
const DISPUTE_STATUS_FINISH = 4;
const DISPUTE_STATUS = [
self::DISPUTE_STATUS_UN_DISPUTE => '未申诉',
self::DISPUTE_STATUS_WAITING => '申诉待处理',
self::DISPUTE_STATUS_PROCESSING => '申诉处理中',
self::DISPUTE_STATUS_FINISH => '申诉完成',
];
const DISPUTE_RESULT_STATUS_NO_MISTAKE = 1;
const DISPUTE_RESULT_STATUS_HAVE_MISTAKE = 2;
const DISPUTE_RESULT_STATUS = [
self::DISPUTE_RESULT_STATUS_NO_MISTAKE => '无过错',
self::DISPUTE_RESULT_STATUS_HAVE_MISTAKE => '有过错',
];
}