| 
									
										
										
										
											2024-04-13 08:51:23 +08:00
										 |  |  | package com.zcloud.service.dw.impl; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import com.zcloud.service.dw.DwService; | 
					
						
							|  |  |  | import com.zcloud.service.dw.dto.*; | 
					
						
							|  |  |  | import com.zcloud.util.HttpUtil; | 
					
						
							|  |  |  | import org.springframework.beans.factory.annotation.Value; | 
					
						
							|  |  |  | import org.springframework.stereotype.Service; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @Service | 
					
						
							|  |  |  | public class DwServiceImpl implements DwService { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-13 11:03:47 +08:00
										 |  |  |     @Value("${dw.url}") | 
					
						
							| 
									
										
										
										
											2024-04-13 08:51:23 +08:00
										 |  |  |     private String url; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     @Override | 
					
						
							|  |  |  |     public Object getMapList(MapGet param) throws Exception { | 
					
						
							|  |  |  |         return HttpUtil.post(url + "dw/getMapList", param); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     @Override | 
					
						
							|  |  |  |     public Object saveOrUpdateMap(MapInfo param) throws Exception { | 
					
						
							|  |  |  |         return HttpUtil.post(url + "dw/saveOrUpdateMap", param); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     @Override | 
					
						
							|  |  |  |     public Object getTrace(TraceGet param) throws Exception { | 
					
						
							|  |  |  |         return HttpUtil.post(url + "dw/getTrace", param); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     @Override | 
					
						
							|  |  |  |     public Object getAlarmList(AlarmGet param) throws Exception { | 
					
						
							|  |  |  |         return HttpUtil.post(url + "dw/getAlarmList", param); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     @Override | 
					
						
							|  |  |  |     public Object manageAlarm(AlarmManageDto param) throws Exception { | 
					
						
							|  |  |  |         return HttpUtil.post(url + "dw/manageAlarm", param); | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2024-04-13 10:27:30 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |     @Override | 
					
						
							|  |  |  |     public Object getDictionary() throws Exception { | 
					
						
							| 
									
										
										
										
											2024-04-13 11:03:47 +08:00
										 |  |  |         System.out.println(url + "dw/getDictionary"); | 
					
						
							| 
									
										
										
										
											2024-04-13 10:27:30 +08:00
										 |  |  |         return HttpUtil.post(url + "dw/getDictionary", ""); | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2024-04-13 08:51:23 +08:00
										 |  |  | } |