package com.ycwl.basic.puzzle.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ycwl.basic.puzzle.entity.PuzzleFillRuleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 拼图自动填充规则 Mapper
 */
@Mapper
public interface PuzzleFillRuleMapper extends BaseMapper<PuzzleFillRuleEntity> {

    /**
     * 根据模板ID查询所有启用的规则(按优先级降序)
     *
     * @param templateId 模板ID
     * @return 规则列表
     */
    List<PuzzleFillRuleEntity> listByTemplateId(@Param("templateId") Long templateId);
}
