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);
|
}
|
|
|
|
|
|
|
}
|