
import request from '@/config/axios'

export interface SOPVo {
  id: number,
  sopId: number,
  groupName: number,
  remark: string,
}

export interface PageParam {
  pageNo: number
  pageSize: number
}

// 查询SopPointGroup列表
export const getSopGroupList = async (params: PageParam) => {
  return await request.get({ url: '/iscs/sop-group/getSopGroupList', params })
}

// 获取SopPointGroup详细信息
export const selectSopGroupById = async (id: number) => {
  return await request.get({ url: '/iscs/sop-group/selectSopGroupById', params: { id: id } })
}


// 新增SopPointGroup
export const insertSopGroup = async (data: SOPVo) => {
  return await request.post({ url: '/iscs/sop-group/insertSopGroup', data })
}

// 修改SopPointGroup
export const updateSopGroup= async (data: SOPVo) => {
  return await request.put({ url: '/iscs/sop-group/updateSopGroup', data })
}

// 删除SopPointGroup
export const deleteSopGroupList = async (ids: number) => {
  return await request.delete({
    url: '/iscs/sop-group/deleteSopGroupList?ids='+ids,
  })
}
