vm.js.index.model.js.vm Maven / Gradle / Ivy
import PSY_URI from '@/api/url'
import {
GET,
POST,
PUT,
POSTJSON,
PUTJSON,
DELETE
} from '@/utils/request'
/**
* 查询${functionName}列表
* @param { 无 }
* */
export const get${ClassName}List = (data) => {
return GET( '/${moduleName}/${businessName}/list', { data })
}
/**
* 查询${functionName}详细
* @param { 无 }
* */
export const get${ClassName}Info = (id) => {
return GET('/${moduleName}/${businessName}/info' + '/' + id)
}
/**
* 删除${functionName}
* @param { ids } ID
* */
export const delete${ClassName} = (ids) => {
return DELETE('/${moduleName}/${businessName}/delete', {
data: ids
})
}
/**
* 新增${functionName}
* @param { data } 数据
* */
export const add${ClassName} = (data) => {
return POSTJSON('/${moduleName}/${businessName}/save', { data })
}
/**
* 修改${functionName}
* @param { data } 数据
* */
export const update${ClassName} = (data) => {
return PUTJSON('/${moduleName}/${businessName}/update', { data })
}
/**
* 导出excel
* @param { data } 数据
* */
export const exportExcel${ClassName} = (data) => {
return GET('/${moduleName}/${businessName}/export', { data ,responseType:'arraybuffer'})
}
#if($tplCategory == "activiti")
/**
* 通过流程ID查询${functionName}详细
* @param { 无 }
* */
export const get${ClassName}InfoByInstanceId = (processInstanceId) => {
return GET('/${moduleName}/${businessName}/get${ClassName}InfoByInstanceId' + '/' + processInstanceId)
}
#end
© 2015 - 2025 Weber Informatics LLC | Privacy Policy