52 lines
1.1 KiB
Plaintext
52 lines
1.1 KiB
Plaintext
import request from '@/utils/request'
|
|
|
|
// 查询${functionName}分列表
|
|
export function listPage${BusinessName}(data) {
|
|
return request({
|
|
url: '/${moduleName}/listPage',
|
|
method: 'post',
|
|
params: data
|
|
})
|
|
}
|
|
// 查询${functionName}列表
|
|
export function list${BusinessName}() {
|
|
return request({
|
|
url: '/${moduleName}/list',
|
|
method: 'get',
|
|
})
|
|
}
|
|
// 查询${functionName}详细
|
|
export function get${BusinessName}(${pkColumn.javaField}) {
|
|
return request({
|
|
url: '/${moduleName}/query?id=' + ${pkColumn.javaField},
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增${functionName}
|
|
export function add${BusinessName}(data) {
|
|
return request({
|
|
url: '/${moduleName}/add',
|
|
method: 'post',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 修改${functionName}
|
|
export function update${BusinessName}(data) {
|
|
return request({
|
|
url: '/${moduleName}/edit',
|
|
method: 'post',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 删除${functionName}
|
|
export function del${BusinessName}(${pkColumn.javaField}) {
|
|
return request({
|
|
url: '/${moduleName}/remove/',
|
|
method: 'post',
|
|
params: {id:${pkColumn.javaField}}
|
|
})
|
|
}
|