44323
2024-05-21 25743ef4cfb9da0be8d3e488c93f5429ffd02f8a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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;
 
/**
 * <p>
 * 启动页 注意事项 前端控制器
 * </p>
 *
 * @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<TPage> home(@RequestParam Integer type) {
        return R.ok(pageService.lambdaQuery().eq(TPage::getType, type)
                .eq(TPage::getDisabled, 0).one());
    }
 
}