You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
511 B
33 lines
511 B
<?php |
|
|
|
namespace app\hejiang; |
|
|
|
/** |
|
* Structured HTTP API Response Class |
|
* |
|
* @property int $code |
|
* @property string $msg |
|
* @property array|object $data |
|
*/ |
|
class ApiCode |
|
{ |
|
/** |
|
* 状态码:成功 |
|
*/ |
|
const CODE_SUCCESS = 0; |
|
|
|
/** |
|
* 状态码:失败 |
|
*/ |
|
const CODE_ERROR = 1; |
|
|
|
/** |
|
* 状态码:未登录 |
|
*/ |
|
const CODE_NOT_LOGIN = -1; |
|
|
|
/** |
|
* 状态码:商城禁用 |
|
*/ |
|
const CODE_STORE_DISABLED = -2; |
|
} |