package org.matrix.database.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.matrix.database.entity.DynamicVariable;

import java.util.Optional;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author matrix
 * @since 2022-01-15
 */
public interface IDynamicVariableService extends IService<DynamicVariable> {

    /**
     * 根据变量名称获取变量
     *
     * @param name      变量名x
     * @param projectId 项目id
     * @return 变量
     */
    Optional<DynamicVariable> getByName(String name, Long projectId);

}
