/**
 * 海邻招聘岗位接口
 */
import request from '@/utils/request'
// 获取产品列表
export const getProductsList = (params) => request.basic.get('/api/v1/products', params)
// 获取产品单条数据
export const getProductsItem = (id) => request.basic.get(`/api/v1/products/${id}`)
// 添加产品
export const createProductsItem = (params) => request.basic.post('/api/v1/products', params)
// 更新产品
export const updateProductsItem = (id, params) => request.basic.put(`/api/v1/products/${id}`, params)
// 删除产品
export const delProductsItem = (id) => request.basic.delete(`/api/v1/products/${id}`)
// 获取产品类别列表
export const getProductCategory = (params) => request.basic.get('/api/v1/products/categorys', params)
// 获取产品适用对象
export const getProductObj = (params) => request.basic.get('/api/v1/products/target', params)
// 添加产品类别
export const createProductCategory = (params) => request.basic.post('/api/v1/products/categorys', params)
// 添加适用对象产品
export const createProductObj = (params) => request.basic.post('/api/v1/products/target', params)
