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
22
23
24
25
26
27
package com.java110.feign.code;
 
import com.java110.common.constant.ResponseConstant;
import com.java110.common.util.ProtocolUtil;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
 
/**
 * 调用用户服务失败时,返回
 * Created by wuxw on 2017/4/5.
 */
@Component
public class CodeApiFallback implements ICodeApi{
 
 
    /**
     * 生成编码
     * @param prefix 前缀
     * @return
     */
    @Override
    @RequestMapping("/codeApi/generateCode")
    public String generateCode(@RequestParam("prefix") String prefix) {
        return ResponseConstant.RESULT_CODE_ERROR;
    }
}