feat(device): add device type options endpoint
- Added new GET /options endpoint to retrieve device type options - Implemented getDeviceTypeOptions method in DeviceTypeController - Updated DeviceTypeServiceImpl to map device types to OptionResponse - Removed unused LambdaQueryWrapper and todo comment - Added Java documentation for the new endpoint
This commit is contained in:
@@ -34,6 +34,10 @@ public class DeviceTypeController {
|
||||
return ApiResult.success(deviceTypeService.getAllDeviceTypes());
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取所有设备类型选项
|
||||
* @return 所有设备类型选项
|
||||
*/
|
||||
@GetMapping("/options")
|
||||
public ApiResult<List<OptionResponse>> getDeviceTypeOptions() {
|
||||
return ApiResult.success(deviceTypeService.getDeviceTypeOptions());
|
||||
|
||||
Reference in New Issue
Block a user