package com.cm.common.article.dao.articlecategory;

import com.cm.common.exception.RemoveException;
import com.cm.common.exception.SaveException;
import com.cm.common.exception.SearchException;
import com.cm.common.exception.UpdateException;
import com.cm.common.result.SuccessResultList;
import com.cm.common.article.pojo.dtos.articlecategory.ArticleCategoryDTO;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @ClassName: IArticleCategoryDao
 * @Description: 文章类别
 * @Author: WenG
 * @Date: 2020-04-03 15:20
 * @Version: 1.0
 **/
@Repository
public interface IArticleCategoryDao {

    /**
     * 新增文章类别
     *
     * @param params
     * @throws SaveException
     */
    void saveArticleCategory(Map<String, Object> params) throws SaveException;

    /**
     * 删除文章类别
     *
     * @param params
     * @throws RemoveException
     */
    void removeArticleCategory(Map<String, Object> params) throws RemoveException;

    /**
     * 修改文章类别
     *
     * @param params
     * @throws UpdateException
     */
    void updateArticleCategory(Map<String, Object> params) throws UpdateException;

    /**
     * 文章类别详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    ArticleCategoryDTO getArticleCategory(Map<String, Object> params) throws SearchException;

    /**
     * 文章类别列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<ArticleCategoryDTO> listArticleCategory(Map<String, Object> params) throws SearchException;
    
}
