package com.leanwo.activiti.service.base.impl;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 文件服务器.
 * @author HaoYanbing
 * @Date 2017年12月27日下午4:46:19
 */

@Service
@FeignClient(value = "file-server", fallback = FileServerImpl.class, configuration = { KeepErrMsgConfiguration.class })
public interface FileServer {
	/**
	 * 获取数据字典的目录
	 * @return
	 */
	@RequestMapping(value = "/api/FileHomeResource/dictionaryHome", method = RequestMethod.GET, produces = "text/plain")
	String dictionaryHome();
	

	/**
	 * 获取文件的目录
	 * @return
	 */
	@RequestMapping(value = "/api/FileHomeResource/clientFileHome", method = RequestMethod.GET, produces = "text/plain")
	String clientFileHome();
}
