DCategory.Class.php 720 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: XiaoMing
  5. * Date: 2019/10/31
  6. * Time: 15:49
  7. */
  8. namespace JinDouYun\Dao\Manage;
  9. use JinDouYun\Dao\BaseDao;
  10. class DCategory extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'manage')
  13. {
  14. $this->_table = 'category';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. "id", //int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  18. 'categoryName',
  19. 'sort',
  20. 'enableStatus',
  21. 'description',
  22. 'type'
  23. ];
  24. $this->_readonly = ['id'];
  25. $this->_create_autofill = [
  26. ];
  27. $this->_update_autofill = [
  28. ];
  29. parent::__construct($serviceDB);
  30. }
  31. }