<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ### 12.4.1 Function plus系統的核心是Function表,代表了系統應該提供的所有功能,Function表示是一個樹結構,這符合業務系統的功能劃分 | ID | CODE | NAME | CREATE_TIME | ACCESS_URL | PARENT_ID | TYPE | | ---- | ---------- | ---- | ----------- | -------------------- | --------- | ---- | | 1 | user |  | NULL | /admin/user/index.do | 0 | FN0 | | 2 | user.query |  | NULL | NULL | 1 | FN1 | | 3 | user.edit |  | NULL | NULL | 1 | FN0 | code 字段是一個英文字符,跟Contorller的方法搭配,用在@Function注解里,表示當前方法的屬于哪個功能 ~~~java @GetMapping(MODEL + "/index.do") @Function("user") public ModelAndView index() { ModelAndView view = new ModelAndView("/admin/user/index.html"); view.addObject("search", UserQuery.class.getName()); return view; } @GetMapping(MODEL + "/edit.do") @Function("user.edit") public ModelAndView edit(String id) { ModelAndView view = new ModelAndView("/admin/user/edit.html"); CoreUser user = userConsoleService.queryById(id); view.addObject("user", user); return view; } ~~~ PLUS系統并未像其他系統,通過注解來申明角色,因為系統角色可以無限擴展,這種角色申明只適合小系統 ~~~java //其他權限系統設計方式 @GetMapping(MODEL + "/edit.do") @Allowed("amdin","manager") public ModelAndView edit(String id) { } ~~~ 比如有些系統設計了@Allowed,參數是角色,來控制權限。這種擴展就有很大的局限性 Function 表的 ACCESS_URL 是一個抽象地址,用來表示此功能是否有入口地址。注意,他并不是菜單的訪問地址,后面的Menu 會關聯到Function從而獲得Function的訪問地址。 PARENT_ID 表示上一級功能,這有助于樹型管理。再次說明,Function只是你開發的目標系統的功能描述。并沒有涉及到權限,他相當于RBAC模型里的資源 Function中的type指名了功能是查詢功能,還是修改功能,如果是查詢功能,可以在后面數據權限里分配一個數據權限。FN0 表示查詢功能,FN1表示修改功能
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看