添加各个木块代码生成

This commit is contained in:
陈淳
2023-01-04 13:40:30 +08:00
parent 7838cd1a6a
commit fbcd004b7e
23 changed files with 505 additions and 33 deletions

View File

@@ -0,0 +1,45 @@
import request from '@/utils/request'
// 分页查询
export function listData(query) {
return request({
url: '/#LowerEntityName#/pageList',
method: 'get',
params: query
})
}
// id查询
export function getData(code) {
return request({
url: '/#LowerEntityName#/getById/' + code,
method: 'get'
})
}
// 新增
export function addData(data) {
return request({
url: '/#LowerEntityName#/create',
method: 'post',
data: data
})
}
// 修改
export function updateData(id,data) {
return request({
url: `/#LowerEntityName#/update/${id}`,
method: 'put',
data: data
})
}
// 删除
export function delData(code) {
return request({
url: '/#LowerEntityName#/del',
method: 'delete',
data:"string"==typeof(code)?[code]:code
})
}