Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

孙龙 / note-library

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Find file
BlameHistoryPermalink
Switch branch/tag
  • note-library
  • app
  • Http
  • Error.php
  • 孙龙's avatar
    init · 1f46a6ed
    孙龙 committed 5 years ago
    1f46a6ed
Error.php 728 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<?php

namespace App\Http;

class Error
{
    const E_PARAM       = -10001; // 参数错误或不存在
    const E_DB          = -10002; // 数据库错误
    const E_NOT_EXISIT  = -10003; // 数据不存在
    const E_FORBIDDEN   = -10004; // 权限限制
    const E_STATUS      = -10005; // 数据状态不一致
    const E_AUDIT_EXIST = -10006; // 有相同的权限申请
    const E_NOT_LOGIN   = -10007; // 未登陆
    const E_SERVER      = -10008; // 服务错误
    const E_NOT_EXISTS  = -10009; // 不存在
    const E_NO_ACCESS   = -10010; // 无权访问
    const E_INSERT_FAIL = -10011; // 新增失败
    const E_UPDATE_FAIL = -10012; // 更新失败
    const E_DELETE_FAIL = -10013; // 删除失败
};