snowy/snowy-plugin/snowy-plugin-gen/src/main/resources/mobile/Api.js.btl

35 lines
916 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import request from '@/utils/request'
// 获取${functionName}分页
export function ${classNameFirstLower}Page(data) {
return request({
url: '/${moduleName}/${busName}/page',
method: 'get',
data: data
})
}
// 提交${functionName}表单 add为false时为编辑默认为新增
export function ${classNameFirstLower}SubmitForm(data, add = true) {
return request({
url: '/${moduleName}/${busName}/'+ (add ? 'add' : 'edit'),
method: 'post',
data: data
})
}
// 删除${functionName}
export function ${classNameFirstLower}Delete(data) {
return request({
url: '/${moduleName}/${busName}/delete',
method: 'post',
data: data
})
}
// 获取${functionName}详情
export function ${classNameFirstLower}Detail(data) {
return request({
url: '/${moduleName}/${busName}/detail',
method: 'get',
data: data
})
}