提交api

This commit is contained in:
zhaofang
2022-11-02 12:01:27 +08:00
parent 2e027bb6ff
commit ed553c5175
9 changed files with 745 additions and 3 deletions

28
api/phase2/place.js Normal file
View File

@@ -0,0 +1,28 @@
// import ajax from '@/utils/xajax.js'
// import ajax from '../cesource/index.js';
import ajax from '../ajax'
const baseURL = process.env.VUE_APP_CESOURCE_BASE_API;
/**
* 添加或编辑
* @param 参数见设计文档
* */
const saveOrUpdate=function (data){
return ajax.postJson(baseURL,'/xboe/subgroup/m/pageplace/saveOrUpdate',data);
}
/**
* 根据key获取资源信息
* */
const detail=function (key){
return ajax.get(baseURL,'/xboe/subgroup/m/pageplace/detail-key?key='+key);
}
export default {
saveOrUpdate,
detail
}