DodoButtonRight:自定义按钮注解

    1. //列表页面底部按钮,ajax请求
    2. @DodoButtonRight(name = "底部AJAX", path = "/bottom/ajax",
    3. model = DodoButtonRightModel.MODEL, location = DodoButtonLocation.BOTTOM, event = DodoButtonRightEvent.AJAX)
    4. //列表页面顶部按钮,ajax请求
    5. @DodoButtonRight(name = "顶部AJAX", path = "/top/ajax",
    6. model = DodoButtonRightModel.MODEL, location = DodoButtonLocation.TOP, event = DodoButtonRightEvent.AJAX)
    7. //列表页面底部按钮,点击跳转到站外,新窗口打开
    8. model = DodoButtonRightModel.MODEL, location = DodoButtonLocation.BOTTOM, event = DodoButtonRightEvent.URL, urlTarget = "_blank")
    9. //列表页面顶部按钮,点击跳转到站外,新窗口打开
    10. @DodoButtonRight(name = "顶部URL", path = "https://www.0yi0.com",
    11. model = DodoButtonRightModel.MODEL, location = DodoButtonLocation.TOP, event = DodoButtonRightEvent.URL, urlTarget = "_blank")
    12. //数据行按钮,ajax请求
    13. @DodoButtonRight(name = "行AJAX", path = "/row/ajax",
    14. model = DodoButtonRightModel.ROW, event = DodoButtonRightEvent.AJAX)
    15. //数据行按钮,点击新窗口打开一个后台的URL
    16. //数据行按钮,点击新窗口打开一个前台的URL
    17. @DodoButtonRight(name = "前台URL", path = "${webHomeUrl}/test.html",
    18. model = DodoButtonRightModel.ROW, event = DodoButtonRightEvent.URL, urlTarget = "_blank")
    19. //数据行按钮,点击新窗口打开一个站外的URL
    20. @DodoButtonRight(name = "站外URL", path = "https://www.0yi0.com",
    21. model = DodoButtonRightModel.ROW, event = DodoButtonRightEvent.URL, urlTarget = "_blank")
    22. public class ButtonRightDemo extends BaseEntity {
    23. }