How to use a reusable Service with parameters and use it in other custom controllers without types

System Information
  • Strapi Version: 4.4.2
  • Operating System: Ubuntu
  • Database: MySQL
  • Node Version: 14.19.3
  • NPM Version: 6.14.17

Hi I want to know how can i create a reusable service than fetch filtered data to multiple controllers. This service has to recieve data with two ids. And this api is created without tables for its own. Its a mix of other tables.