package com.yonge.cooleshow.biz.dal.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yonge.cooleshow.biz.dal.dao.ImGroupMemberAuditDao;
import com.yonge.cooleshow.biz.dal.entity.ImGroupMemberAudit;
import com.yonge.cooleshow.biz.dal.enums.AuditStatusEnum;
import com.yonge.cooleshow.biz.dal.queryInfo.ImGroupMemberAuditQueryInfo;
import com.yonge.toolset.mybatis.page.PageInfo;

import java.util.List;

/**
 * (ImGroupMemberAudit)表服务接口
 *
 * @author zx
 * @since 2022-03-22 17:18:51
 */
public interface ImGroupMemberAuditService extends IService<ImGroupMemberAudit> {

    ImGroupMemberAuditDao getDao();

    /**
    * @description: 申请入群
     * @param imGroupMemberAudit
    * @return void
    * @author zx
    * @date 2022/3/22 17:34
    */
    void apply(ImGroupMemberAudit imGroupMemberAudit) throws Exception;

    /**
    * @description: 入群审核
     * @param auditId
     * @param auditStatus
    * @return void
    * @author zx
    * @date 2022/3/22 19:58
    */
    void applyAudit(String auditId, AuditStatusEnum auditStatus,String groupId) throws Exception;

    List<ImGroupMemberAudit> queryAll(ImGroupMemberAuditQueryInfo queryInfo);
}

