import {drugsSearchForMechanism, drugsSearchForSystem} from "@/api/drugs/drugs";

export default {
  'drugsSearchForSystem': (query) => {
    return drugsSearchForSystem({name: query.name || ''})
  },
  'drugsSearchForMechanism': (query) => {
    return drugsSearchForMechanism({
      herbsName: query.name || '',
      communityId: query.communityId,
      mechanismId: query.mechanismId,
      isMapping: '',
      pageNum: query.pageNumber,
      pageSize: query.pageSize,
    })
  }
}
