package com.ruoyi.yunxin.client;

import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Body;
import com.dtflys.forest.annotation.Post;
import com.ruoyi.yunxin.interceptor.GlodonTokenInterceptor;
import com.ruoyi.yunxin.req.BlockReq;
import com.ruoyi.yunxin.req.CreateUserReq;
import com.ruoyi.yunxin.req.UnblockReq;
import com.ruoyi.yunxin.req.UpdateTokenReq;
import com.ruoyi.yunxin.resp.YxCommonR;

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


    @Post(url = "/nimserver/user/create.action")
    YxCommonR createUser(@Body CreateUserReq req);

    @Post(url = "/nimserver/user/update.action")
    YxCommonR updateToken(@Body UpdateTokenReq req);

    @Post(url = "/nimserver/user/block.action")
    YxCommonR block(@Body BlockReq req);

    @Post(url = "/nimserver/user/unblock.action")
    YxCommonR unblock(@Body UnblockReq req);

}
