diff --git a/src/main/java/com/beauty/aide/adaptor/TongYiAdaptor.java b/src/main/java/com/beauty/aide/adaptor/TongYiAdaptor.java index dacfe4b..16badeb 100644 --- a/src/main/java/com/beauty/aide/adaptor/TongYiAdaptor.java +++ b/src/main/java/com/beauty/aide/adaptor/TongYiAdaptor.java @@ -15,13 +15,13 @@ @Component public class TongYiAdaptor implements InitializingBean { - @Value("aliyun.cloud.accesskey") + @Value("${aliyun.cloud.adminAk}") private String adminAk; - @Value("aliyun.cloud.accesskey.secret") + @Value("${aliyun.cloud.adminSk}") private String adminSk; - @Value("aliyun.tongyi.agentKey") + @Value("${aliyun.tongyi.agentKey}") private String agentKey; - @Value("aliyun.tongyi.appId") + @Value("${aliyun.tongyi.appId}") private String appId; private ApplicationClient client; diff --git a/src/main/java/com/beauty/aide/controller/ChatController.java b/src/main/java/com/beauty/aide/controller/ChatController.java new file mode 100644 index 0000000..b7406d9 --- /dev/null +++ b/src/main/java/com/beauty/aide/controller/ChatController.java @@ -0,0 +1,21 @@ +package com.beauty.aide.controller; + +import lombok.extern.slf4j.Slf4j; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * @author xiaoliu + */ +@RestController +@RequestMapping("/chat") +@Slf4j +public class ChatController { + + // @TODO 发送问题 + + // @TODO 查看我的问题 + + // @TODO 清除问题记录 + +}