feiyu02
2025-09-30 94fee0b511279679b43e210878d3d36e5a14384b
src/main/kotlin/com/flightfeather/uav/lightshare/web/SceneController.kt
@@ -1,5 +1,6 @@
package com.flightfeather.uav.lightshare.web
import com.flightfeather.uav.domain.entity.GridCell
import com.flightfeather.uav.lightshare.bean.AreaVo
import com.flightfeather.uav.lightshare.service.SceneService
import io.swagger.annotations.Api
@@ -24,4 +25,10 @@
        @RequestParam("lat") lat: Double,
        @RequestParam("radius") radius: Double,
    ) = resPack { sceneService.searchByCoordinate(lng, lat, radius) }
    @ApiOperation(value = "根据卫星网格找到范围内的场景")
    @PostMapping("/find/grid")
    fun searchByGrid(
        @RequestBody gridCell: GridCell,
    ) = resPack { sceneService.searchByGrid(gridCell) }
}