UNPKG

enc-manager

Version:

enc-manager 核心组件.

27 lines (23 loc) 783 B
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("MANAGER_CONTEXT_PATH")}).getHttpClient(); //IP设置 let ipService = { //查询IP设置分页列表 findFilterIpListByPage(params){ if(!params){ params = {}; } return $http.post('/api/ipFilter/findFilterIpListByPage', params).then(res => res.data); }, //删除IP deleteFilterIpById(id){ return $http.get("/api/ipFilter/deleteFilterIpById/"+id).then(res => res.data); }, //保存或更新 saveOrUpdate(params){ return $http.post('/api/ipFilter/saveOrUpdate', params).then(res => res.data); }, }; export default ipService;