Sfoglia il codice sorgente

统一设备管理返回格式

konghl 4 anni fa
parent
commit
9ec6ffcd72

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

@ -184,11 +184,9 @@ public class DeviceManageController {
184 184
	 */
185 185
	@ResponseBody
186 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
	/**