[代理与结算]代理结算周期
This commit is contained in:
32
app/admin/controller/agent/SettlementPeriod.php
Normal file
32
app/admin/controller/agent/SettlementPeriod.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\controller\agent;
|
||||
|
||||
use app\common\controller\Backend;
|
||||
use support\Response;
|
||||
use Webman\Http\Request as WebmanRequest;
|
||||
|
||||
/**
|
||||
* 代理结算周期
|
||||
*/
|
||||
class SettlementPeriod extends Backend
|
||||
{
|
||||
protected ?object $model = null;
|
||||
|
||||
protected string|array $preExcludeFields = ['id', 'create_time', 'update_time'];
|
||||
|
||||
protected string|array $quickSearchField = ['id', 'settlement_no', 'remark'];
|
||||
|
||||
protected string|array $defaultSortField = ['id' => 'desc'];
|
||||
|
||||
protected string|array $orderGuarantee = ['id' => 'desc'];
|
||||
|
||||
protected bool $modelValidate = false;
|
||||
|
||||
protected function initController(WebmanRequest $request): ?Response
|
||||
{
|
||||
$this->model = new \app\common\model\AgentSettlementPeriod();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
24
app/common/model/AgentSettlementPeriod.php
Normal file
24
app/common/model/AgentSettlementPeriod.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model;
|
||||
|
||||
use support\think\Model;
|
||||
|
||||
class AgentSettlementPeriod extends Model
|
||||
{
|
||||
protected $name = 'agent_settlement_period';
|
||||
|
||||
protected $autoWriteTimestamp = true;
|
||||
|
||||
protected $type = [
|
||||
'create_time' => 'integer',
|
||||
'update_time' => 'integer',
|
||||
'period_start_at' => 'integer',
|
||||
'period_end_at' => 'integer',
|
||||
'total_bet_amount' => 'string',
|
||||
'total_payout_amount' => 'string',
|
||||
'platform_profit_amount' => 'string',
|
||||
'status' => 'integer',
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user