import service from '@/utils/request'

// @Tags GoodsShow
// @Summary 创建商品
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GoodsShow true "创建商品"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /goodsShow/createGoodsShow [post]
export const createGoodsShow = (data) => {
  return service({
    url: '/goodsShow/createGoodsShow',
    method: 'post',
    data
  })
}

// @Tags GoodsShow
// @Summary 删除商品
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GoodsShow true "删除商品"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /goodsShow/deleteGoodsShow [delete]
export const deleteGoodsShow = (params) => {
  return service({
    url: '/goodsShow/deleteGoodsShow',
    method: 'delete',
    params
  })
}

// @Tags GoodsShow
// @Summary 批量删除商品
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除商品"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /goodsShow/deleteGoodsShow [delete]
export const deleteGoodsShowByIds = (params) => {
  return service({
    url: '/goodsShow/deleteGoodsShowByIds',
    method: 'delete',
    params
  })
}

// @Tags GoodsShow
// @Summary 更新商品
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GoodsShow true "更新商品"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /goodsShow/updateGoodsShow [put]
export const updateGoodsShow = (data) => {
  return service({
    url: '/goodsShow/updateGoodsShow',
    method: 'put',
    data
  })
}

// @Tags GoodsShow
// @Summary 用id查询商品
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.GoodsShow true "用id查询商品"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /goodsShow/findGoodsShow [get]
export const findGoodsShow = (params) => {
  return service({
    url: '/goodsShow/findGoodsShow',
    method: 'get',
    params
  })
}

// @Tags GoodsShow
// @Summary 分页获取商品列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取商品列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /goodsShow/getGoodsShowList [get]
export const getGoodsShowList = (params) => {
  return service({
    url: '/goodsShow/getGoodsShowList',
    method: 'get',
    params
  })
}
