wuxw7
2018-06-17 288d590fbca6f7d884b7398d4c0e1921b04e128d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.java110.feign.code;
 
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
 
/**
 * Created by wuxw on 2018/6/15.
 */
@FeignClient(name = "code-service", fallback = CodeApiFallback.class)
public interface ICodeApi {
 
    /**
     * 生成 编码
     * @param prefix 前缀
     * @return
     */
    @RequestMapping(value = "/codeApi/generateCode",method = RequestMethod.POST)
    public String generateCode(@RequestParam("prefix") String prefix);
}