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

cn.felord.api.GroupChatApi Maven / Gradle / Ivy

There is a newer version: 1.2.8
Show newest version
/*
 *  Copyright (c) 2023. felord.cn
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *       https://www.apache.org/licenses/LICENSE-2.0
 *  Website:
 *       https://felord.cn
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

package cn.felord.api;

import cn.felord.WeComException;
import cn.felord.domain.GenericResponse;
import cn.felord.domain.WeComResponse;
import cn.felord.domain.externalcontact.*;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * 客户群管理
 *
 * @author dax
 * @since 2021 /9/14 13:59
 */
public interface GroupChatApi {

    /**
     * 获取客户群列表
     *
     * @param request the request
     * @return the transfer result response
     * @throws WeComException the weComException
     */
    @POST("externalcontact/groupchat/list")
    GroupChatListResponse groupChatList(@Body GroupChatListRequest request) throws WeComException;

    /**
     * 获取客户群详情
     *
     * @param request the request
     * @return the group chat detail
     * @throws WeComException the weComException
     */
    @POST("externalcontact/groupchat/get")
    GenericResponse getGroupChatDetail(@Body GroupChatDetailRequest request) throws WeComException;

    /**
     * 客户群opengid转换
     *
     * @param opengid the opengid
     * @return the generic response
     * @throws WeComException the weComException
     */
    @POST("externalcontact/opengid_to_chatid")
    GenericResponse opengidToChatid(@Body OpenGid opengid) throws WeComException;

    /**
     * 客户群「加入群聊」管理
     * 

* 配置客户群进群方式 * * @param body the body * @return the generic response * @throws WeComException the weComException */ @POST("externalcontact/groupchat/add_join_way") GenericResponse addGroupChatWay(@Body GroupChatWayBody body) throws WeComException; /** * 客户群「加入群聊」管理 *

* 获取客户群进群方式配置 * * @param configId the config id * @return the contact way * @throws WeComException the weComException */ @POST("externalcontact/groupchat/get_join_way") GenericResponse getGroupChatWay(@Body ConfigId configId) throws WeComException; /** * 客户群「加入群聊」管理 *

* 更新客户群进群方式配置 * * @param body the body * @return the we com response * @throws WeComException the weComException */ @POST("externalcontact/groupchat/update_join_way") WeComResponse updateGroupChatWay(@Body MutableGroupChatWayBody body) throws WeComException; /** * 客户群「加入群聊」管理 *

* 删除客户群进群方式配置 * * @param configId the config id * @return the we com response * @throws WeComException the weComException */ @POST("externalcontact/groupchat/del_join_way") WeComResponse delGroupChatWay(@Body ConfigId configId) throws WeComException; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy