|
|
@@ -26,6 +26,7 @@ import me.chanjar.weixin.common.error.WxErrorException;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.springframework.cache.annotation.Cacheable;
|
|
|
import org.springframework.data.domain.Page;
|
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
@@ -431,6 +432,7 @@ public class UserController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@GetMapping("/topTen")
|
|
|
+ @Cacheable(value = "userTopTen")
|
|
|
public List<User> topTen() {
|
|
|
|
|
|
LocalDateTime time = LocalDateTime.now().plusDays(-7);
|