2023-11-06 18:08:25 +08:00
|
|
|
import request from '@/config/axios'
|
|
|
|
|
|
|
|
export function save(data) {
|
|
|
|
return request.post({
|
2023-11-10 08:39:42 +08:00
|
|
|
url: '/templateManage/save',
|
2023-11-06 18:08:25 +08:00
|
|
|
data: data,
|
|
|
|
loading: true
|
|
|
|
})
|
|
|
|
}
|
|
|
|
export function templateDelete(id) {
|
|
|
|
return request.post({
|
2023-11-10 08:39:42 +08:00
|
|
|
url: '/templateManage/delete/' + id
|
2023-11-06 18:08:25 +08:00
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export function showTemplateList(data) {
|
|
|
|
return request.post({
|
2023-11-10 08:39:42 +08:00
|
|
|
url: '/templateManage/templateList',
|
2023-11-06 18:08:25 +08:00
|
|
|
data: data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export function findOne(id) {
|
|
|
|
return request.get({
|
2023-11-10 08:39:42 +08:00
|
|
|
url: '/templateManage/findOne/' + id
|
2023-11-06 18:08:25 +08:00
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export function find(data) {
|
|
|
|
return request.post({
|
2023-11-10 08:39:42 +08:00
|
|
|
url: '/templateManage/find',
|
2023-11-06 18:08:25 +08:00
|
|
|
data: data,
|
|
|
|
loading: true
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export function nameCheck(data) {
|
|
|
|
return request.post({
|
2023-11-10 08:39:42 +08:00
|
|
|
url: '/templateManage/nameCheck',
|
2023-11-06 18:08:25 +08:00
|
|
|
data: data
|
|
|
|
})
|
|
|
|
}
|