package com.td.WaDa.sys.syssetting.controller;

import com.td.WaDa.common.controller.CommonController;
import com.td.WaDa.sys.syssetting.pojo.SysSetting;
import com.td.WaDa.sys.syssetting.service.SysSettingService;
import com.td.WaDa.sys.syssetting.vo.SysSettingVo;
import com.td.WaDa.util.RedisSettingMap;
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/sysSetting/")
public class SysSettingController extends CommonController<SysSettingVo, SysSetting, String> {
    @Autowired
    private SysSettingService sysSettingService;

    @Autowired
    private RedisSettingMap redisSettingMap;

    @GetMapping("setting")
    public ModelAndView setting() {
        return new ModelAndView("sys/setting/setting", "sys", redisSettingMap.getSysSettingMap());
    }
}
