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:
Chaos
2025-11-28 14:06:12 +08:00
parent af8959220a
commit f0d6279949
2 changed files with 8 additions and 5 deletions

View File

@@ -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());