package com.ruoyi.yunxin.client;

import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Post;
import com.ruoyi.yunxin.interceptor.GlodonTokenInterceptor;
import com.ruoyi.yunxin.req.SendBatchMsgReq;
import com.ruoyi.yunxin.req.SendMsgReq;
import com.ruoyi.yunxin.resp.SendMsgResp;
import com.ruoyi.yunxin.resp.YxCommonR;
import com.ruoyi.yunxin.resp.YxDataR;

@BaseRequest(baseURL = "${baseUrl}", interceptor = GlodonTokenInterceptor.class)
public interface ImMessageClient {

    @Post(url = "/nimserver/msg/sendMsg.action")
    YxDataR<SendMsgResp> sendMsg(SendMsgReq req);

    @Post(url = "/nimserver/msg/sendBatchMsg.action")
    YxDataR<YxCommonR> sendBatchMsg(SendBatchMsgReq req);

//    @Post(url = "/nimserver/msg/sendAttachMsg.action")
//    YxR<SendMsgResp> sendAttachMsg(SendMsgReq req);


}
