package com.apobates.forum.core.service;

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

/**
 * 版块配置的业务接口
 *
 * @author xiaofanku
 * @since 20200510
 */
public interface BoardConfigService {
    /**
     * 查看指定的版块配置
     *
     * @param boardId 版块ID
     * @return
     */
    Optional<BoardConfig> getByBoardId(long boardId);
    
    /**
     * 创建指定的版块配置实例
     *
     * @param boardId 版块ID
     * @param config 版块配置的属性实例
     * @return
     */
    Optional<Boolean> create(long boardId, BoardConfig config);
}