Browse Source

后台图片

master
cgx 2 weeks ago
parent
commit
62dd6df31b
2 changed files with 22 additions and 1 deletions
  1. +3
    -0
      jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java
  2. +19
    -1
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/userCode/controller/IndexController.java

+ 3
- 0
jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java View File

@ -79,6 +79,9 @@ public class ShiroConfig {
filterChainDefinitionMap.put("/index/getIndustryById", "anon");
filterChainDefinitionMap.put("/index/rolelist1", "anon");
filterChainDefinitionMap.put("/index/taskList", "anon");
filterChainDefinitionMap.put("/index/picList", "anon");
filterChainDefinitionMap.put("/user/login", "anon");
filterChainDefinitionMap.put("/user/bindPhone", "anon");


+ 19
- 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/userCode/controller/IndexController.java View File

@ -7,6 +7,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.RedisUtil;
import org.jeecg.config.shiro.ShiroRealm;
import org.jeecg.modules.banner.entity.WebBanner;
@ -14,6 +15,8 @@ import org.jeecg.modules.hanHaiMember.entity.HanHaiMember;
import org.jeecg.modules.industry.entity.TbIndustry;
import org.jeecg.modules.industry.service.ITbIndustryService;
import org.jeecg.modules.postBean.SuggestReq;
import org.jeecg.modules.tbConf.entity.TbConf;
import org.jeecg.modules.tbConf.service.ITbConfService;
import org.jeecg.modules.tbSuggest.entity.TbSuggest;
import org.jeecg.modules.tbSuggest.service.ITbSuggestService;
import org.jeecg.modules.tbTask.service.ITbTaskService;
@ -28,6 +31,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
@ -55,7 +59,7 @@ public class IndexController {
@Resource
private ITbUserRoleService tbUserRoleService;
@Resource
private ITbTaskService tbTaskService;
private ITbConfService tbConfService;
@Resource
private TaskMapper TaskMapper;
@ -80,6 +84,20 @@ public class IndexController {
@ApiOperation(value="平台图片配置", notes="平台图片配置")
@GetMapping(value = "/picList")
public Result<List<TbConf>> queryPagePicList() {
QueryWrapper<TbConf> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("dict_group","sys_pic");
List<TbConf> list = tbConfService.list(queryWrapper);
return Result.OK(list);
}
@ApiOperation(value = "获取banner列表")
@RequestMapping(value = "/bannerList", method = RequestMethod.POST)
public Result<Map<Integer, List<WebBanner>>> bannerList() {


Loading…
Cancel
Save