初始化
This commit is contained in:
50
addons/webman/model/SepayRecharge.php
Normal file
50
addons/webman/model/SepayRecharge.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?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 float coins_num coins数量
|
||||
* @property float gift_coins 赠送coins
|
||||
* @property float first_coins 首充赠送coins
|
||||
* @property float money 充值金额
|
||||
* @property int admin_id 管理员id
|
||||
* @property int status 状态
|
||||
* @property string created_at 创建时间
|
||||
* @property string updated_at 修改时间
|
||||
*
|
||||
* @property Player player
|
||||
* @package addons\webman\model
|
||||
*/
|
||||
class SepayRecharge 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);
|
||||
$this->setTable(plugin()->webman->config('database.sepay_recharge_table'));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user