import service from '@/utils/request'

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

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

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

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

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

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