调整代码格式及使用常量去替换常用值
This commit is contained in:
@@ -3,12 +3,15 @@
|
||||
namespace app\common\model;
|
||||
|
||||
use think\Model;
|
||||
use think\model\concern\SoftDelete;
|
||||
|
||||
/**
|
||||
* 设备任务配置模型类
|
||||
*/
|
||||
class DeviceTaskconf extends Model
|
||||
{
|
||||
use SoftDelete;
|
||||
|
||||
// 设置表名
|
||||
protected $name = 'device_taskconf';
|
||||
|
||||
@@ -16,4 +19,5 @@ class DeviceTaskconf extends Model
|
||||
protected $autoWriteTimestamp = true;
|
||||
protected $createTime = 'createTime';
|
||||
protected $updateTime = 'updateTime';
|
||||
protected $defaultSoftDelete = 0;
|
||||
}
|
||||
Reference in New Issue
Block a user