DAdminSetting.Class.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * 平台设置管理dao
  4. * Created by PhpStorm.
  5. * User: 小威
  6. * Date: 2020/03/10
  7. * Time: 17:50
  8. */
  9. namespace JinDouYun\Dao\System;
  10. use JinDouYun\Dao\BaseDao;
  11. class DAdminSetting extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'admin_setting';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
  19. "type", //tinyint(3) NOT NULL COMMENT '设置类型 1:支付方式 2:配送方式',
  20. "title", //varchar(255) NOT NULL COMMENT '名称',
  21. "content", //json DEFAULT NULL COMMENT '内容',
  22. "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
  23. "updateTime", //int(10) DEFAULT NULL COMMENT '修改时间',
  24. "extends", //json DEFAULT NULL COMMENT '扩展字段',
  25. "signId"
  26. ];
  27. $this->_readonly = ['id'];
  28. $this->_create_autofill = [
  29. 'createTime' => time()
  30. ];
  31. $this->_update_autofill = [
  32. 'updateTime' => time()
  33. ];
  34. parent::__construct($serviceDB);
  35. }
  36. }