|
@@ -4,14 +4,19 @@ import com.diagbot.annotation.SysLogger;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
import com.diagbot.facade.CacheFacade;
|
|
|
import com.diagbot.facade.ConceptInfoFacade;
|
|
|
+import com.diagbot.util.RedisUtil;
|
|
|
+import com.diagbot.vo.DecodeRedisVO;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import javax.validation.Valid;
|
|
|
+
|
|
|
/**
|
|
|
* <p>
|
|
|
* 缓存 前端控制器
|
|
@@ -31,6 +36,8 @@ public class CacheController {
|
|
|
CacheFacade cacheFacade;
|
|
|
@Autowired
|
|
|
private ConceptInfoFacade conceptInfoFacade;
|
|
|
+ @Autowired
|
|
|
+ RedisUtil redisUtil;
|
|
|
|
|
|
@ApiOperation(value = "清除启动加载类缓存[by:zhoutg]",
|
|
|
notes = "")
|
|
@@ -53,6 +60,16 @@ public class CacheController {
|
|
|
return RespDTO.onSuc(true);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "redis缓存反解[by:zhoutg]",
|
|
|
+ notes = "key:缓存key<br>" +
|
|
|
+ "field:指定属性")
|
|
|
+ @PostMapping("/decodeRedis")
|
|
|
+ @SysLogger("decodeRedis")
|
|
|
+ public RespDTO<Object> decodeRedis(@RequestBody @Valid DecodeRedisVO decodeRedisVO) {
|
|
|
+ Object data = cacheFacade.decodeRedis(decodeRedisVO);
|
|
|
+ return RespDTO.onSuc(data);
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "重新加载基础诊断依据[by:zhoutg]",
|
|
|
notes = "")
|
|
|
@PostMapping("/reloadDiagnose")
|