package com.blueland.render.rest;


/**
 * @author 代码自动生成工具
 * @version 1.0
 * @since  
 */
 

import com.blueland.result.R;
import com.blueland.service.IDictService;
import com.blueland.service.SysRedisService;
import io.swagger.annotations.Api;

import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;


@Api(value = "")
@RestController
@RequestMapping(value = "")
public class UpdatedataRest {
	@Autowired
	private SysRedisService sysRedisService;
	
	/**
	 * 更新字典缓存
	 * @return
	 */
	@ApiOperation(value="WEB工程操作更新字典缓存", notes="WEB工程操作更新字典缓存")
	@RequestMapping(value = "/cache/updatedict",method = RequestMethod.POST,produces = "application/json;charset=UTF-8")
	@ResponseBody
	public R<Boolean> updateDictMapCache(){
		sysRedisService.initDict();
		return R.ok();
	}
	
	
}



