UNPKG

enc-base

Version:

enc-base 核心组件.

41 lines (32 loc) 1.09 kB
/** * Created by Administrator on 2018/6/6. */ import AjmHttp from 'enc-framework/core/utils/ajm-http'; import AjmConfig from 'enc-framework/core/utils/ajm-config' // http请求对象 let $http = new AjmHttp({contextPath: AjmConfig.get("BASE_CONTEXT_PATH")}).getHttpClient(); let iconService = { // 查询图标列表 findIconListByPage(params) { if (!params) { params = {}; } return $http.post('/api/icon/findIconListByPage', params).then(res => res.data); }, // 删除图标 deleteIconById(iconId) { return $http.get('/api/icon/deleteIconById/' + iconId).then(res => res.data); }, //保存或更新图标 saveAndUpdateIcon(params) { return $http.post('/api/icon/saveAndUpdateIcon', params).then(res => res.data); }, //批量删除图标 batchDeleteIcons(params){ if(!params){ params = []; } return $http.post("/api/icon/batchDeleteIcons",params).then(res => res.data); }, } export default iconService;