DArticle.Class.php 793 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: phperstar
  5. * Date: 2020/2/11
  6. * Time: 15:49
  7. */
  8. namespace JinDouYun\Dao\Manage;
  9. use JinDouYun\Dao\BaseDao;
  10. class DArticle extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'manage')
  13. {
  14. $this->_table = 'article';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. "id", //int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  18. 'title',
  19. 'content',
  20. 'image',
  21. 'description',
  22. 'categoryId',
  23. 'deleteStatus',
  24. 'createTime',
  25. 'updateTime'
  26. ];
  27. $this->_readonly = ['id'];
  28. $this->_create_autofill = [
  29. ];
  30. $this->_update_autofill = [
  31. ];
  32. parent::__construct($serviceDB);
  33. }
  34. }