import service from '@/utils/request'

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

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

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

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

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

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