| | |
| | | package com.ruoyi.management.controller; |
| | | |
| | | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.management.domain.TPage; |
| | | import com.ruoyi.management.service.ITPageService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @RequestMapping("/tPage") |
| | | public class TPageController { |
| | | |
| | | @Resource |
| | | private ITPageService pageService; |
| | | |
| | | /** |
| | | * 启动页 |
| | | * |
| | | * @param type 类型 1学习 2家长手机 3家长平板 4注意事项 |
| | | */ |
| | | @GetMapping("/home") |
| | | @ApiOperation(value = "启动页", tags = {"启动页"}) |
| | | public R<TPage> home(@RequestParam Integer type) { |
| | | return R.ok(pageService.lambdaQuery().eq(TPage::getType, type) |
| | | .eq(TPage::getDisabled, 0).one()); |
| | | } |
| | | |
| | | } |
| | | |