package org.nl.system.service.coderule;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.nl.common.domain.query.PageQuery;
import org.nl.system.service.coderule.dao.SysCodeRule;
import com.baomidou.mybatisplus.extension.service.IService;
import org.nl.system.service.coderule.dto.CodeRuleQuery;

import java.util.Map;
import java.util.Set;

/**
 * <p>
 * 编码规则表 服务类
 * </p>
 *
 * @author generator
 * @since 2022-12-19
 */
public interface ISysCodeRuleService extends IService<SysCodeRule> {

    /**
     * 分页查询
     * @param form
     * @param pageable
     * @return
     */
    IPage<SysCodeRule> queryAll(Map form, PageQuery pageable);

    /**
     * 创建编码
     * @param form
     * @return
     */
    String codeDemo(Map form);

    /**
     * 添加
     * @param codeRule
     */
    void create(SysCodeRule codeRule);

    /**
     * 删除编码
     * @param ids
     */
    void deleteCodeRule(Set<String> ids);

    /**
     * 修改编码
     * @param codeRule
     */
    void updateCodeRule(SysCodeRule codeRule);
}
