Class SysElementController

java.lang.Object
cn.herodotus.engine.web.api.servlet.AbstractReadableController<E,ID,S>
cn.herodotus.engine.web.api.servlet.AbstractWriteableController<E,ID,cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<E,ID>>
cn.herodotus.engine.web.api.servlet.AbstractJpaWriteableController<SysElement,String>
cn.herodotus.engine.rest.servlet.upms.controller.security.SysElementController
All Implemented Interfaces:
cn.herodotus.engine.core.definition.domain.BaseDomain, cn.herodotus.engine.core.definition.domain.Pagination, BindingController<SysElement,String,cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<SysElement,String>>, PageController<SysElement,String,cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<SysElement,String>>, PaginationController, cn.herodotus.engine.web.core.definition.Controller, Serializable

@RestController @RequestMapping("/security/element") public class SysElementController extends AbstractJpaWriteableController<SysElement,String>

Description: SysMenuController

Author:
: gengwei.zheng
See Also:
Date:
: 2022/7/14 16:05
  • Constructor Details

    • SysElementController

      public SysElementController(SysElementService sysElementService)
  • Method Details

    • getService

      public cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<SysElement,String> getService()
    • findTree

      @GetMapping("/tree") public cn.herodotus.engine.core.definition.domain.Result<List<cn.hutool.v7.core.tree.MapTree<String>>> findTree()
    • findByCondition

      @GetMapping("/condition") public cn.herodotus.engine.core.definition.domain.Result<Map<String,Object>> findByCondition(@NotNull @RequestParam("pageNumber") @NotNull Integer pageNumber, @NotNull @RequestParam("pageSize") @NotNull Integer pageSize, @RequestParam(value="path",required=false) String path, @RequestParam(value="title",required=false) String title)
    • assign

      @PutMapping public cn.herodotus.engine.core.definition.domain.Result<SysElement> assign(@RequestParam(name="elementId") String elementId, @RequestParam(name="roles[]") String[] roles)
    • findAll

      @AccessLimited @GetMapping("/list") public cn.herodotus.engine.core.definition.domain.Result<List<SysElement>> findAll()
    • findById

      @AccessLimited @GetMapping("/{id}") public cn.herodotus.engine.core.definition.domain.Result<SysElement> findById(@PathVariable String id)