package com.yutou.napcat.http; import com.alibaba.fastjson2.JSONArray; import com.alibaba.fastjson2.JSONObject; import com.yutou.napcat.handle.BaseHandle; import com.yutou.napcat.model.MessageBean; import com.yutou.napcat.model.SendMessageResponse; import com.yutou.okhttp.BaseBean; import com.yutou.okhttp.HttpBody; import kotlin.jvm.JvmSuppressWildcards; import retrofit2.Call; import retrofit2.http.*; import java.util.List; public interface MessageAPI { /** * 发送私聊消息 * @param message {@link com.yutou.napcat.handle.MessageHandleBuild} * @return 消息id */ @POST("/send_private_msg") Call> sendPrivateMsg( @Body JSONObject message); /** * 发送群聊消息 * @param message 消息内容 * @return 消息id */ @POST("/send_group_msg") Call> sendGroupMsg( @Body JSONObject message ); /** * 撤回消息 * @param messageId 消息id */ @FormUrlEncoded @POST("/delete_msg") Call> delMsg( @Field("message_id") long messageId ); @POST("/get_msg") Call> getMessage( @Body JSONObject message ); }