import api from '../index'

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

  detail: (id: number) => api.get('magic-api/biz/stocktake/detail', { params: { id } }),

  save: (data: any) => api.post('magic-api/biz/stocktake/save', data),

  delete: (id: number) => api.post('magic-api/biz/stocktake/delete', { id }),

  items: (stocktake_id: number) => api.get('magic-api/biz/stocktake/items', { params: { stocktake_id } }),

  checkItem: (data: any) => api.post('magic-api/biz/stocktake/check_item', data),
}
