import service from '@/utils/request'

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

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

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

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

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

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