<?php

namespace app\common\enum\shipping;

use app\common\enum\CommonEnum;

class ShippingTemplateEnum extends CommonEnum
{
    // 计费方式
    const TYPE = [
        'Quantity' => ['code' => 0, 'name' => '数量'],
        'Weight' => ['code' => 1, 'name' => '重量'],
        'Volume' => ['code' => 2, 'name' => '体积'],
    ];

    // 开启指定包邮
    const APPOINT = [
        'No' => ['code' => 0, 'name' => '未开启'],
        'Yes' => ['code' => 1, 'name' => '已开启']
    ];

    // 开启指定区域不配送
    const UNDELIVERY = [
        'No' => ['code' => 0, 'name' => '未开启'],
        'Yes' => ['code' => 1, 'name' => '已开启']
    ];

    // 默认模板
    const IS_DEFAULT = [
        'No' => ['code' => 0, 'name' => '否'],
        'Yes' => ['code' => 1, 'name' => '是']
    ];
}