<?php

namespace app\common\enum\store;

use app\common\enum\CommonEnum;

class ProductEnum extends CommonEnum
{
    const IS_DEL = parent::IS_DEL;

    const STATUS = [
        'Pending' => ['code' => 0, 'name' => '审核中'],
        'Approved' => ['code' => 1, 'name' => '审核通过'],
        'Rejected' => ['code' => -1, 'name' => '未通过'],
        'Withdrawn' => ['code' => -2, 'name' => '下架'],
    ];

    const IS_SHOW = [
        'No' => ['code' => 0, 'name' => '未上架'],
        'Yes' => ['code' => 1, 'name' => '上架']
    ];

    const IS_USED = [
        'No' => ['code' => 0, 'name' => '隐藏'],
        'Yes' => ['code' => 1, 'name' => '显示']
    ];

    const MER_STATUS = [
        'No' => ['code' => 0, 'name' => '非正常'],
        'Yes' => ['code' => 1, 'name' => '正常']
    ];


    // 是否秒杀
    const SECKILL = [
        'No' => ['code' => 0, 'name' => '否'],
        'Yes' => ['code' => 1, 'name' => '是']
    ];

    const IS_STATUS = [
        'Automatic' => ['code' => 0, 'name' => '系统自动操作'],
        'Triggered' => ['code' => 1, 'name' => '人为触发操作']
    ];
}