Просмотр исходного кода

统一设备管理返回格式

konghl лет назад: 4
Родитель
Сommit
9ec6ffcd72

+ 3 - 5
location-rescue-service/src/main/java/com/ai/bss/location/rescue/controller/DeviceManageController.java

184
	 */
184
	 */
185
	@ResponseBody
185
	@ResponseBody
186
	@RequestMapping("/queryAssociatInfo")
186
	@RequestMapping("/queryAssociatInfo")
187
	public Map<String, Object> queryAssociatInfo(@RequestBody Map<String, Object> params) throws Exception {
188
		List<? extends Object> userList =  deviceManageService.queryAssociatInfo(params);
189
		Map<String, Object> result = new HashMap<String, Object>();
190
		result.put("result", userList);
191
		return result;
187
	public CommonResponse<List<? extends Object>> queryAssociatInfo(@RequestBody Map<String, Object> params) throws Exception {
188
		List<? extends Object> resultList =  deviceManageService.queryAssociatInfo(params);
189
		return CommonResponse.ok(resultList);
192
	}
190
	}
193
	
191
	
194
	/**
192
	/**