using System.Collections.Generic;
using CncModels.Entity;

namespace CncRepository.Interface
{
    /// <summary>
    /// 品牌字段映射仓储接口
    /// </summary>
    public interface IBrandFieldMappingRepository
    {
        List<BrandFieldMapping> GetByBrandId(int brandId);
        BrandFieldMapping GetById(int id);
        int Create(BrandFieldMapping entity);
        bool Update(BrandFieldMapping entity);
        bool DeleteByBrandId(int brandId);
        int BatchCreate(int brandId, List<BrandFieldMapping> mappings);
        List<BrandFieldMapping> GetEnabledByBrandId(int brandId);
    }
}
