| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?php
- /**
- * @package merchant
- *
- * @author xaboy
- * @day 2020-03-24
- *
- *
- */
- namespace app\common\dao\system\config;
- use app\common\dao\BaseDao;
- use app\common\model\BaseModel;
- use app\common\model\system\config\SystemContribution;
- use think\Collection;
- use think\db\exception\DataNotFoundException;
- use think\db\exception\DbException;
- use think\db\exception\ModelNotFoundException;
- use think\Model;
- /**
- * Class SystemContributionDao
- * @package app\common\dao\system\config
- * @author xaboy
- * @day 2020-03-27
- */
- class SystemContributionDao extends BaseDao
- {
- /**
- * @return BaseModel
- * @author xaboy
- * @day 2020-03-30
- */
- protected function getModel(): string
- {
- return SystemContribution::class;
- }
- /**
- * @return Collection
- * @throws DataNotFoundException
- * @throws DbException
- * @throws ModelNotFoundException
- * @author xaboy
- * @day 2020-03-31
- */
- public function all()
- {
- return SystemContribution::getDB()->select();
- }
- /**
- * @return int
- * @author xaboy
- * @day 2020-03-31
- */
- public function count()
- {
- return SystemContribution::getDB()->count();
- }
- }
|