36 lines
1.2 KiB
PHP
36 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Models\YiiModels;
|
|
|
|
/**
|
|
* App\Models\YiiModels\Platform
|
|
*
|
|
* @property int $id
|
|
* @property string $name 平台名称
|
|
* @property string $token 平台密钥(后期使用)
|
|
* @property string|null $url 通讯地址
|
|
* @property string|null $url_new 通讯地址(新服务使用)
|
|
* @property string $callbackurl
|
|
* @property int $status 1使用 0不使用
|
|
* @property \Illuminate\Support\Carbon|null $created_at
|
|
* @property \Illuminate\Support\Carbon|null $updated_at
|
|
* @property-read string $created_at_format 创建时间的格式化
|
|
* @property-read string $status_string 状态名称
|
|
* @property-read string $updated_at_format 更新时间的格式化
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\YiiModels\Platform newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\YiiModels\Platform newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\YiiModels\Platform query()
|
|
* @mixin \Eloquent
|
|
*/
|
|
class Platform extends YiiBaseModel
|
|
{
|
|
|
|
// 状态
|
|
public const STATUS_BLOCK = 0;
|
|
public const STATUS_PASS = 1;
|
|
public const STATUS = [
|
|
self::STATUS_BLOCK => '封禁',
|
|
self::STATUS_PASS => '正常',
|
|
];
|
|
}
|