DExpressCode.Class.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace JinDouYun\Dao\System;
  3. use JinDouYun\Dao\BaseDao;
  4. /**
  5. * Description:
  6. * Class DExpressCode
  7. * @package JinDouYun\Controller\System
  8. */
  9. class DExpressCode extends BaseDao
  10. {
  11. public function __construct($serviceDB = 'default')
  12. {
  13. $this->_table = 'expressCode';
  14. $this->_primary = 'id';
  15. $this->_fields = [
  16. 'id',//int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  17. 'name',//varchar(50) DEFAULT NULL COMMENT '菜单名称',
  18. 'pid',//int(11) DEFAULT '0' COMMENT '父菜单id',
  19. 'alias',//varchar(255) NOT NULL COMMENT '别名',
  20. 'extend',//json DEFAULT NULL COMMENT '扩展字段',
  21. 'deleteStatus',//tinyint(1) DEFAULT NULL COMMENT '删除(5未删除 4删除)',
  22. 'enableStatus',//tinyint(1) DEFAULT NULL COMMENT '启用状态',
  23. 'createTime',//int(11) DEFAULT NULL COMMENT '创建时间',
  24. 'updateTime',//int(11) DEFAULT NULL COMMENT '修改时间',
  25. ];
  26. $this->_readonly = ['id'];
  27. $this->_create_autofill = [
  28. 'createTime' => time()
  29. ];
  30. $this->_update_autofill = [
  31. 'updateTime' => time()
  32. ];
  33. parent::__construct($serviceDB);
  34. }
  35. }