wuxw7
2018-06-16 7afa32638bd4c1eec05a19a6586af3f4b1ce8ccb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.java110.feign.code;
 
import com.java110.common.constant.ResponseConstant;
import com.java110.common.util.ProtocolUtil;
import org.springframework.web.bind.annotation.RequestParam;
 
/**
 * 调用用户服务失败时,返回
 * Created by wuxw on 2017/4/5.
 */
public class CodeApiFallback implements ICodeApi{
 
 
    /**
     * 生成编码
     * @param prefix 前缀
     * @return
     */
    @Override
    public String generateCode(String prefix) {
        return ResponseConstant.RESULT_CODE_ERROR;
    }
}