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 + ); }