You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.0 KiB
Plaintext
45 lines
1.0 KiB
Plaintext
import request from '@/utils/request'
|
|
|
|
// 查询${functionName}列表
|
|
export function list${BusinessName}(query) {
|
|
return request({
|
|
url: '/${moduleName}/${businessName}/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询${functionName}详细
|
|
export function get${BusinessName}(${pkColumn.javaField}) {
|
|
return request({
|
|
url: '/${moduleName}/${businessName}/' + ${pkColumn.javaField},
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增${functionName}
|
|
export function add${BusinessName}(data) {
|
|
return request({
|
|
url: '/${moduleName}/${businessName}',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改${functionName}
|
|
export function update${BusinessName}(data) {
|
|
return request({
|
|
url: '/${moduleName}/${businessName}',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除${functionName}
|
|
export function del${BusinessName}(${pkColumn.javaField}) {
|
|
return request({
|
|
url: '/${moduleName}/${businessName}/' + ${pkColumn.javaField},
|
|
method: 'delete'
|
|
})
|
|
}
|