import service from '@/utils/request'

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

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

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

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

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

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