import service from '@/utils/request'

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

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

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

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

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

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