| 
				
				
				
				 | 
			
			 | 
			@@ -0,0 +1,59 @@ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			package com.iformall.controller; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import com.iformall.annotation.AuthIgnore; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import com.iformall.annotation.RedisCache; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import com.iformall.common.ErrorCode; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import com.iformall.common.Result; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import com.iformall.common.ResultData; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import com.iformall.domain.po.WxAppinfo; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import com.iformall.domain.po.WxLevelConfig; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import com.iformall.domain.po.WxMall; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import com.iformall.domain.po.WxScoreRules; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import com.iformall.domain.po.base.TenantEntity; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import com.iformall.enums.EnumGroupSupport; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import com.iformall.enums.EnumYesOrNo; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import com.iformall.service.*; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import io.swagger.annotations.Api; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import io.swagger.annotations.ApiImplicitParam; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import io.swagger.annotations.ApiOperation; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import org.apache.commons.lang3.StringUtils; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import org.slf4j.Logger; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import org.slf4j.LoggerFactory; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import org.springframework.beans.factory.annotation.Autowired; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import org.springframework.beans.factory.annotation.Value; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import org.springframework.web.bind.annotation.*; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			import java.util.*; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			@RestController | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			@RequestMapping("/api/home") | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			@Api(description = "商场信息相关接口") | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			public class HomeController extends BaseController { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    private final Logger logger = LoggerFactory.getLogger(this.getClass()); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    @Value("${version}") | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    private String version; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    @Autowired | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    private RedisService redisService; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    @AuthIgnore | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    @ApiOperation("获取后端版本号") | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    @GetMapping("/version") | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    public ResultData version() { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        return new ResultData(version); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    } | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    @ApiOperation("获取热点缓存接口对应redis key") | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    @GetMapping("/hotApis") | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    public ResultData hotApis() { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        return new ResultData(redisService.hotApi()); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    } | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    @ApiOperation("删除指定key") | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    @PostMapping("/delRedisKey") | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    public ResultData delRedisKey(@RequestBody Collection<Object> keys) { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        return new ResultData(redisService.delRedisKey(keys)); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    } | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			} |