<?php

namespace app\api\common;

class StatusConstants
{
    const STATUS_MAP = [
        'apply' => [
            0 => '申请中',
            1 => '申请失败',
            2 => '申请成功'
        ],
        'complete' => [
            0 => '未上传',
            1 => '验收中',
            2 => '验收失败',
            3 => '验收成功'
        ]
    ];

    const PROGRESS_RULES = [
        'apply' => [
            0 => 10,   // 申请中
            1 => 0,     // 申请失败
            2 => 20     // 申请成功
        ],
        'complete' => [
            0 => 0,     // 等待审核
            1 => 20,    // 验收中
            2 => 30,    // 进行中
            3 => 60,    // 待验收
            4=>  100,    //已完成
            5=>  0      //已取消
        ]
    ];
}