ArticleContentServices.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. namespace app\services\article;
  12. use app\dao\article\ArticleContentDao;
  13. use app\services\BaseServices;
  14. /**
  15. * 文章内容
  16. * Class ArticleContentServices
  17. * @package app\services\article
  18. * @mixin ArticleContentDao
  19. */
  20. class ArticleContentServices extends BaseServices
  21. {
  22. /**
  23. * ArticleContentServices constructor.
  24. * @param ArticleContentDao $dao
  25. */
  26. public function __construct(ArticleContentDao $dao)
  27. {
  28. $this->dao = $dao;
  29. }
  30. /**
  31. * 删除
  32. * @param int $id
  33. * @return bool
  34. */
  35. public function del(int $id)
  36. {
  37. return $this->dao->del($id);
  38. }
  39. }