import request from '@/utils/request';

/*
 * 分页查询
 */
export const getTaOrgIssue = (params) => request('/api/taOrgIssue', { params });

/*
 * 新增数据
 */
export const postTaOrgIssue = (data) => request('/api/taOrgIssue', { data, method: 'post' });

/*
 * 通过ID查询单条数据
 */
export const getTaOrgIssueById = (id) => request(`/api/taOrgIssue/${id}`);
/*
 * 通过ISSUE_ID查询单条数据
 */
export const getTaOrgIssueByIssueId = (issueId, orgId = '') => request(`/api/taIssue/${issueId}/orgIssue?orgId=${orgId}`);

/*
 * 更新数据
 */
export const putTaOrgIssue = (id, data) => request(`/api/taOrgIssue/${id}`, { data, method: 'put' });

/*
 * 通过主键删除数据
 */
export const deleteTaOrgIssue = (id) => request(`/api/taOrgIssue/${id}`, { method: 'delete' });
