import { TaskBatchRemoteDetailModel, TaskBatchRemoteDetailQueryParam } from '@/types'
import request from '@/until/request'

/**
 * 获取TaskBatchRemoteDetail列表
 * @param data TaskBatchRemoteDetailQueryParam
 */
const QueryTaskBatchRemoteDetailList = (data: TaskBatchRemoteDetailQueryParam) =>
request({
    url: '/TaskBatchRemoteDetailAction/list',
    method: 'post',
    data: data
})

/**
* 新增TaskBatchRemoteDetail
* @param data TaskBatchRemoteDetailModel
*/
const AddTaskBatchRemoteDetail = (data: TaskBatchRemoteDetailModel) =>
    request({
        url: '/TaskBatchRemoteDetailAction/saveTaskBatchRemoteDetail',
        method: 'post',
        data: data
    })

/**
* 编辑TaskBatchRemoteDetail
* @param data TaskBatchRemoteDetailModel
*/
const EditTaskBatchRemoteDetail = (data: TaskBatchRemoteDetailModel) =>
    request({
        url: '/TaskBatchRemoteDetailAction/updateTaskBatchRemoteDetail',
        method: 'post',
        data: data
    })

/**
* 删除TaskBatchRemoteDetail
* @param  id number
*/
const DeleteTaskBatchRemoteDetail = (id: number) =>
    request({
        url: '/TaskBatchRemoteDetailAction/deleteTaskBatchRemoteDetail/' + id,
        method: 'get',
    })

export default {
    QueryTaskBatchRemoteDetailList,
    AddTaskBatchRemoteDetail,
    EditTaskBatchRemoteDetail,
    DeleteTaskBatchRemoteDetail,
}