You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
695 B
PHTML
45 lines
695 B
PHTML
2 years ago
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace App\Constants;
|
||
|
|
||
|
use Hyperf\Constants\AbstractConstants;
|
||
|
use Hyperf\Constants\Annotation\Constants;
|
||
|
|
||
|
/**
|
||
|
* @Constants
|
||
|
*/
|
||
|
class ResultCode extends AbstractConstants
|
||
|
{
|
||
|
/**
|
||
|
* @Message("成功")
|
||
|
*/
|
||
|
const SUCCESS = 1000;
|
||
|
|
||
|
/**
|
||
|
* @Message("错误")
|
||
|
*/
|
||
|
const DEFAULT_ERROR = 2000;
|
||
|
|
||
|
/**
|
||
|
* @Message("Server Error")
|
||
|
*/
|
||
|
const SERVER_ERROR = 2001;
|
||
|
|
||
|
/**
|
||
|
* @Message("参数错误")
|
||
|
*/
|
||
|
const SYSTEM_INVALID = 2002;
|
||
|
|
||
|
/**
|
||
|
* @Message("Params %s is invalid.")
|
||
|
*/
|
||
|
const PARAMS_INVALID = 2003;
|
||
|
|
||
|
/**
|
||
|
* @Message("记录不存在")
|
||
|
*/
|
||
|
const RECORD_NOT_FOUND = 2004;
|
||
|
}
|