package cn.com.tenlion.buildingpictures.dao.picturestemplatearea;

import cn.com.tenlion.buildingpictures.pojo.dtos.picturestemplatearea.PicturesTemplateAreaBuildingDTO;
import cn.com.tenlion.buildingpictures.pojo.dtos.picturestemplatearea.PicturesTemplateAreaDTO;
import ink.wgink.exceptions.RemoveException;
import ink.wgink.exceptions.SaveException;
import ink.wgink.exceptions.SearchException;
import ink.wgink.exceptions.UpdateException;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;

/**
 * @ClassName: IPicturesTemplateAreaDao
 * @Description: 图片套版模板的区域设置
 * @Author: WenG
 * @Date: 2020-10-20 15:08
 * @Version: 1.0
 **/
@Repository
public interface IPicturesTemplateAreaDao {

    /**
     * 新增图片套版模板的区域设置
     *
     * @param params
     * @throws SaveException
     */
    void savePicturesTemplateArea(Map<String, Object> params) throws SaveException;

    /**
     * 删除图片套版模板的区域设置
     *
     * @param params
     * @throws RemoveException
     */
    void removePicturesTemplateArea(Map<String, Object> params) throws RemoveException;

    /**
    * 删除图片套版模板的区域设置（物理）
    *
    * @param params
    * @throws RemoveException
    */
    void deletePicturesTemplateArea(Map<String, Object> params) throws RemoveException;

    /**
     * 修改图片套版模板的区域设置
     *
     * @param params
     * @throws UpdateException
     */
    void updatePicturesTemplateArea(Map<String, Object> params) throws UpdateException;

    /**
     * 图片套版模板的区域设置详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    PicturesTemplateAreaDTO getPicturesTemplateArea(Map<String, Object> params) throws SearchException;

    /**
     * 图片套版模板的区域设置列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<PicturesTemplateAreaDTO> listPicturesTemplateArea(Map<String, Object> params) throws SearchException;

    /**
    * 图片套版模板的区域设置统计
    *
    * @param params
    * @return
    * @throws SearchException
    */
    Integer countPicturesTemplateArea(Map<String, Object> params) throws SearchException;

    List<PicturesTemplateAreaDTO> getPicturesTemplateAreaByPicturesTemplateId(Map<String, Object> params) throws SearchException;

    void updatePicturesTemplateAreaPoint(Map<String, Object> params) throws UpdateException;

    void updatePicturesTemplateAreaPointModuleData(Map<String, Object> params) throws UpdateException;

    List<PicturesTemplateAreaDTO> getPicturesTemplateIdGroupByPicturesModuleId(Map<String, Object> params) throws SearchException;

    List<PicturesTemplateAreaDTO> getPicturesTemplateAreaByPicturesTemplateCode(Map<String, Object> params) throws SearchException;

    void updatePicturesTemplateAreaAll(Map<String, Object> params)  throws UpdateException;

    List<PicturesTemplateAreaBuildingDTO> list(Map<String, Object> queryParams) throws SearchException;
}