hyperf-chat/app/Constants/ResponseCode.php

34 lines
546 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
/**
* Created by PhpStorm.
* User: admin
* Date: 2020/11/4
* Time: 11:43
*/
namespace App\Constants;
use Hyperf\Constants\AbstractConstants;
use Hyperf\Constants\Annotation\Constants;
/**
* @Constants
*/
class ResponseCode extends AbstractConstants
{
const SUCCESS = 200; // 接口处理成功
const FAIL = 305; // 接口处理失败
/**
* @Message("Server Error")
*/
const SERVER_ERROR = 500;
/**
* @Message("请求数据验证失败!")
*/
const VALIDATION_ERROR = 301;
}