|
@@ -1,26 +1,26 @@
|
|
|
import http from '../utils/http/http.js'
|
|
|
// 获取资源列表
|
|
|
const getAllService= (params) => {
|
|
|
- return http.post('/allservice', params)
|
|
|
+ return http.post('/api/allservice', params)
|
|
|
};
|
|
|
// 获取资源详情
|
|
|
const getServiceDetail= (params) => {
|
|
|
- return http.get('/service', params)
|
|
|
+ return http.get('/api/service', params)
|
|
|
};
|
|
|
// 添加资源
|
|
|
const addService= (params) => {
|
|
|
- return http.post('/service', params)
|
|
|
+ return http.post('/api/service', params)
|
|
|
};
|
|
|
// 修改资源
|
|
|
const updateService=(params) => {
|
|
|
- return http.put('/service', params)
|
|
|
+ return http.put('/api/service', params)
|
|
|
};
|
|
|
// 删除资源
|
|
|
const deleteService= (params) => {
|
|
|
- return http.del('/service', params)
|
|
|
+ return http.del('/api/service', params)
|
|
|
}
|
|
|
const GetServiceType= (params) => {
|
|
|
- return http.get('/getservice', params)
|
|
|
+ return http.get('/api/getservice', params)
|
|
|
}
|
|
|
export default {
|
|
|
deleteService, updateService, addService, getServiceDetail,getAllService,GetServiceType
|