import service from '@/utils/request'

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

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

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

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

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

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