using SlnMesnac.Model.domain;
using SlnMesnac.Repository.service.@base;

namespace SlnMesnac.Repository.service
{
    public interface IBasePalletInfoService : IBaseService<BasePalletInfo>
    {
        /// <summary>
        /// 根据托盘编码获取托盘信息
        /// </summary>
        /// <param name="palleCode"></param>
        /// <returns></returns>
        BasePalletInfo GetPalletInfoByPalletCode(string palleCode);

        /// <summary>
        /// 更新托盘信息
        /// </summary>
        /// <param name="palletInfo"></param>
        /// <returns></returns>
        bool UpdatePalletInfo(BasePalletInfo palletInfo);

        /// <summary>
        /// 解绑托盘信息
        /// </summary>
        /// <param name="palletInfo"></param>
        /// <returns></returns>
        bool UnBindPalletInfo(BasePalletInfo palletInfo);
    }
}