package com.jeesharp.business.modules.mall.service;

import com.jeesharp.business.modules.mall.entity.MallLogisticsCompany;
import com.jeesharp.business.modules.mall.vo.MallLogisticsCompanyQueryVO;
import com.jeesharp.framework.mybatis.core.service.BaseInterface;

import java.util.List;

public interface MallLogisticsCompanyService extends BaseInterface<MallLogisticsCompany, MallLogisticsCompanyQueryVO> {

    void createCompany(MallLogisticsCompany entity);

    void updateCompany(MallLogisticsCompany entity);

    /**
     * 查询平台租户下已启用的物流公司（发货下拉等，不受登录商户租户 dataScope 限制）。
     */
    List<MallLogisticsCompany> listEnabledCompanies();

    /**
     * 按主键查询平台租户下的物流公司（商户发货校验）。
     */
    MallLogisticsCompany getPlatformCompany(String id);
}
