package com.apobates.forum.core.dao;

import com.apobates.forum.core.entity.BoardConfig;
import com.apobates.forum.utils.persistence.DataRepository;
import java.util.Optional;

/**
 * 版块配置的持久层接口
 *
 * @author xiaofanku
 * @since 20200510
 */
public interface BoardConfigDao extends DataRepository<BoardConfig, Long> {
    /**
     * 根据版块查看版块配置
     *
     * @param boardId 版块ID
     * @return
     */
    Optional<BoardConfig> findOneByBoard(long boardId);
}