import service from '@/utils/request'

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

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

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

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

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

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