package ink.wgink.service.group.controller.route;

import ink.wgink.interfaces.consts.ISystemConstant;
import io.swagger.annotations.Api;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * When you feel like quitting. Think about why you started
 * 当你想要放弃的时候，想想当初你为何开始
 *
 * @ClassName: GroupRouteController
 * @Description: 用户组路由
 * @Author: wanggeng
 * @Date: 2021/2/15 9:07 上午
 * @Version: 1.0
 */
@Api(tags = ISystemConstant.ROUTE_TAGS_PREFIX + "用户组路由接口")
@Controller
@RequestMapping(ISystemConstant.ROUTE_PREFIX + "/group")
public class GroupRouteController {

    @GetMapping("save")
    public ModelAndView save() {
        return new ModelAndView("group/save");
    }

    @GetMapping("update")
    public ModelAndView update() {
        return new ModelAndView("group/update");
    }

    @GetMapping("list")
    public ModelAndView list() {
        return new ModelAndView("group/list");
    }

    @GetMapping("list-tree")
    public ModelAndView listTree() {
        return new ModelAndView("group/list-tree");
    }
}
