1.将部门修改为渠道,并且所有dice_表关联渠道表
2.将所有配置表,记录表设置关联渠道 3.优化后台页面设置
This commit is contained in:
25
server/app/dice/model/DiceModel.php
Normal file
25
server/app/dice/model/DiceModel.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace app\dice\model;
|
||||
|
||||
use plugin\saiadmin\basic\think\BaseModel as SaiBaseModel;
|
||||
|
||||
/**
|
||||
* 大富翁模块模型基类:删除均为硬删除(物理删除)
|
||||
*/
|
||||
abstract class DiceModel extends SaiBaseModel
|
||||
{
|
||||
/**
|
||||
* @param mixed $data
|
||||
*/
|
||||
public static function destroy($data, bool $force = true): bool
|
||||
{
|
||||
return parent::destroy($data, true);
|
||||
}
|
||||
|
||||
public function delete(): bool
|
||||
{
|
||||
return $this->force()->delete();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user