36 lines
629 B
PHP
36 lines
629 B
PHP
|
<?php
|
||
|
|
||
|
namespace app\common\model\dealer;
|
||
|
|
||
|
use app\common\model\BaseModel;
|
||
|
|
||
|
/**
|
||
|
* 分销商提现明细模型
|
||
|
* Class Apply
|
||
|
* @package app\common\model\dealer
|
||
|
*/
|
||
|
class Withdraw extends BaseModel
|
||
|
{
|
||
|
protected $name = 'dealer_withdraw';
|
||
|
|
||
|
/**
|
||
|
* 关联分销商用户表
|
||
|
* @return \think\model\relation\BelongsTo
|
||
|
*/
|
||
|
public function user()
|
||
|
{
|
||
|
return $this->belongsTo('User');
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 提现详情
|
||
|
* @param $id
|
||
|
* @return Apply|static
|
||
|
* @throws \think\exception\DbException
|
||
|
*/
|
||
|
public static function detail($id)
|
||
|
{
|
||
|
return self::get($id);
|
||
|
}
|
||
|
|
||
|
}
|