import service from '@/utils/request'

// @Summary 获取列表数据
// @Produce  application/json
// @Router /cms/tag/getList [post]
export const getTagList = (data) => {
  return service({
    url: '/cms/tag/getList',
    method: 'post',
    data
  })
}

// @Summary 新增
// @Produce  application/json
// @Param Object
// @Router /cms/tag/add [post]
export const addTag = (data) => {
  return service({
    url: '/cms/tag/add',
    method: 'post',
    data
  })
}

// @Summary 删除
// @Produce  application/json
// @Param ID int
// @Router /cms/tag/delete [delete]
export const deleteTag = (data) => {
  return service({
    url: '/cms/tag/delete',
    method: 'delete',
    data
  })
}
