<?php
/**
 *
 *User:Administrator
 *Date:2021/10/11
 */

namespace app\api\business;

use app\api\model\Pesticides;
use app\api\model\TestPesticides;

class PesticidesBus
{
    public function selectPesticidesList($pageNum,$pageSize,$key_word)
    {
        $data = (new Pesticides())->selectPesticidesList($key_word, $pageNum, $pageSize)->toArray();
        $count = (new Pesticides())->countPesticidesList($key_word);
        $result = [
            'rows' => $data,
            'total' => $count,
        ];
        return $result;
    }

}