hyperf-chat/app/Constants/ResponseCode.php

35 lines
708 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php
/**
*
* This is my open source code, please do not use it for commercial applications.
*
* For the full copyright and license information,
* please view the LICENSE file that was distributed with this source code
*
* @author Yuandong<837215079@qq.com>
* @link https://github.com/gzydong/hyperf-chat
*/
namespace App\Constants;
/**
* HTTP 响应状态码枚举
*
* Class ResponseCode
* @package App\Constants
*/
class ResponseCode
{
const SUCCESS = 200; // 接口处理成功
const FAIL = 305; // 接口处理失败
/**
* Server Error
*/
const SERVER_ERROR = 500;
/**
* 请求数据验证失败!
*/
const VALIDATION_ERROR = 301;
}