import api from '../index'

export default {
  page: (data: {
    consumable_id: number
    keyword?: string
    action_type?: string
    page?: number
    size?: number
  }) => api.post('magic-api/biz/transaction/page', data),

  inOut: (data: {
    consumable_id: number
    action_type: string
    quantity: number
    operator_id: number
    note?: string
  }) => api.post('magic-api/biz/transaction/in_out', data),
}
