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

import com.jeesharp.business.modules.mall.entity.MallFirstOrderConfig;
import com.jeesharp.business.modules.mall.vo.MallFirstOrderConfigQueryVO;
import com.jeesharp.framework.mybatis.core.service.BaseInterface;

import java.util.List;

/**
 * 首单优惠配置 Service 接口
 */
public interface MallFirstOrderConfigService extends BaseInterface<MallFirstOrderConfig, MallFirstOrderConfigQueryVO> {

    void createConfig(MallFirstOrderConfig entity);

    void updateConfig(MallFirstOrderConfig entity);
MallFirstOrderConfig getEnabledConfig();

    boolean checkIsFirstOrder(String memberId);

    /**
     * 会员是否仅有这一笔已支付商城订单（用于首单支付成功后赠券）。
     */
    boolean isFirstPaidOrder(String memberId);
}
