|
@@ -1,21 +1,15 @@
|
|
package cn.rankin.userservice.controller;
|
|
package cn.rankin.userservice.controller;
|
|
|
|
|
|
import cn.rankin.common.utils.api.model.APIResult;
|
|
import cn.rankin.common.utils.api.model.APIResult;
|
|
-import cn.rankin.common.utils.api.page.Page;
|
|
|
|
-import cn.rankin.common.utils.enums.BaseOrderEnum;
|
|
|
|
-import cn.rankin.data.api.user.dto.CampusSearchDTO;
|
|
|
|
import cn.rankin.data.api.user.dto.UserDeviceDTO;
|
|
import cn.rankin.data.api.user.dto.UserDeviceDTO;
|
|
-import cn.rankin.data.api.user.dto.UserDeviceSearchDTO;
|
|
|
|
-import cn.rankin.data.api.user.entity.Campus;
|
|
|
|
import cn.rankin.data.api.user.entity.UserDevice;
|
|
import cn.rankin.data.api.user.entity.UserDevice;
|
|
|
|
+import cn.rankin.data.api.user.vo.DeviceModelVo;
|
|
import cn.rankin.userservice.helper.RaStringHelper;
|
|
import cn.rankin.userservice.helper.RaStringHelper;
|
|
import cn.rankin.userservice.service.UserDeviceService;
|
|
import cn.rankin.userservice.service.UserDeviceService;
|
|
-import org.apache.commons.lang.StringUtils;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
import javax.validation.Valid;
|
|
-import java.util.LinkedHashMap;
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
@@ -59,8 +53,8 @@ public class UserDeviceController
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/model/list", method = RequestMethod.GET)
|
|
@RequestMapping(value = "/model/list", method = RequestMethod.GET)
|
|
- public APIResult<UserDevice> searchDeviceModel(@RequestParam("deviceModel") String deviceModel) {
|
|
|
|
- APIResult<UserDevice> apiResult = userDeviceService.searchDeviceModel(deviceModel);
|
|
|
|
|
|
+ public APIResult<List<DeviceModelVo>> searchDeviceModel(@RequestParam("deviceModel") String deviceModel) {
|
|
|
|
+ APIResult<List<DeviceModelVo>> apiResult = userDeviceService.searchDeviceModel(deviceModel);
|
|
return apiResult;
|
|
return apiResult;
|
|
}
|
|
}
|
|
|
|
|