import { TSetupPicModel, TSetupPicQueryParam } from '@/types'
import request from '@/until/request'

/**
 * 获取安装明细列表
 * @param data TSetupPicQueryParam
 */
const QueryTSetupPicList = (data: TSetupPicQueryParam) =>
    request({
        url: '/TSetupPicAction/list',
        method: 'post',
        data: data
    })

/**
* 新增安装明细
* @param data TSetupPicModel
*/
const AddTSetupPic = (data: TSetupPicModel) =>
    request({
        url: '/TSetupPicAction/saveTSetupPic',
        method: 'post',
        data: data
    })

/**
* 编辑安装明细
* @param data TSetupPicModel
*/
const EditTSetupPic = (data: TSetupPicModel) =>
    request({
        url: '/TSetupPicAction/updateTSetupPic',
        method: 'post',
        data: data
    })

/**
* 删除安装明细
* @param  id number
*/
const DeleteTSetupPic = (id: number) =>
    request({
        url: '/TSetupPicAction/deleteTSetupPic/' + id,
        method: 'get',
    })

export default {
    QueryTSetupPicList,
    AddTSetupPic,
    EditTSetupPic,
    DeleteTSetupPic,
}