初始化项目
This commit is contained in:
35
app/Models/YiiModels/Platform.php
Normal file
35
app/Models/YiiModels/Platform.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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 => '正常',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user