import request from '@/utils/request'

//获取标签列表
export const getTagList = (params) => request.basic.get('/api/v1/home-top-labels', params)

// 新增标签
export const createTag = (data) => request.basic.post('/api/v1/home-top-labels', data)

//获取单个标签
export const getTag = (id) => request.basic.get(`/api/v1/home-top-labels/${id}`)

// 编辑标签
export const updateTag = (id, data) => request.basic.put(`/api/v1/home-top-labels/${id}`, data)

// 删除标签
export const deleteTag = (id) => request.basic.delete(`/api/v1/home-top-labels/${id}`)

//获取产品优势列表
export const getAdvanceList = (params) => request.basic.get('/api/v1/advance', params)

// 获取产品优势详情
export const getAdvance = (id) => request.basic.get(`/api/v1/advance/${id}`)

// 编辑产品优势
export const updateAdvance = (id, data) => request.basic.put(`/api/v1/advance/${id}`, data)

// 删除产品优势
export const deleteActive = (id) => request.basic.delete(`/api/v1/advance/${id}`)

// 新增产品优势
export const createAdvance = (data) => request.basic.post('/api/v1/advance', data)
