All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ccs.openim.service.admin.OpenImAdminDefaultUserService Maven / Gradle / Ivy

package org.ccs.openim.service.admin;

import org.ccs.openim.admin.OpenImAdminDefaultUserRest;
import org.ccs.openim.admin.defaultUser.req.AddDefaultFriendReq;
import org.ccs.openim.admin.defaultUser.req.DelDefaultFriendReq;
import org.ccs.openim.admin.defaultUser.req.FindDefaultFriendReq;
import org.ccs.openim.admin.defaultUser.req.SearchDefaultFriendReq;
import org.ccs.openim.admin.defaultUser.resp.FindDefaultFriendResp;
import org.ccs.openim.admin.defaultUser.resp.SearchDefaultFriendResp;
import org.ccs.openim.base.OpenImResult;
import org.ccs.openim.base.OpenImToken;


public class OpenImAdminDefaultUserService {

    private OpenImAdminDefaultUserRest openImAdminDefaultUserRest = new OpenImAdminDefaultUserRest();


    /**
     * 添加注册时默认好友
     * routePath=/default/user/add
     *
     * @param req
     * @return
     */
    public OpenImResult addDefaultFriend(OpenImToken openImToken, AddDefaultFriendReq req) {
        return openImAdminDefaultUserRest.addDefaultFriend(openImToken, req);
    }

    /**
     * 删除注册时默认好友
     * routePath=/default/user/del
     *
     * @param req
     * @return
     */
    public OpenImResult delDefaultFriend(OpenImToken openImToken, DelDefaultFriendReq req) {
        return openImAdminDefaultUserRest.delDefaultFriend(openImToken, req);
    }

    /**
     * 默认好友列表
     * routePath=/default/user/find
     *
     * @param req
     * @return
     */
    public OpenImResult findDefaultFriend(OpenImToken openImToken, FindDefaultFriendReq req) {
        return openImAdminDefaultUserRest.findDefaultFriend(openImToken, req);
    }

    /**
     * 搜索注册时默认好友列表
     * routePath=/default/user/search
     *
     * @param req
     * @return
     */
    public OpenImResult searchDefaultFriend(OpenImToken openImToken, SearchDefaultFriendReq req) {
        return openImAdminDefaultUserRest.searchDefaultFriend(openImToken, req);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy