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

me.chanjar.weixin.channel.api.WxLeaguePromoterService Maven / Gradle / Ivy

There is a newer version: 4.7.5.B
Show newest version
package me.chanjar.weixin.channel.api;

import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse;
import me.chanjar.weixin.channel.bean.league.promoter.PromoterInfoResponse;
import me.chanjar.weixin.channel.bean.league.promoter.PromoterListResponse;
import me.chanjar.weixin.common.error.WxErrorException;

/**
 * 优选联盟 达人服务
 *
 * @author Zeyes
 */
public interface WxLeaguePromoterService {

    /**
     * 新增达人
     *
     * @param finderId 视频号finder_id
     * @return 结果
     */
    WxChannelBaseResponse addPromoter(String finderId) throws WxErrorException;

    /**
     * 编辑达人
     *
     * @param finderId 视频号finder_id
     * @param type     操作 1取消邀请 2结束合作
     * @return 结果
     */
    WxChannelBaseResponse updatePromoter(String finderId, int type) throws WxErrorException;

    /**
     * 删除达人
     *
     * @param finderId 视频号finder_id
     * @return 结果
     */
    WxChannelBaseResponse deletePromoter(String finderId) throws WxErrorException;

    /**
     * 获取达人详情信息
     *
     * @param finderId 视频号finder_id
     * @return 结果
     */
    PromoterInfoResponse getPromoterInfo(String finderId) throws WxErrorException;

    /**
     * 获取达人列表
     *
     * @param pageIndex 页面下标,下标从1开始,默认为1
     * @param pageSize  单页达人数(不超过200)
     * @param status    拉取该状态下的达人列表
     * @return 结果
     */
    PromoterListResponse listPromoter(Integer pageIndex, Integer pageSize, Integer status) throws WxErrorException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy