初始化
This commit is contained in:
55
addons/webman/model/Broadcast.php
Normal file
55
addons/webman/model/Broadcast.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
namespace addons\webman\model;
|
||||
|
||||
use addons\webman\traits\DataPermissions;
|
||||
use addons\webman\traits\HasDateTimeFormatter;
|
||||
use DateTimeInterface;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
/**
|
||||
* Class PlayerPromoter
|
||||
* @property int id 主键
|
||||
* @property int department_id 渠道id
|
||||
* @property string title 任务名
|
||||
* @property int num 数据量
|
||||
* @property int copy_num 重复次数
|
||||
* @property int type 播报类型
|
||||
* @property int retry_seconds 间隔时间
|
||||
* @property int min_money 展示最小金额
|
||||
* @property int max_money 展示最大金额
|
||||
* @property string start_time 开始时间
|
||||
* @property int repeat 是否循环
|
||||
* @property int status 状态
|
||||
* @property int creator_id 创建者id
|
||||
* @property string shield_id 屏蔽类型id
|
||||
* @property string latest_date 上次投递日期
|
||||
* @property string created_at 创建时间
|
||||
* @property string updated_at 修改时间
|
||||
* @property string date 展示日期
|
||||
* @property string phone 手机号
|
||||
*
|
||||
* @property Broadcast broadcasts
|
||||
* @package addons\webman\model
|
||||
*/
|
||||
class Broadcast extends Model
|
||||
{
|
||||
use HasDateTimeFormatter;
|
||||
|
||||
/**
|
||||
* 时间转换
|
||||
* @param DateTimeInterface $date
|
||||
* @return string
|
||||
*/
|
||||
protected function serializeDate(DateTimeInterface $date): string
|
||||
{
|
||||
return $date->format('Y-m-d H:i:s');
|
||||
}
|
||||
|
||||
public function __construct(array $attributes = [])
|
||||
{
|
||||
parent::__construct($attributes);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user