<?php

namespace App\Tool;

/**
 * 主节点常量
 */
class Constant {
    # 接口响应成功
    const RESPONSE_SUCCESS    = 0;
    # 表单验证失败
    const EXCEPTION_FORM_FAIL = 1;
    # 数据库操作失败
    const EXCEPTION_DATA_FAIL = 2;
    # 控制器异常
    const EXCEPTION_CTRL_FAIL = 3;
    # 默认分页数
    const PAGE_NUMBER         = 10;
    # 升序
    const SORT_ASC            = 'asc';
    # 降序
    const SORT_DESC           = 'desc';

}