xuefei
2023-08-08 6c764f473b1e0e9dd2fb13034fe0d7295ab3724e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 统一请求路径前缀在libs/axios.js中修改
import { getRequest, postRequest, putRequest, postBodyRequest, getNoAuthRequest, postNoAuthRequest } from '@/libs/axios';
 
// 分页获取数据
export const get${apiName}List = (params) => {
    return getRequest('/${vueName}/getByCondition', params)
}
// 添加
export const add${apiName} = (params) => {
    return postRequest('/${vueName}/save', params)
}
// 编辑
export const edit${apiName} = (params) => {
    return putRequest('/${vueName}/update', params)
}
// 删除
export const delete${apiName} = (params) => {
    return postRequest('/${vueName}/delByIds', params)
}