12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- namespace App\Repositories\Eloquent;
- use Prettus\Repository\Eloquent\BaseRepository;
- use Prettus\Repository\Criteria\RequestCriteria;
- use App\Repositories\ContractDistributionRepository;
- use App\Models\ContractDistribution;
- use App\Validators\ContractDistributionValidator;
- /**
- * Class ContractDistributionRepositoryEloquent.
- *
- * @package namespace App\Repositories\Eloquent;
- */
- class ContractDistributionRepositoryEloquent extends BaseRepository implements ContractDistributionRepository
- {
- /**
- * 查询检索的字段
- *
- * @return string
- */
- protected $fieldSearchable = [
- 'id' => '=',
- 'c.contract_sn' => '=',
- 'cb.type' => '=',
- 'cb.status' => '=',
- 'cb.to_address' => '=',
- ];
- /**
- * Specify Model class name
- *
- * @return string
- */
- public function model()
- {
- return ContractDistribution::class;
- }
- /**
- * Specify Validator class name
- *
- * @return mixed
- */
- public function validator()
- {
- return ContractDistributionValidator::class;
- }
- /**
- * Boot up the repository, pushing criteria
- */
- public function boot()
- {
- // $this->pushCriteria(app(RequestCriteria::class));
- }
- }
|