package com.cpop.oam.business.service;

import com.cpop.oam.business.vo.WxOpenMiniVo;
import com.mybatisflex.core.service.IService;
import com.cpop.oam.business.entity.WxOpenMini;
import me.chanjar.weixin.open.bean.result.WxOpenAuthorizerInfoResult;
import me.chanjar.weixin.open.bean.result.WxOpenAuthorizerListResult;

import java.util.List;

/**
 * Oam-微信开放平台-小程序 服务层。
 *
 * @author DB
 * @since 2023-10-11
 */
public interface WxOpenMiniService extends IService<WxOpenMini> {

    /**
     * @descriptions 获取授权小程序列表
     * @author DB
     * @date 2023/10/11 12:52
     * @param authorizerList 微信拉取信息列表
     * @return: java.util.List<com.cpop.oam.business.vo.WxOpenMiniVo>
     */
    List<WxOpenMiniVo> getAuthorizerList(WxOpenAuthorizerListResult authorizerList);

    /**
     * @descriptions 数据同步
     * @author DB
     * @date 2023/10/11 13:41
     * @param authorizerInfo 授权小程序信息
     * @return: void
     */
    void dataSync(WxOpenAuthorizerInfoResult authorizerInfo);
}
