package com.apobates.forum.core.impl.service;

import com.apobates.forum.core.dao.BoardModeratorRoleHistoryDao;
import com.apobates.forum.core.entity.BoardModeratorRoleHistory;
import com.apobates.forum.core.service.BoardModeratorRoleHistoryService;
import java.util.stream.Stream;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author xiaofanku
 * @since 20200514
 */
@Service
public class BoardModeratorRoleHistoryServiceImpl implements BoardModeratorRoleHistoryService{
    @Autowired
    private BoardModeratorRoleHistoryDao boardModeratorRoleHistoryDao;
    
    @Override
    public Stream<BoardModeratorRoleHistory> getByMember(long memberId) {
        return boardModeratorRoleHistoryDao.findAllByMember(memberId);
    }
}