From f872029c9dc8058b2fcf3d7c550787a9169d8c50 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Mon, 19 Dec 2022 17:06:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=9C=BA=E5=99=A8=E4=BA=BA?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E7=9A=84API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/common/http/PDLiveApi.java | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/common/src/main/java/com/yunbao/common/http/PDLiveApi.java b/common/src/main/java/com/yunbao/common/http/PDLiveApi.java index 3ceaaa533..ba403f483 100644 --- a/common/src/main/java/com/yunbao/common/http/PDLiveApi.java +++ b/common/src/main/java/com/yunbao/common/http/PDLiveApi.java @@ -451,5 +451,58 @@ public interface PDLiveApi { @Query("anchor_id") String anchor_id, @Query("prank_index") String prank_index ); + /** + * 设置机器人开关 + */ + @GET("/api/public/?service=Live.setAnchorAiState") + Observable>> setAnchorAiState( + @Query("ai_state") String ai_state + ); + /** + * 获取机器人信息 + */ + @GET("/api/public/?service=Live.getAnchorAiState") + Observable>> getAnchorAiState( + ); + /** + * 修改机器人信息 + */ + @GET("/api/public/?service=Live.setAnchorAiState") + Observable>> getAnchorAiState( + @Query("name") String name, + @Query("value") String value + ); + /** + * 获取机器人自定义话术 + * @param type 1(自定义打招呼) 3(自定义求关注) + */ + @GET("/api/public/?service=Live.getAiAutomaticSpeech") + Observable>> getAiAutomaticSpeech( + @Query("type") String type + ); + /** + * 机器人添加话术 + */ + @GET("/api/public/?service=Live.addAiAutomaticSpeech") + Observable>> addAiAutomaticSpeech( + @Query("type") String type, + @Query("content") String content + ); + /** + * 机器人删除话术 + */ + @GET("/api/public/?service=Live.delAiAutomaticSpeech ") + Observable>> delAiAutomaticSpeech ( + @Query("type") String type, + @Query("id") String id + ); + /** + * 机器人修改话术 + */ + @GET("/api/public/?service=Live.updateAiAutomaticSpeech ") + Observable>> updateAiAutomaticSpeech ( + @Query("type") String type, + @Query("id") String id + ); }