package com.ruoyi.management.controller; 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; /** *

* 启动页 注意事项 前端控制器 *

* * @author 无关风月 * @since 2024-04-26 */ @Controller @RequestMapping("/tPage") public class TPageController { @Resource private ITPageService pageService; /** * 启动页 * * @param type 类型 1学习 2家长手机 3家长平板 4注意事项 */ @GetMapping("/home") @ApiOperation(value = "启动页", tags = {"启动页"}) public R home(@RequestParam Integer type) { return R.ok(pageService.lambdaQuery().eq(TPage::getType, type) .eq(TPage::getDisabled, 0).one()); } }