import { DicMarkTypeModel, DicMarkTypeQueryParam } from '@/types'
import request from '@/until/request'

/**
 * 获取标记类型字典列表
 * @param data DicMarkTypeQueryParam
 */
const QueryDicMarkTypeList = () =>
    request({
        url: '/DicMarkTypeAction/list',
        method: 'get',
    })

/**
* 新增标记类型字典
* @param data DicMarkTypeModel
*/
const AddDicMarkType = (data: DicMarkTypeModel) =>
    request({
        url: '/DicMarkTypeAction/saveDicMarkType',
        method: 'post',
        data: data
    })

/**
* 编辑标记类型字典
* @param data DicMarkTypeModel
*/
const EditDicMarkType = (data: DicMarkTypeModel) =>
    request({
        url: '/DicMarkTypeAction/updateDicMarkType',
        method: 'post',
        data: data
    })

/**
* 删除标记类型字典
* @param  id number
*/
const DeleteDicMarkType = (id: number) =>
    request({
        url: '/DicMarkTypeAction/deleteDicMarkType/' + id,
        method: 'get',
    })

export default {
    QueryDicMarkTypeList,
    AddDicMarkType,
    EditDicMarkType,
    DeleteDicMarkType
}