paginate($pageSize); // 使用分页方法 return $query; } /** * @notes:新增 * @param $data * @return bool */ public function add($data): bool { $data['store_id'] = self::$storeId; return $this->save($data); } /** * @notes:删除 * @param array $IdentityId * @return bool * @author: wanghousheng */ public function remove(array $ids): bool { if (static::whereIn('id', $ids)->delete()) { return true; } return false; } }