Files
nl-tool-platform/nl-vue/src/api/pmm/projectFileApi.js
2025-11-19 16:45:26 +08:00

33 lines
814 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { baseRequest } from '@/utils/request'
const request = (url, ...arg) => baseRequest(`/pmm/projectfile/` + url, ...arg)
/**
* 项目附件表Api接口管理器
*
* @author liyongde
* @date 2025/11/17 20:24
**/
export default {
// 获取项目附件表分页
projectFilePage(data) {
return request('page', data, 'get')
},
// 提交项目附件表表单 edit为true时为编辑默认为新增
projectFileSubmitForm(data, edit = false) {
return request(edit ? 'edit' : 'add', data)
},
// 删除项目附件表
projectFileDelete(data) {
return request('delete', data)
},
// 获取项目附件表详情
projectFileDetail(data) {
return request('detail', data, 'get')
},
// 获取项目附件表详情
bindProjectFile(data) {
return request('bindProjectFile', data, 'post')
}
}