New file |
| | |
| | | package com.dsh.guns.modular.system.controller.code; |
| | | |
| | | import com.dsh.guns.core.base.controller.BaseController; |
| | | import com.dsh.guns.modular.system.client.competition.CompetitionClient; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.ui.Model; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | /** |
| | | * 菜单控制器 |
| | | * |
| | | * @author fengshuonan |
| | | * @Date 2017年2月12日21:59:14 |
| | | */ |
| | | @Controller |
| | | @RequestMapping("/tCompetition") |
| | | public class TCompetitionController extends BaseController { |
| | | |
| | | private static String PREFIX = "/system/tCompetition/"; |
| | | |
| | | @Autowired |
| | | private CompetitionClient competitionClient; |
| | | |
| | | |
| | | /** |
| | | * 跳转到菜单列表列表页面 |
| | | */ |
| | | @RequestMapping("") |
| | | public String index(Model model) { |
| | | return PREFIX + "tCompetition.html"; |
| | | } |
| | | |
| | | /** |
| | | * 跳转到菜单列表列表页面 |
| | | */ |
| | | @RequestMapping(value = "/tCompetition_add") |
| | | public String tCompetitionAdd(Model model) { |
| | | return PREFIX + "tCompetition_add.html"; |
| | | } |
| | | |
| | | /** |
| | | * 跳转到菜单详情列表页面 |
| | | */ |
| | | @RequestMapping(value = "/tCompetition_edit/{id}") |
| | | public String menuEdit(@PathVariable Integer id, Model model) { |
| | | return PREFIX + "menu_edit.html"; |
| | | } |
| | | |
| | | |
| | | |
| | | } |