| | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | { |
| | | return toAjax(ardWallService.deleteArdWallByIds(ids)); |
| | | } |
| | | |
| | | @ApiOperation("根据用户主键查询关联的电子围栏列表") |
| | | @GetMapping("/getArdWallListByUserId") |
| | | public AjaxResult getArdWallListByUserId() { |
| | | String userId = SecurityUtils.getUserId(); |
| | | try{ |
| | | List<ArdWall> result = ardWallService.getArdWallListByUserId(userId); |
| | | return AjaxResult.success(result); |
| | | }catch(Exception e){ |
| | | e.printStackTrace(); |
| | | return AjaxResult.error(); |
| | | } |
| | | } |
| | | } |