<?php

namespace App\Http\Services\ConstDef;

class GeneralConst
{
    
    // 特殊帳號
    const ID_ADMIN = 1;
    
    // 網址狀態
    const URL_ALL = 0;
    const URL_OK  = 1;
    const URL_NO  = 2;
    public static $urlMap = array(
        self::URL_ALL => '全部',
        self::URL_OK  => '有效',
        self::URL_NO  => '無效',
    );
    
    // API 狀態碼
    const API_OK        = 0;
    const API_TOKEN_ERR = 1;
    const API_PARAM_ERR = 11;
    public static $apiMap = array(
        self::API_OK        => '成功',
        self::API_TOKEN_ERR => 'TOKEN 錯誤',
        self::API_PARAM_ERR => '參數錯誤',
    );
    
}