package com.YuyeTech.TPlat.sys.sysauthority.controller;

import com.YuyeTech.TPlat.common.controller.CommonController;
import com.YuyeTech.TPlat.sys.sysauthority.pojo.SysAuthority;
import com.YuyeTech.TPlat.sys.sysauthority.service.SysAuthorityService;
import com.YuyeTech.TPlat.sys.sysauthority.vo.SysAuthorityVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
@RequestMapping("/sys/sysAuthority/")
public class SysAuthorityController extends CommonController<SysAuthorityVo, SysAuthority, String> {
    @Autowired
    private SysAuthorityService sysAuthorityService;

    @GetMapping("authority")
    public ModelAndView authority(){
        return new ModelAndView("sys/authority/authority");
    }

}
