DCase.Class.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * 案例Dao
  4. * Created by PhpStorm.
  5. * User: 小威
  6. * Date: 2020/03/28
  7. * Time: 16:01
  8. */
  9. namespace JinDouYun\Dao\Manage;
  10. use JinDouYun\Dao\BaseDao;
  11. class DCase extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'manage')
  14. {
  15. $this->_table = 'case';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT 'id',
  19. "title", //varchar(255) NOT NULL COMMENT '标题',
  20. "thumbnail", //varchar(255) NOT NULL COMMENT '缩略图',
  21. "caseCategoryId", //int(10) NOT NULL DEFAULT '0' COMMENT '案例分类',
  22. 'slogan',
  23. 'time',
  24. "clicks", //int(10) DEFAULT NULL COMMENT '点击量',
  25. "content", //text COMMENT '案例内容',
  26. "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
  27. "updateTime", //int(10) DEFAULT NULL COMMENT '修改时间',
  28. ];
  29. $this->_readonly = ['id'];
  30. $this->_create_autofill = [
  31. ];
  32. $this->_update_autofill = [
  33. ];
  34. parent::__construct($serviceDB);
  35. }
  36. }