import service from '@/utils/request'

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

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

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

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

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

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