| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- 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<String, Object> map = iIndexService.console();
- return AjaxResult.success(map);
- }
- @ApiOperation(value = "工作台")
- @GetMapping("/workbench")
- public Object workbench() {
- Map<String, Object> map = iIndexService.workbench();
- return AjaxResult.success(map);
- }
- /**
- * 公共配置
- *
- * @author fzr
- * @return Object
- */
- @GetMapping("/config")
- public Object config() {
- Map<String, Object> map = iIndexService.config();
- return AjaxResult.success(map);
- }
- }
|