1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- package org.dromara.web.controller;
- import cn.dev33.satoken.annotation.SaCheckPermission;
- import cn.dev33.satoken.annotation.SaIgnore;
- import lombok.RequiredArgsConstructor;
- import org.dromara.common.core.domain.R;
- import org.dromara.common.core.utils.SpringUtils;
- import org.dromara.common.core.utils.StringUtils;
- import org.dromara.web.domain.bo.HospitalRecordBo;
- import org.dromara.web.domain.vo.HospitalRecordVo;
- import org.dromara.web.service.IIndexService;
- import org.springframework.web.bind.annotation.GetMapping;
- import org.springframework.web.bind.annotation.RestController;
- /**
- * 首页
- *
- * @author Lion Li
- */
- @SaIgnore
- @RequiredArgsConstructor
- @RestController
- public class IndexController {
- private final IIndexService indexService;
- /**
- * 访问首页,提示语
- */
- @GetMapping("/")
- public String index() {
- return StringUtils.format("欢迎使用{}后台管理框架,请通过前端地址访问。", SpringUtils.getApplicationName());
- }
- /**
- * 查询首页数据
- */
- @GetMapping("/index/queryData")
- public R queryData() {
- return R.ok(indexService.queryData());
- }
- }
|