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

semour / semour_web

  • 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
Normal viewHistoryPermalink
Switch branch/tag
  • semour_web
  • app
  • Http
  • ApiHelper
  • ApiCode.php
ApiCode.php 496 Bytes
杨树贤's avatar
api返回
186d5283
 
杨树贤 committed 2 years ago
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<?php

namespace App\Http\ApiHelper;

interface ApiCode
{

    const API_CODE_SUCCESS = 0;//接口请求正常

    const API_CODE_ERROR = 1;//接口请求异常 可预测失败

    const API_CODE_NEED_LOGIN = 101; //需要登录

    const API_CODE_LOGIN_ERROR = 102; // 登录信息错误

    const API_CODE_MOBILE_NOTFOUND_ERROR = 103; // 手机号不存在

    const API_CODE_PASSWD_NOTFOUND_ERROR = 104; // 密码错误

    const API_CODE_USER_DISABLE_ERROR = 105; // 账号被封禁

}