package com.zioinfo.cms.seo.mapper;

import com.zioinfo.cms.seo.CmsRedirect;
import com.zioinfo.cms.seo.CmsSeoMeta;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SeoMapper {
    List<CmsSeoMeta> findAllMeta();
    CmsSeoMeta findMetaByPath(@Param("pathKey") String pathKey, @Param("locale") String locale);
    CmsSeoMeta findMetaById(@Param("id") Long id);
    int insertMeta(CmsSeoMeta m);
    int updateMeta(CmsSeoMeta m);
    int deleteMeta(@Param("id") Long id);

    List<CmsRedirect> findAllRedirects();
    int insertRedirect(CmsRedirect r);
    int deleteRedirect(@Param("id") Long id);
}
