| | |
| | | import com.xiaopeng.api.dto.operation.ElectronicFenceUpdateDto; |
| | | import com.xiaopeng.api.feignClient.operation.XpElectronicClient; |
| | | import com.xiaopeng.api.model.operation.XpElectronicFence; |
| | | import com.xiaopeng.api.model.operation.XpElectronicFenceArea; |
| | | import com.xiaopeng.api.query.operation.ElectronicPageListQuery; |
| | | import com.xiaopeng.api.vo.operation.ElectronicFenceDetailVo; |
| | | import com.xiaopeng.common.core.domain.R; |
| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.cloud.openfeign.FallbackFactory; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | |
| | | return R.fail("获取电子围栏列表失败"); |
| | | } |
| | | |
| | | @PostMapping("/api/v1/electronicFence/add") |
| | | @Override |
| | | public R add(ElectronicFenceAddDto dto) { |
| | | log.error("添加电子围栏失败:{}", cause.getMessage()); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public R copy(Integer id) { |
| | | public R<Long> copy(@RequestBody Integer id) { |
| | | log.error("复制电子围栏失败:{}", cause.getMessage()); |
| | | return R.fail("复制电子围栏失败"); |
| | | } |
| | |
| | | log.error("根据ID列表批量查询电子围栏失败:{}", cause.getMessage()); |
| | | return R.fail("根据ID列表批量查询电子围栏失败"); |
| | | } |
| | | |
| | | @Override |
| | | public R<XpElectronicFenceArea> queryElectronicFenceAreaById(Long id) { |
| | | log.error("通过区域ID查询围栏失败:{}", cause.getMessage()); |
| | | return R.fail("通过区域ID查询围栏失败"); |
| | | } |
| | | }; |
| | | } |
| | | } |