package cn.stylefeng.roses.kernel.group.modular.mapper;

import cn.stylefeng.roses.kernel.group.api.pojo.SysGroupDTO;
import cn.stylefeng.roses.kernel.group.modular.entity.SysGroup;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 业务分组 Mapper 接口
 *
 * @author fengshuonan
 * @since 2022/05/11 12:54
 */
public interface SysGroupMapper extends BaseMapper<SysGroup> {

    /**
     * 获取用户分组列表
     *
     * @author fengshuonan
     * @since 2022/5/11 16:49
     */
    List<SysGroupDTO> getUserGroupList(@Param("groupBizCode") String groupBizCode, @Param("userId") Long userId, @Param("getTotal") boolean getTotal);

}
