import { BasePaginationData } from '@/types/api'
import axios from '../axios'
import { SearchForm, WarehouseRuleSettingData } from '@/types/api/warehouse/warehouseRuleSetting'
export function getWarehouseRuleSettingListApi(
  data: SearchForm,
  page: number,
  pageSize: number,
) {
  return axios.post<never, BasePaginationData<WarehouseRuleSettingData>>(
    'warehouseRuleSetting/list_page',
    { ...data, page, pageSize },
  )
}
