Skip to content

Files

Latest commit

8cb3eee · Dec 2, 2017

History

History
29 lines (28 loc) · 1.07 KB

2017-12-02.md

File metadata and controls

29 lines (28 loc) · 1.07 KB

修改说明

  • 1、本次修改添加了配置中心的使用,配置中心的仓库地址如下
https://github.com/liangliang1259/thoth-config-repository
  • 2、在thoth-ai-ms服务中添加图灵机器人的调用 详情,

请参考代码

@GetMapping("/integerlocution")
public RestResult getAnswer(@RequestParam("question")String question){
    logger.info("-------------【api.integerlocution】------------${question}:{}",question);
    Interlocution result = interlocutionService.getInterlocation(question);
    return RestResultBuilder.builder().success(result).build();
}
  • 3、添加服务内部rpc调用,使用feign方式
    同2处代码,请参考
/**
 * 测试内部通过feign调用服务
 */
@GetMapping("/robots")
public RestResult listRobots(){
    List<Robot> robots = interlocutionService.listRobots();
    return RestResultBuilder.builder().success(robots).build();
}