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

import com.jeesharp.business.modules.setting.entity.MarketingActivity;
import com.jeesharp.business.modules.setting.vo.MarketingActivityQueryVO;
import com.jeesharp.framework.mybatis.core.service.BaseInterface;

import java.util.List;
import java.util.Map;

/**
 * 活动营销主配置领域服务接口。
 *
 * @author jeesharp
 * @since 2026-06-04
 */
public interface MarketingActivityService extends BaseInterface<MarketingActivity, MarketingActivityQueryVO> {
    void createMarketingActivity(MarketingActivity entity);
    void updateMarketingActivity(MarketingActivity entity);
List<MarketingActivity> listEnabledForMobile(String scene, String activityType, String status);

    /**
     * 按活动名称或编码模糊匹配，返回活动主键列表。
     */
    List<String> findIdsByNameLike(String keyword);

    /**
     * 批量获取活动名称。
     */
    Map<String, String> mapActivityNameByIds(List<String> ids);
}
