
import request from '@/config/axios'

export interface jobVO {
  id: number,
  ticketId: number,
  groupName: string,
  remark: string
}

export interface PageParam {
  pageNo: number
  pageSize: number
}

// 查询Job点位分组列表
export const getJobTicketGroupPage = async (params: PageParam) => {
  return await request.get({ url: '/iscs/job-ticket-group/getJobTicketGroupPage', params })
}

// 获取Job点位分组详细信息
export const selectJobTicketGroupById = async (id: number) => {
  return await request.get({ url: '/iscs/job-ticket-group/selectJobTicketGroupById', params: { id: id } })
}

// 新增Job 点位分组
export const insertJobTicketGroup = async (data: jobVO) => {
  return await request.post({ url: '/iscs/job-ticket-group/insertJobTicketGroup', data })
}

// 修改Job 点位分组
export const updateJobTicketGroup = async (data: jobVO) => {
  return await request.put({ url: '/iscs/job-ticket-group/updateJobTicketGroup', data })
}

// 删除Job 点位分组
export const deleteJobTicketGroupList = async (ids: number) => {
  return await request.delete({
    url: '/iscs/job-ticket-group/deleteJobTicketGroupList?ids='+ids,
  })
}
