<?php namespace app\repository; use app\exception\RepositoryException; use app\model\CouponMain; use app\service\Repository; use think\Model; /** * 优惠券 相关操作 * * Class CouponRepository * @package app\repository * @method self getInstance(Model $model = null) static */ class CouponRepository extends Repository { /** * 优惠券列表 * * @param string $businessCode 商家code * @param array $order * @return array * @throws RepositoryException */ public function businessCouponModel($where) { return CouponMain::where($where); } }