<?php

namespace App\Http\Enum;


class AfterSaleOrderStatusEnum
{
    const  WAIT = 0;
    const  REFUNDING = 1;
    const  REFUNDED_SUCCESS = 2;
    const  WAIT_HANDLE = 3;
    const  REFUND_REFUSE = 4;
    const  WAIT_RETURN_GOOD = 6;
    const  WAIT_CONFIRM_RETURN_GOOD = 7;
    const  USER_CANCEL = 8;
    const  CLOSE = 9;

    const MAP = [
        self::WAIT => "未发起售后",
        self::REFUNDING => "退款中",
        self::REFUNDED_SUCCESS => "退款成功",
        self::WAIT_HANDLE => "待处理",
        self::REFUND_REFUSE => "拒绝退款",
        self::WAIT_RETURN_GOOD => "待退货",
        self::WAIT_CONFIRM_RETURN_GOOD => "待团长确认退货",
        self::USER_CANCEL => "用户取消",
        self::CLOSE => "系统已关闭",
    ];

    public static function getData($key)
    {
        return self::MAP[$key] ?? '';
    }
}