package com.github.ckwen.je.spring.boot.template.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.github.ckwen.je.spring.boot.template.service.AuthorityService;

@Controller
@RequestMapping("sys/authority")
public class SysAuthorityController {

    @Autowired
    private AuthorityService authorityService;

    @RequestMapping("list")
    public String list(Model model) {
        model.addAttribute("rs", authorityService.findAll());
        return "sys_authority_list";
    }
}
