Search in sources :

Example 1 with EcRedisAnnotation

use of com.easy.cloud.core.cache.redis.annotation.EcRedisAnnotation in project dq-easy-cloud by dq-open-cloud.

the class TestRedisService method updateEcLogDTO.

@EcRedisAnnotation(actionType = EcRedisActionType.UPDATE, proxyClass = EcRedisDemoProxy.class)
public EcLogDTO updateEcLogDTO(String id) {
    EcLogDTO logDTO = new EcLogDTO();
    logDTO.setRequestPath("更新的path");
    EcLogUtils.info("更新数据洛", logDTO, logger);
    return logDTO;
}
Also used : EcLogDTO(com.easy.cloud.core.common.log.pojo.dto.EcLogDTO) EcRedisAnnotation(com.easy.cloud.core.cache.redis.annotation.EcRedisAnnotation)

Example 2 with EcRedisAnnotation

use of com.easy.cloud.core.cache.redis.annotation.EcRedisAnnotation in project dq-easy-cloud by dq-open-cloud.

the class TestRedisService method saveEcLogDTO.

@EcRedisAnnotation(actionType = EcRedisActionType.SAVE, proxyClass = EcRedisDemoProxy.class)
public EcLogDTO saveEcLogDTO(String id) {
    EcLogDTO logDTO = new EcLogDTO();
    logDTO.setRequestPath("测试的path");
    EcLogUtils.info("保存数据洛", logDTO, logger);
    return logDTO;
}
Also used : EcLogDTO(com.easy.cloud.core.common.log.pojo.dto.EcLogDTO) EcRedisAnnotation(com.easy.cloud.core.cache.redis.annotation.EcRedisAnnotation)

Aggregations

EcRedisAnnotation (com.easy.cloud.core.cache.redis.annotation.EcRedisAnnotation)2 EcLogDTO (com.easy.cloud.core.common.log.pojo.dto.EcLogDTO)2