package com.zioinfo.cms.product.mapper;

import com.zioinfo.cms.product.CmsProductContent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductContentMapper {
    List<CmsProductContent> findAll(@Param("status") String status, @Param("keyword") String keyword);
    CmsProductContent findById(@Param("id") Long id);
    CmsProductContent findPublishedByMallId(@Param("mallProductId") String mallProductId, @Param("locale") String locale);
    int insert(CmsProductContent p);
    int update(CmsProductContent p);
    int updateStatus(@Param("id") Long id, @Param("status") String status);
    int delete(@Param("id") Long id);
}
