import service from '@/utils/request'

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

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

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

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

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

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