12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- /**
- * 平台设置管理dao
- * Created by PhpStorm.
- * User: 小威
- * Date: 2020/03/10
- * Time: 17:50
- */
- namespace JinDouYun\Dao\System;
- use JinDouYun\Dao\BaseDao;
- class DAdminSetting extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'admin_setting';
- $this->_primary = 'id';
- $this->_fields = [
- "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
- "type", //tinyint(3) NOT NULL COMMENT '设置类型 1:支付方式 2:配送方式',
- "title", //varchar(255) NOT NULL COMMENT '名称',
- "content", //json DEFAULT NULL COMMENT '内容',
- "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
- "updateTime", //int(10) DEFAULT NULL COMMENT '修改时间',
- "extends", //json DEFAULT NULL COMMENT '扩展字段',
- "signId"
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|