//package com.zjty.tynotes.union.controller;
//
//import com.zjty.tynotes.misc.config.AutoDocument;
//import com.zjty.tynotes.union.service.RedisToEsService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.http.ResponseEntity;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
///**
// * @author zjm
// */
//@AutoDocument
//@Api(tags = "redis同步es接口",protocols = "http")
//@RestController
//@RequestMapping("/redis")
//public class RedisToEs {
//    @Autowired
//    RedisToEsService redisToEsService;
//
//    @GetMapping("/es")
//    @ApiOperation(value = "同步数据")
//    public ResponseEntity redisToEs(){
//        redisToEsService.saveEsToRedis();
//        return  ResponseEntity.ok("保存es成功");
//    }
//
//}
