Class UrlController

java.lang.Object
cn.sparrow.common.controller.UrlController
@RestController public class UrlControllerextends Object
  • Constructor Details

    • UrlController

      public  UrlController()
  • Method Details

    • getUrls

      @GetMapping("/sparrowUrls") public  org.springframework.data.domain.Page<SparrowUrl>  getUrls(@Nullable org.springframework.data.domain.Pageable pageable)
    • add

      @PostMapping("/sparrowUrls/batch") public  List<SparrowUrl>  add(@NotNull @RequestBody List<SparrowUrl> urls)
    • update

      @PatchMapping("/sparrowUrls/batch") public  List<SparrowUrl>  update(@NotNull @RequestBody List<SparrowUrl> urls)
    • delete

      @DeleteMapping("/sparrowUrls/batch") public  void  delete(@NotNull @RequestBody String[] ids)
    • getPermission

      @GetMapping("/sparrowUrls/permissions") public  org.springframework.data.domain.Page<?>  getPermission(@Nullable @RequestParam("urlId") String urlId, org.springframework.data.domain.Pageable pageable)
    • addPermission

      @PostMapping("/sparrowUrls/permissions") public  void  addPermission(@NotNull @RequestBody List<SysroleUrlPermissionPK> sysroleUrlPermissionPKs)
    • delPermission

      @DeleteMapping("/sparrowUrls/permissions") public  void  delPermission(@NotNull @RequestBody List<SysroleUrlPermissionPK> sysroleUrlPermissionPKs)