package com.czg.market.service;

import com.czg.constant.TableValueConstant;
import com.czg.market.dto.MkEnableConfigDTO;
import com.czg.market.vo.MkEnableConfigVO;
import com.mybatisflex.core.service.IService;
import com.czg.market.entity.MkEnableConfig;
import jakarta.validation.constraints.NotNull;

/**
 * 兑换码明细 服务层。
 *
 * @author zs
 * @since 2025-10-21
 */
public interface MkEnableConfigService extends IService<MkEnableConfig> {

    Boolean upEnable(Long mainShopId, Long shopId, MkEnableConfigDTO dto, TableValueConstant.EnableConfig.Type type);
    MkEnableConfigVO detail(Long mainShopId, Long shopId, TableValueConstant.EnableConfig.Type type);

    void checkEnable(Long mainShopId, @NotNull(message = "门店不为空") Long shopId, TableValueConstant.EnableConfig.Type type, boolean masterMange);
}
