package com.mdd.admin.controller.common; import com.mdd.admin.service.common.IIndexService; import com.mdd.common.core.AjaxResult; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; import java.util.Map; /** * 主页管理 */ @Api(tags = "工作台") @Slf4j @RestController @RequestMapping("api/common/index") public class IndexController { @Resource IIndexService iIndexService; /** * 控制台 * * @author fzr * @return Object */ @GetMapping("/console") public Object console() { Map map = iIndexService.console(); return AjaxResult.success(map); } @ApiOperation(value = "工作台") @GetMapping("/workbench") public Object workbench() { Map map = iIndexService.workbench(); return AjaxResult.success(map); } /** * 公共配置 * * @author fzr * @return Object */ @GetMapping("/config") public Object config() { Map map = iIndexService.config(); return AjaxResult.success(map); } }