puzhibing
2024-02-29 31ad605e95d3f9a043250c93e028d54e476c8e45
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.dsh.other.controller;
 
 
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dsh.other.entity.HomeModule;
import com.dsh.other.service.IHomeModuleService;
import com.dsh.other.util.ResultUtil;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
 
@RestController
@RequestMapping("")
public class HomeModuleController {
 
    @Autowired
    private IHomeModuleService homeModuleService;
 
 
 
 
    @ResponseBody
    @PostMapping("/base/homeModule/getHomeModule")
    @ApiOperation(value = "获取平台配置模块详情【2.0】", tags = {"APP-加入玩湃"})
    @ApiImplicitParams({
    })
    public ResultUtil<HomeModule> getHomeModule(){
        HomeModule homeModule = homeModuleService.getOne(new QueryWrapper<HomeModule>().eq("isOpen", 1));
        homeModule.setName(homeModule.getModel());
        return ResultUtil.success(homeModule);
    }
 
 
 
 
 
 
}